Home
last modified time | relevance | path

Searched refs:secretKey (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGeneratorTest.java50 SecretKey secretKey = mTertiaryKeyGenerator.generate(); in generate_generatesAESKeys() local
52 assertThat(secretKey.getAlgorithm()).isEqualTo(KEY_ALGORITHM); in generate_generatesAESKeys()
58 SecretKey secretKey = mTertiaryKeyGenerator.generate(); in generate_generates256BitKeys() local
60 assertThat(secretKey.getEncoded()).hasLength(KEY_SIZE_BITS / 8); in generate_generates256BitKeys()
DRecoverableKeyStoreSecondaryKeyTest.java85 SecretKey secretKey = mSecondaryKey.getSecretKey(); in getSecretKey() local
87 assertThat(secretKey).isEqualTo(mGeneratedSecretKey); in getSecretKey()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DChunkHasher.java32 public ChunkHasher(SecretKey secretKey) { in ChunkHasher() argument
33 this.mSecretKey = secretKey; in ChunkHasher()
DChunkEncryptor.java44 public ChunkEncryptor(SecretKey secretKey, SecureRandom secureRandom) { in ChunkEncryptor() argument
45 this.mSecretKey = secretKey; in ChunkEncryptor()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java143 SecretKey secretKey = null; in getOrCreateSecretKey() local
150 secretKey = secretKeyEntry.getSecretKey(); in getOrCreateSecretKey()
169 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
182 return secretKey; in getOrCreateSecretKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DApplicationKeyStorage.java78 public void setSymmetricKeyEntry(int userId, int uid, String alias, byte[] secretKey) in setSymmetricKeyEntry() argument
81 userId, uid, alias, secretKey.length)); in setSymmetricKeyEntry()
86 new SecretKeySpec(secretKey, KeyProperties.KEY_ALGORITHM_AES)), in setSymmetricKeyEntry()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixer.java59 public FingerprintMixer(SecretKey secretKey, byte[] salt) throws InvalidKeyException { in FingerprintMixer() argument
61 byte[] keyBytes = secretKey.getEncoded(); in FingerprintMixer()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/keys/
DRecoverableKeyStoreSecondaryKey.java48 public RecoverableKeyStoreSecondaryKey(String alias, SecretKey secretKey) { in RecoverableKeyStoreSecondaryKey() argument
50 mSecretKey = checkNotNull(secretKey); in RecoverableKeyStoreSecondaryKey()
DRecoverableKeyStoreSecondaryKeyManager.java100 SecretKey secretKey = (SecretKey) mRecoveryController.getKey(alias); in get() local
101 return Optional.ofNullable(secretKey) in get()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java160 SecretKey secretKey = keyGenerator.generateKey(); in createBlob() local
174 new KeyStore.SecretKeyEntry(secretKey), in createBlob()
177 return encrypt(secretKey, intermediate); in createBlob()
DLockSettingsService.java1595 SecretKey secretKey = keyGenerator.generateKey(); in tieProfileLockToParent() local
1601 new java.security.KeyStore.SecretKeyEntry(secretKey), in tieProfileLockToParent()
1608 new java.security.KeyStore.SecretKeyEntry(secretKey), in tieProfileLockToParent()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java439 SecretKey secretKey = generateAesKey(); in generateAndLoadKey() local
464 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
468 new KeyStore.SecretKeyEntry(secretKey), in generateAndLoadKey()
DRecoverableKeyStoreManager.java731 byte[] secretKey = mRecoverableKeyGenerator.generateAndStoreKey(encryptionKey, userId, in generateKeyWithMetadata()
733 mApplicationKeyStorage.setSymmetricKeyEntry(userId, uid, alias, secretKey); in generateKeyWithMetadata()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DContentDefinedChunkerTest.java64 SecretKey secretKey = generateAesKey(); in setUp() local
68 mFingerprintMixer = new FingerprintMixer(secretKey, salt); in setUp()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java276 final byte[] secretKey = mSettings.getPrivacySecretKey(); in tryAggregateRecords()
278 secretKey, digestsForReport, aggregatedResult); in tryAggregateRecords()