Home
last modified time | relevance | path

Searched refs:randomBytes (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java189 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_decryptsAValidResponse()
190 byte[] recoveryKey = randomBytes(32); in decryptRecoveryClaimResponse_decryptsAValidResponse()
205 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt()
206 byte[] recoveryKey = randomBytes(32); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt()
226 byte[] challenge = randomBytes(32); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()
227 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()
248 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()
253 /*challenge=*/ randomBytes(32), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()
262 RECOVERY_CLAIM_HEADER, vaultParams, randomBytes(32)), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()
273 byte[] challenge = randomBytes(32); in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectSecretKey()
[all …]
DRecoverableKeyStoreManagerTest.java207 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKey_storesTheKey()
217 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES - 1); in importKey_throwsIfInvalidLength()
845 .setEncryptedKeyMaterial(randomBytes(32)) in recoverKeyChainSnapshot_throwsIfNoSessionIsPresent()
849 /*recoveryKeyBlob=*/ randomBytes(32), in recoverKeyChainSnapshot_throwsIfNoSessionIsPresent()
869 /*encryptedRecoveryKey=*/ randomBytes(60), in recoverKeyChainSnapshot_throwsIfRecoveryClaimCannotBeDecrypted()
894 encryptedApplicationKey(randomRecoveryKey(), randomBytes(32))) in recoverKeyChainSnapshot_throwsIfFailedToDecryptAllApplicationKeys()
941 byte[] applicationKeyBytes = randomBytes(32); in recoverKeyChainSnapshot_returnsDecryptedKeys()
972 byte[] applicationKeyBytes1 = randomBytes(32); in recoverKeyChainSnapshot_worksOnOtherApplicationKeysIfOneDecryptionFails()
973 byte[] applicationKeyBytes2 = randomBytes(32); in recoverKeyChainSnapshot_worksOnOtherApplicationKeysIfOneDecryptionFails()
1194 return new SecretKeySpec(randomBytes(32), "AES"); in randomRecoveryKey()
[all …]
DRecoverableKeyGeneratorTest.java123 byte[] rawMaterial = randomBytes(KEY_SIZE_BYTES); in importKey_storesTheWrappedVersionOfTheRawMaterial()
151 private static byte[] randomBytes(int n) { in randomBytes() method in RecoverableKeyGeneratorTest
DKeySyncTaskTest.java178 byte[] salt = randomBytes(16); in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()
187 byte[] salt = randomBytes(16); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()
201 KeySyncTask.hashCredentialsBySaltedSha256(randomBytes(64), credentials), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()
202 KeySyncTask.hashCredentialsBySaltedSha256(randomBytes(64), credentials))); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()
840 private static byte[] randomBytes(int n) { in randomBytes() method in KeySyncTaskTest
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformAdbBackupTask.java145 .randomBytes(PasswordUtils.PBKDF2_SALT_SIZE); in emitAesBackupHeader()
155 .randomBytes(PasswordUtils.PBKDF2_SALT_SIZE); in emitAesBackupHeader()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java233 byte[] randomBytes = new byte[8]; in generateInstantAppAndroidIdLPw()
234 new SecureRandom().nextBytes(randomBytes); in generateInstantAppAndroidIdLPw()
235 String id = ByteStringUtils.toHexString(randomBytes).toLowerCase(Locale.US); in generateInstantAppAndroidIdLPw()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java1091 public byte[] randomBytes(int bits) { in randomBytes() method in BackupManagerService