diff options
author | Rajesh Nyamagoud <nyamagoud@google.com> | 2023-06-02 02:46:38 +0000 |
---|---|---|
committer | Rajesh Nyamagoud <nyamagoud@google.com> | 2023-10-09 21:59:43 +0000 |
commit | f408c28c0e20dae7f14dfbfcc5970fdab54a41f4 (patch) | |
tree | c8300337eca6d44f02efec812897b12c70df15a3 /keystore2/test_utils | |
parent | 5f6db2f4429b482a6fdb2e336de2c0b369cef3cb (diff) | |
download | security-f408c28c0e20dae7f14dfbfcc5970fdab54a41f4.tar.gz |
Adding tests to check unique id attestation.
Bug: 279721870
Test: atest keystore2_client_tests
Change-Id: Ic7857267345035ad0d92d8176d34cfe3e64e5c62
Diffstat (limited to 'keystore2/test_utils')
-rw-r--r-- | keystore2/test_utils/authorizations.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keystore2/test_utils/authorizations.rs b/keystore2/test_utils/authorizations.rs index f50eca62..ebe2665e 100644 --- a/keystore2/test_utils/authorizations.rs +++ b/keystore2/test_utils/authorizations.rs @@ -314,6 +314,15 @@ impl AuthSetBuilder { }); self } + + /// Set include unique id. + pub fn include_unique_id(mut self) -> Self { + self.0.push(KeyParameter { + tag: Tag::INCLUDE_UNIQUE_ID, + value: KeyParameterValue::BoolValue(true), + }); + self + } } impl Deref for AuthSetBuilder { |