diff options
author | David Drysdale <drysdale@google.com> | 2021-12-06 11:24:26 +0000 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2021-12-13 14:36:32 +0000 |
commit | a6c82a916cb99806bd04f0a15748510445523695 (patch) | |
tree | 4e48f3c2ce7f35986aefb5ba0f6941892bc2ed0c /keystore2/src/raw_device.rs | |
parent | 469c99c2853e1b69aeeb5fc0b0600a6b29fb4c71 (diff) | |
download | security-a6c82a916cb99806bd04f0a15748510445523695.tar.gz |
keystore2: cope with KeyMint AIDL V2
Bug: 194358913
Test: TreeHugger
Change-Id: Ibc2d96f2cd4fd2edde4c69cf862580412af08dd7
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 991535f4..0ee3db06 100644 --- a/keystore2/src/raw_device.rs +++ b/keystore2/src/raw_device.rs @@ -59,6 +59,8 @@ impl KeyMintDevice { pub const KEY_MASTER_V4_1: i32 = 41; /// Version number of KeyMintDevice@V1 pub const KEY_MINT_V1: i32 = 100; + /// Version number of KeyMintDevice@V2 + pub const KEY_MINT_V2: i32 = 200; /// Get a [`KeyMintDevice`] for the given [`SecurityLevel`] pub fn get(security_level: SecurityLevel) -> Result<KeyMintDevice> { |