Home
last modified time | relevance | path

Searched refs:wrappingKey (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java70 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/
DWrappedKey.java64 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()