Searched refs:wrappingKey (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKeyTest.java | 70 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() local 74 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() 79 wrappingKey.getKey(), in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() 89 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() local 93 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NON_NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() 98 wrappingKey.getKey(), in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() 107 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey() local 111 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NULL_METADATA); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKey.java | 64 public static WrappedKey fromSecretKey(PlatformEncryptionKey wrappingKey, SecretKey key, in fromSecretKey() argument 80 cipher.init(Cipher.WRAP_MODE, wrappingKey.getKey()); in fromSecretKey() 104 /*platformKeyGenerationId=*/ wrappingKey.getGenerationId(), in fromSecretKey()
|