Home
last modified time | relevance | path

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 DKeyWrapUtilsTest.java48 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 DRestoreKeyFetcherTest.java67 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 DTertiaryKeyManagerTest.java147 KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey); in getWrappedKey_noExistingKey_returnsWrappedNewKey()
158 KeyWrapUtils.unwrap(mSecondaryKey.getSecretKey(), wrappedKey); in getWrappedKey_existingKey_returnsWrappedExistingKey()
H A DTertiaryKeyStoreTest.java203 WrappedKeyProto.WrappedKey wrappedKey = KeyWrapUtils.wrap(mSecretKey, key); in putAll_putsAllWrappedKeysInTheStore()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
H A DTertiaryKeyStore.java84 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 DKeyWrapUtils.java33 public class KeyWrapUtils { class
131 private KeyWrapUtils() {} in KeyWrapUtils() method in KeyWrapUtils
H A DRestoreKeyFetcher.java58 return KeyWrapUtils.unwrap(secondaryKey.get().getSecretKey(), wrappedTertiaryKey); in unwrapTertiaryKey()
H A DTertiaryKeyManager.java86 return KeyWrapUtils.wrap(mSecondaryKey.getSecretKey(), mTertiaryKey); in getWrappedKey()
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
H A DKeyValueEncrypter.java26 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 DRotateSecondaryKeyTask.java28 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 DRoundTripTest.java29 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 DRotateSecondaryKeyTaskTest.java32 import com.android.server.backup.encryption.keys.KeyWrapUtils;
179 assertThat(KeyWrapUtils.unwrap(secondaryKey, rewrappedKey)) in run_rewrapsExistingTertiaryKeys()