summaryrefslogtreecommitdiff
path: root/keystore/java/android/security/KeyStoreSecurityLevel.java
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2021-02-07 16:30:15 -0800
committerJanis Danisevskis <jdanis@google.com>2021-02-07 16:42:24 -0800
commit19cd93f6034687a321841f47171c69f1debdd2d9 (patch)
tree2c8755edc416970651b16f91060a2470df4d81ab /keystore/java/android/security/KeyStoreSecurityLevel.java
parent84da5781da1e548ee81f2e44c0041a7615a86b2c (diff)
Keystore 2.0 SPI: Fix various CTS failures.
* Add missing purpose to HMAC operations. * Pass correct key descriptor to wrapped key import. * Corrected error message on Import wrapped key failure due to missing wrapping key. * Do not bail out on missing attestation challenge when device properties are requested. * Fix AndroidKeyStoreKey.equals(). It is sufficient to compare the unique key ID. Test: Keystore CTS tests. Change-Id: Id3b93b18486e3a818ae8e91be6344294ec592e68
Diffstat (limited to 'keystore/java/android/security/KeyStoreSecurityLevel.java')
-rw-r--r--keystore/java/android/security/KeyStoreSecurityLevel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore/java/android/security/KeyStoreSecurityLevel.java b/keystore/java/android/security/KeyStoreSecurityLevel.java
index 372add9b7ecb..d188b6525579 100644
--- a/keystore/java/android/security/KeyStoreSecurityLevel.java
+++ b/keystore/java/android/security/KeyStoreSecurityLevel.java
@@ -190,7 +190,7 @@ public class KeyStoreSecurityLevel {
keyDescriptor.blob = wrappedKey;
keyDescriptor.domain = wrappedKeyDescriptor.domain;
- return handleExceptions(() -> mSecurityLevel.importWrappedKey(wrappedKeyDescriptor,
+ return handleExceptions(() -> mSecurityLevel.importWrappedKey(keyDescriptor,
wrappingKeyDescriptor, maskingKey,
args.toArray(new KeyParameter[args.size()]), authenticatorSpecs));
}