Searched refs:newSecondaryKey (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | KeyWrapUtilsTest.java | 136 SecretKey newSecondaryKey = generateAesKey(); in rewrap_canBeUnwrappedWithNewSecondaryKey() local 140 KeyWrapUtils.rewrap(oldSecondaryKey, newSecondaryKey, wrappedWithOld); in rewrap_canBeUnwrappedWithNewSecondaryKey() 142 assertThat(KeyWrapUtils.unwrap(newSecondaryKey, wrappedWithNew)).isEqualTo(tertiaryKey); in rewrap_canBeUnwrappedWithNewSecondaryKey() 150 SecretKey newSecondaryKey = generateAesKey(); in rewrap_cannotBeUnwrappedWithOldSecondaryKey() local 154 KeyWrapUtils.rewrap(oldSecondaryKey, newSecondaryKey, wrappedWithOld); in rewrap_cannotBeUnwrappedWithOldSecondaryKey()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | RotateSecondaryKeyTask.java | 168 private void rotateToKey(RecoverableKeyStoreSecondaryKey newSecondaryKey) in rotateToKey() argument 176 String newSecondaryKeyAlias = newSecondaryKey.getAlias(); in rotateToKey() 194 rewrapAll(newSecondaryKey, tertiaryKeys); in rotateToKey() 195 TertiaryKeyStore.newInstance(mContext, newSecondaryKey).putAll(rewrappedTertiaryKeys); in rotateToKey() 256 RecoverableKeyStoreSecondaryKey newSecondaryKey, Map<String, SecretKey> tertiaryKeys) in rewrapAll() argument 264 packageName, KeyWrapUtils.wrap(newSecondaryKey.getSecretKey(), tertiaryKey)); in rewrapAll()
|
D | StartSecondaryKeyRotationTask.java | 77 RecoverableKeyStoreSecondaryKey newSecondaryKey; in run() local 79 newSecondaryKey = mSecondaryKeyManager.generate(); in run() 91 String alias = newSecondaryKey.getAlias(); in run()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | KeyWrapUtils.java | 118 SecretKey newSecondaryKey, in rewrap() argument 123 return wrap(newSecondaryKey, unwrap(oldSecondaryKey, tertiaryKey)); in rewrap()
|