Home
last modified time | relevance | path

Searched defs:wrappedKey (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DKeyWrapUtilsTest.java47 WrappedKeyProto.WrappedKey wrappedKey = in wrap_addsMetadata() local
57 WrappedKeyProto.WrappedKey wrappedKey = in wrap_addsWrapAlgorithm() local
66 WrappedKeyProto.WrappedKey wrappedKey = in wrap_addsNonceOfAppropriateLength() local
75 WrappedKeyProto.WrappedKey wrappedKey = in wrap_addsTagOfAppropriateLength() local
86 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(secondaryKey, tertiaryKey); in unwrap_unwrapsEncryptedKey() local
95 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(secondaryKey, generateAesKey()); in unwrap_throwsForBadWrapAlgorithm() local
105 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(secondaryKey, generateAesKey()); in unwrap_throwsForBadKeyAlgorithm() local
115 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(secondaryKey, generateAesKey()); in unwrap_throwsForMissingMetadata() local
124 WrappedKeyProto.WrappedKey wrappedKey = in unwrap_throwsForBadSecondaryKey() local
128 KeyWrapUtils.unwrap(generateAesKey(), wrappedKey); in unwrap_throwsForBadSecondaryKey() local
DTertiaryKeyManagerTest.java144 WrappedKeyProto.WrappedKey wrappedKey = manager.getWrappedKey(); in getWrappedKey_noExistingKey_returnsWrappedNewKey() local
154 WrappedKeyProto.WrappedKey wrappedKey = manager.getWrappedKey(); in getWrappedKey_existingKey_returnsWrappedExistingKey() local
DTertiaryKeyStoreTest.java203 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(mSecretKey, key); in putAll_putsAllWrappedKeysInTheStore() local
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DWrappedKeyTest.java74 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nullMetadata() local
93 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NON_NULL_METADATA); in fromSecretKey_createsWrappedKeyThatCanBeUnwrapped_nonNullMetadata() local
111 WrappedKey wrappedKey = WrappedKey.fromSecretKey(wrappingKey, rawKey, NULL_METADATA); in fromSecretKey_returnsAKeyWithTheGenerationIdOfTheWrappingKey() local
121 WrappedKey wrappedKey = WrappedKey.fromSecretKey( in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() local
140 WrappedKey wrappedKey = WrappedKey.fromSecretKey( in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() local
159 WrappedKey wrappedKey = WrappedKey.fromSecretKey( in decryptWrappedKeys_doesNotDieIfSomeKeysAreUnwrappable() local
174 WrappedKey wrappedKey = WrappedKey.fromSecretKey( in decryptWrappedKeys_throwsIfPlatformKeyGenerationIdDoesNotMatch() local
DRecoverableKeyGeneratorTest.java101 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nullMetadata() local
111 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesWrappedKey_nonNullMetadata() local
129 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial() local
163 WrappedKey wrappedKey = mRecoverableKeyStoreDb.getKey(KEYSTORE_UID_SELF, TEST_ALIAS); in importKey_storesTheWrappedVersionOfTheRawMaterial() local
DRecoverableKeyStoreManagerTest.java1227 WrappedKey wrappedKey = new WrappedKey(NONCE, KEY_MATERIAL, keyMetadata, GENERATION_ID, in setRecoveryStatus() local
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DKeyWrapUtils.java48 public static SecretKey unwrap(SecretKey secondaryKey, WrappedKeyProto.WrappedKey wrappedKey) in unwrap()
97 WrappedKeyProto.WrappedKey wrappedKey = new WrappedKeyProto.WrappedKey(); in wrap() local
DTertiaryKeyStore.java130 WrappedKeyProto.WrappedKey wrappedKey = in load() local
154 WrappedKeyProto.WrappedKey wrappedKey = in getAll() local
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGenerator.java104 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in generateAndStoreKey() local
148 WrappedKey wrappedKey = WrappedKey.fromSecretKey(platformKey, key, metadata); in importKey() local
DWrappedKey.java210 WrappedKey wrappedKey = wrappedKeys.get(alias); in unwrapKeys() local
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java89 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey() local
174 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, 120); in getKey_returnsInsertedKey() local
228 WrappedKey wrappedKey = new WrappedKey( in getAllKeys_doesNotReturnKeysWithBadGenerationId() local
246 WrappedKey wrappedKey = new WrappedKey( in getAllKeys_doesNotReturnKeysWithBadUserId() local
343 WrappedKey wrappedKey = in setPlatformKeyGenerationId_invalidatesExistingKeysForUser() local
393 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, in setRecoveryStatus_withSingleKey() local
420 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, in getStatusForAllKeys_with3Keys() local
478 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, in testInvalidateKeysForUser_withSingleKey() local
505 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, in testInvalidateKeysForUserIdOnCustomScreenLock() local
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DDrmPlugin.h101 Vector<uint8_t>& wrappedKey) { in provideProvisionResponse()
251 const Vector<uint8_t>& wrappedKey, in signRSA()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/fakes/
DFakeCryptoBackupServerTest.java130 WrappedKeyProto.WrappedKey wrappedKey = new WrappedKeyProto.WrappedKey(); in createWrappedKey() local
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java134 String algorithm, byte[] wrappedKey, byte[] message) { in signRSA()
/frameworks/base/keystore/java/android/security/
DKeyStoreSecurityLevel.java186 @NonNull byte[] wrappedKey, byte[] maskingKey, in importWrappedKey()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreCipherSpiBase.java769 protected final Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, in engineUnwrap()
DAndroidKeyStoreSpi.java874 KeyDescriptor wrappedKey = makeKeyDescriptor(alias); in setWrappedKeyEntry() local
/frameworks/av/drm/libmediadrm/fuzzer/
Dmediadrm_fuzzer.cpp226 Vector<uint8_t> wrappedKey = {}; in invokeDrmDecryptEncryptAPI() local
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.cpp707 Vector<uint8_t> const &wrappedKey, in signRSA()
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp922 Vector<uint8_t> &certificate, Vector<uint8_t> &wrappedKey) { in provideProvisionResponse()
1445 Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) { in signRSA()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp1349 Vector<uint8_t> certificate, wrappedKey; in android_media_MediaDrm_provideProvisionResponseNative() local
1973 Vector<uint8_t> wrappedKey(JByteArrayToVector(env, jwrappedKey)); in android_media_MediaDrm_signRSANative() local
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java97 public long insertKey(int userId, int uid, String alias, WrappedKey wrappedKey) { in insertKey()