summaryrefslogtreecommitdiff
path: root/keystore2/src/raw_device.rs
diff options
context:
space:
mode:
authorDavid Drysdale <drysdale@google.com>2021-12-06 11:24:26 +0000
committerDavid Drysdale <drysdale@google.com>2021-12-13 14:36:32 +0000
commita6c82a916cb99806bd04f0a15748510445523695 (patch)
tree4e48f3c2ce7f35986aefb5ba0f6941892bc2ed0c /keystore2/src/raw_device.rs
parent469c99c2853e1b69aeeb5fc0b0600a6b29fb4c71 (diff)
downloadsecurity-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.rs2
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> {