Home
last modified time | relevance | path

Searched refs:keyMetadata (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java87 byte[] keyMetadata = null; in insertKey_replacesOldKey()
89 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
95 assertArrayEquals(keyMetadata, retrievedKey.getKeyMetadata()); in insertKey_replacesOldKey()
100 keyMetadata = getUtf8Bytes("keymetadata2"); in insertKey_replacesOldKey()
102 wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
108 assertArrayEquals(keyMetadata, retrievedKey.getKeyMetadata()); in insertKey_replacesOldKey()
172 byte[] keyMetadata = getUtf8Bytes("keymetametametadata"); in getKey_returnsInsertedKey()
174 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, 120); in getKey_returnsInsertedKey()
181 assertArrayEquals(keyMetadata, retrievedKey.getKeyMetadata()); in getKey_returnsInsertedKey()
341 byte[] keyMetadata = null; in setPlatformKeyGenerationId_invalidatesExistingKeysForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DWrappedKey.java118 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
140 mKeyMetadata = keyMetadata; in WrappedKey()
DRecoverableKeyStoreManager.java875 byte[] keyMetadata = applicationKey.getMetadata(); in recoverApplicationKeys()
879 encryptedKeyMaterial, keyMetadata); in recoverApplicationKeys()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java108 byte[] keyMetadata = wrappedKey.getKeyMetadata(); in insertKey()
109 if (keyMetadata == null) { in insertKey()
112 values.put(KeysEntry.COLUMN_NAME_KEY_METADATA, keyMetadata); in insertKey()
168 byte[] keyMetadata; in getKey()
171 keyMetadata = null; in getKey()
173 keyMetadata = cursor.getBlob(metadataIdx); in getKey()
176 return new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, recoveryStatus); in getKey()
307 byte[] keyMetadata; in getAllKeys()
310 keyMetadata = null; in getAllKeys()
312 keyMetadata = cursor.getBlob(metadataIdx); in getAllKeys()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java1225 byte[] keyMetadata = null; in setRecoveryStatus()
1227 WrappedKey wrappedKey = new WrappedKey(NONCE, KEY_MATERIAL, keyMetadata, GENERATION_ID, in setRecoveryStatus()