Searched refs:keyMaterial (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 86 byte[] keyMaterial = getUtf8Bytes("keymaterial1"); in insertKey_replacesOldKey() 89 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey() 94 assertArrayEquals(keyMaterial, retrievedKey.getKeyMaterial()); in insertKey_replacesOldKey() 99 keyMaterial = getUtf8Bytes("keymaterial2"); in insertKey_replacesOldKey() 102 wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey() 107 assertArrayEquals(keyMaterial, retrievedKey.getKeyMaterial()); in insertKey_replacesOldKey() 171 byte[] keyMaterial = getUtf8Bytes("keymaterial"); in getKey_returnsInsertedKey() 174 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, 120); in getKey_returnsInsertedKey() 180 assertArrayEquals(keyMaterial, retrievedKey.getKeyMaterial()); in getKey_returnsInsertedKey() 340 byte[] keyMaterial = getUtf8Bytes("keymaterial"); in setPlatformKeyGenerationId_invalidatesExistingKeysForUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKey.java | 118 public WrappedKey(byte[] nonce, byte[] keyMaterial, @Nullable byte[] keyMetadata, in WrappedKey() argument 120 this(nonce, keyMaterial, keyMetadata, platformKeyGenerationId, in WrappedKey() 136 public WrappedKey(byte[] nonce, byte[] keyMaterial, @Nullable byte[] keyMetadata, in WrappedKey() argument 139 mKeyMaterial = keyMaterial; in WrappedKey()
|
D | RecoverableKeyStoreManager.java | 878 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey, in recoverApplicationKeys() 880 keyMaterialByAlias.put(alias, keyMaterial); in recoverApplicationKeys()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | KeySyncUtilsTest.java | 141 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata() 144 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata() local 158 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata() 161 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata() local 230 byte[] keyMaterial = KeySyncUtils.decryptRecoveryKey(LOCK_SCREEN_HASH_1, encrypted); in decryptRecoveryKey_decryptsALocallyEncryptedKey() 232 assertArrayEquals(recoveryKey.getEncoded(), keyMaterial); in decryptRecoveryKey_decryptsALocallyEncryptedKey() local
|
D | RecoverableKeyStoreManagerTest.java | 212 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKey_storesTheKey() 214 mRecoverableKeyStoreManager.importKey(TEST_ALIAS, keyMaterial); in importKey_storesTheKey() 222 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES - 1); in importKey_throwsIfInvalidLength() 224 mRecoverableKeyStoreManager.importKey(TEST_ALIAS, keyMaterial); in importKey_throwsIfInvalidLength() 245 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKeyWithMetadata_nullMetadata_storesTheKey() 248 TEST_ALIAS, keyMaterial, KEY_METADATA_NULL); in importKeyWithMetadata_nullMetadata_storesTheKey() 258 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 261 TEST_ALIAS, keyMaterial, KEY_METADATA_NON_NULL); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 269 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES - 1); in importKeyWithMetadata_throwsIfInvalidLength() 272 TEST_ALIAS, keyMaterial, KEY_METADATA_NON_NULL); in importKeyWithMetadata_throwsIfInvalidLength()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDb.java | 160 byte[] keyMaterial = cursor.getBlob( in getKey() 176 return new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, recoveryStatus); in getKey() 299 byte[] keyMaterial = cursor.getBlob( in getAllKeys() 315 keys.put(alias, new WrappedKey(nonce, keyMaterial, keyMetadata, in getAllKeys()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | AndroidKeyStoreSpi.java | 642 byte[] keyMaterial = key.getEncoded(); in setSecretKeyEntry() 643 if (keyMaterial == null) { in setSecretKeyEntry() 753 keyMaterial, in setSecretKeyEntry()
|