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 | 71 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() local 75 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() 80 wrappingKey.getKey(), in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() 90 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() local 94 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NON_NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() 99 wrappingKey.getKey(), in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() 108 PlatformEncryptionKey wrappingKey = new PlatformEncryptionKey( in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey() local 112 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()
|