diff options
author | Eran Messeri <eranm@google.com> | 2022-10-31 12:23:36 +0000 |
---|---|---|
committer | Eran Messeri <eranm@google.com> | 2022-12-05 13:18:01 +0000 |
commit | 637259c81fa4e8419c07c4e9125c846c54c2c682 (patch) | |
tree | aa62f16f022f4c69d4023de9aa23114a75113480 /keystore2/src/raw_device.rs | |
parent | 4d6fb44a088dcff9fb8dd956fe0bf72c0bfd2a66 (diff) | |
download | security-637259c81fa4e8419c07c4e9125c846c54c2c682.tar.gz |
ID attestation: Pass 2nd IMEI to KeyMint
Pass the 2nd IMEI tag, if provided, to KeyMint.
Bug: 244732345
Test: atest android.keystore.cts.DeviceOwnerKeyManagementTest
Change-Id: I52aea1ba59c4337ba0003784abfc178ab0efee55
Diffstat (limited to 'keystore2/src/raw_device.rs')
-rw-r--r-- | keystore2/src/raw_device.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/keystore2/src/raw_device.rs b/keystore2/src/raw_device.rs index d32d2104..fa9872a7 100644 --- a/keystore2/src/raw_device.rs +++ b/keystore2/src/raw_device.rs @@ -63,6 +63,8 @@ impl KeyMintDevice { pub const KEY_MINT_V1: i32 = 100; /// Version number of KeyMintDevice@V2 pub const KEY_MINT_V2: i32 = 200; + /// Version number of KeyMintDevice@V3 + pub const KEY_MINT_V3: i32 = 300; /// Get a [`KeyMintDevice`] for the given [`SecurityLevel`] pub fn get(security_level: SecurityLevel) -> Result<KeyMintDevice> { |