Searched refs:unwrappedKeys (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKeyTest.java | 127 Map<String, Pair<SecretKey, byte[]>> unwrappedKeys = WrappedKey.unwrapKeys( in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() local 130 assertEquals(1, unwrappedKeys.size()); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 131 assertTrue(unwrappedKeys.containsKey(alias)); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 132 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 133 assertArrayEquals(null, unwrappedKeys.get(alias).second); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata() 146 Map<String, Pair<SecretKey, byte[]>> unwrappedKeys = WrappedKey.unwrapKeys( in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() local 149 assertEquals(1, unwrappedKeys.size()); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() 150 assertTrue(unwrappedKeys.containsKey(alias)); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() 151 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() 152 assertArrayEquals(NON_NULL_METADATA, unwrappedKeys.get(alias).second); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | WrappedKey.java | 205 HashMap<String, Pair<SecretKey, byte[]>> unwrappedKeys = new HashMap<>(); in unwrapKeys() local 238 unwrappedKeys.put(alias, Pair.create(key, wrappedKey.getKeyMetadata())); in unwrapKeys() 241 return unwrappedKeys; in unwrapKeys()
|