Searched refs:randomBytes (Results 1 – 11 of 11) sorted by relevance
243 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_decryptsAValidResponse()244 byte[] recoveryKey = randomBytes(32); in decryptRecoveryClaimResponse_decryptsAValidResponse()259 byte[] vaultParams = randomBytes(100); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt()260 byte[] recoveryKey = randomBytes(32); in decryptRecoveryClaimResponse_throwsIfCannotDecrypt()280 byte[] challenge = randomBytes(32); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()281 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()302 byte[] vaultParams = randomBytes(100); in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()307 /*challenge=*/ randomBytes(32), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()316 RECOVERY_CLAIM_HEADER, vaultParams, randomBytes(32)), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()327 byte[] challenge = randomBytes(32); in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectSecretKey()[all …]
141 randomBytes(KEY_SIZE_BYTES), in importKey_storesNullMetadata()150 randomBytes(KEY_SIZE_BYTES), in importKey_storesNonNullMetadata()158 byte[] rawMaterial = randomBytes(KEY_SIZE_BYTES); in importKey_storesTheWrappedVersionOfTheRawMaterial()183 private static byte[] randomBytes(int n) { in randomBytes() method in RecoverableKeyGeneratorTest
242 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKey_storesTheKey()252 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES - 1); in importKey_throwsIfInvalidLength()275 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKeyWithMetadata_nullMetadata_storesTheKey()288 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES); in importKeyWithMetadata_nonNullMetadata_storesTheKey()299 byte[] keyMaterial = randomBytes(APPLICATION_KEY_SIZE_BYTES - 1); in importKeyWithMetadata_throwsIfInvalidLength()965 .setEncryptedKeyMaterial(randomBytes(32)) in recoverKeyChainSnapshot_throwsIfNoSessionIsPresent()969 /*recoveryKeyBlob=*/ randomBytes(32), in recoverKeyChainSnapshot_throwsIfNoSessionIsPresent()989 /*encryptedRecoveryKey=*/ randomBytes(60), in recoverKeyChainSnapshot_throwsIfRecoveryClaimCannotBeDecrypted()1014 encryptedApplicationKey(randomRecoveryKey(), randomBytes(32))) in recoverKeyChainSnapshot_throwsIfFailedToDecryptAllApplicationKeys()1061 byte[] applicationKeyBytes = randomBytes(32); in recoverKeyChainSnapshot_returnsDecryptedKeys()[all …]
170 byte[] salt = randomBytes(16); in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()179 byte[] salt = randomBytes(16); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()193 KeySyncTask.hashCredentialsBySaltedSha256(randomBytes(64), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()195 KeySyncTask.hashCredentialsBySaltedSha256(randomBytes(64), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()956 private static byte[] randomBytes(int n) { in randomBytes() method in KeySyncTaskTest
104 byte[] randomBytes = new byte[sID_LEN_BYTES]; in getRandId()106 randomVal.nextBytes(randomBytes); in getRandId()107 return HexEncoding.encodeToString(randomBytes); in getRandId()
26 public static byte[] randomBytes(int length) { in randomBytes() method in SecureRandomUtils
309 SecureRandomUtils.randomBytes(SYNTHETIC_PASSWORD_SECURITY_STRENGTH); in create()311 SecureRandomUtils.randomBytes(SYNTHETIC_PASSWORD_SECURITY_STRENGTH); in create()379 result.salt = SecureRandomUtils.randomBytes(PASSWORD_SALT_LENGTH); in create()674 value = SecureRandomUtils.randomBytes(mWeaverConfig.valueSize); in weaverEnroll()1270 final byte[] secdiscardable = SecureRandomUtils.randomBytes(SECDISCARDABLE_LENGTH); in addPendingToken()1272 tokenData.weaverSecret = SecureRandomUtils.randomBytes(mWeaverConfig.valueSize); in addPendingToken()1796 byte[] data = SecureRandomUtils.randomBytes(SECDISCARDABLE_LENGTH); in createSecdiscardable()
416 byte[] randomLockSeed = SecureRandomUtils.randomBytes(40); in generateRandomProfilePassword()2915 authSecret = SecureRandomUtils.randomBytes(HEADLESS_VENDOR_AUTH_SECRET_LENGTH); in callToAuthSecretIfNeeded()
151 .randomBytes(PasswordUtils.PBKDF2_SALT_SIZE); in emitAesBackupHeader()161 .randomBytes(PasswordUtils.PBKDF2_SALT_SIZE); in emitAesBackupHeader()
339 byte[] randomBytes = new byte[8];340 new SecureRandom().nextBytes(randomBytes);341 String id = HexEncoding.encodeToString(randomBytes, false /* upperCase */);
1181 public byte[] randomBytes(int bits) { in randomBytes() method in UserBackupManagerService