Searched refs:KeyWrapUtils (Results 1 – 12 of 12) sorted by relevance
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
H A D | KeyWrapUtilsTest.java | 48 KeyWrapUtils.wrap( in wrap_addsMetadata() 58 KeyWrapUtils.wrap( in wrap_addsWrapAlgorithm() 67 KeyWrapUtils.wrap( in wrap_addsNonceOfAppropriateLength() 76 KeyWrapUtils.wrap( in wrap_addsTagOfAppropriateLength() 87 SecretKey unwrappedKey = KeyWrapUtils.unwrap(secondaryKey, wrappedKey); in unwrap_unwrapsEncryptedKey() 98 KeyWrapUtils.unwrap(secondaryKey, wrappedKey); in unwrap_throwsForBadWrapAlgorithm() 108 KeyWrapUtils.unwrap(secondaryKey, wrappedKey); in unwrap_throwsForBadKeyAlgorithm() 118 KeyWrapUtils.unwrap(secondaryKey, wrappedKey); in unwrap_throwsForMissingMetadata() 125 KeyWrapUtils.wrap( in unwrap_throwsForBadSecondaryKey() 128 KeyWrapUtils.unwrap(generateAesKey(), wrappedKey); in unwrap_throwsForBadSecondaryKey() [all …]
|
H A D | RestoreKeyFetcherTest.java | 67 KeyWrapUtils.wrap(secondaryKey.getSecretKey(), tertiaryKey); in unwrapTertiaryKey_returnsUnwrappedKey() 84 KeyWrapUtils.wrap(createSecondaryKey().getSecretKey(), createTertiaryKey()); in unwrapTertiaryKey_missingSecondaryKey_throwsSpecificException() 105 KeyWrapUtils.wrap(createSecondaryKey().getSecretKey(), createTertiaryKey()); in unwrapTertiaryKey_badSecondaryKey_throws()
|
H A D | TertiaryKeyManagerTest.java | 147 KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey); in getWrappedKey_noExistingKey_returnsWrappedNewKey() 158 KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey); in getWrappedKey_existingKey_returnsWrappedExistingKey()
|
H A D | TertiaryKeyStoreTest.java | 203 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(mSecretKey, key); in putAll_putsAllWrappedKeysInTheStore()
|
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
H A D | TertiaryKeyStore.java | 84 byte[] keyBytes = getEncodedKey(KeyWrapUtils.wrap(mSecondaryKey.getSecretKey(), key)); in save() 132 return Optional.of(KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey)); in load() 158 applicationName, KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey)); in getAll()
|
H A D | KeyWrapUtils.java | 33 public class KeyWrapUtils { class 131 private KeyWrapUtils() {} in KeyWrapUtils() method in KeyWrapUtils
|
H A D | RestoreKeyFetcher.java | 58 return KeyWrapUtils.unwrap(secondaryKey.get().getSecretKey(), wrappedTertiaryKey); in unwrapTertiaryKey()
|
H A D | TertiaryKeyManager.java | 86 return KeyWrapUtils.wrap(mSecondaryKey.getSecretKey(), mTertiaryKey); in getWrappedKey()
|
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/ |
H A D | KeyValueEncrypter.java | 26 import com.android.server.backup.encryption.keys.KeyWrapUtils; 76 KeyWrapUtils.wrap( in decryptKeyValueData()
|
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
H A D | RotateSecondaryKeyTask.java | 28 import com.android.server.backup.encryption.keys.KeyWrapUtils; 264 packageName, KeyWrapUtils.wrap(newSecondaryKey.getSecretKey(), tertiaryKey)); in rewrapAll()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/ |
H A D | RoundTripTest.java | 29 import com.android.server.backup.encryption.keys.KeyWrapUtils; 208 KeyWrapUtils.wrap( in performKeyValueRestore()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
H A D | RotateSecondaryKeyTaskTest.java | 32 import com.android.server.backup.encryption.keys.KeyWrapUtils; 179 assertThat(KeyWrapUtils.unwrap(secondaryKey, rewrappedKey)) in run_rewrapsExistingTertiaryKeys()
|