Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordCrypto.java70 byte[] ciphertext = Arrays.copyOfRange(blob, AES_GCM_IV_SIZE, blob.length); in decrypt()
74 return cipher.doFinal(ciphertext); in decrypt()
88 byte[] ciphertext = cipher.doFinal(blob); in encrypt()
98 return ArrayUtils.concat(iv, ciphertext); in encrypt()
115 public static byte[] decrypt(byte[] keyBytes, byte[] personalization, byte[] ciphertext) { in decrypt() argument
120 return decrypt(key, ciphertext); in decrypt()
H A DManagedProfilePasswordCache.java111 byte[] ciphertext = cipher.doFinal(password.getCredential()); in storePassword()
113 byte[] block = ArrayUtils.concat(iv, ciphertext); in storePassword()
141 byte[] ciphertext = Arrays.copyOfRange(block, 12, block.length); in retrievePassword()
146 credential = cipher.doFinal(ciphertext); in retrievePassword()
H A DLockSettingsService.java1927 final byte[] ciphertext; in tieProfileLockToParent()
1964 ciphertext = cipher.doFinal(password.getCredential()); in tieProfileLockToParent()
1978 mStorage.writeChildProfileLock(profileUserId, ArrayUtils.concat(iv, ciphertext)); in tieProfileLockToParent()
/aosp14/frameworks/base/libs/securebox/src/com/android/security/
H A DSecureBox.java208 byte[] ciphertext = aesGcmEncrypt(encryptionKey, randNonce, payload, header); in encrypt()
210 return ArrayUtils.concat(VERSION, randNonce, ciphertext); in encrypt()
213 VERSION, encodePublicKey(senderKeyPair.getPublic()), randNonce, ciphertext); in encrypt()
274 byte[] ciphertext = readEncryptedPayload(ciphertextBuffer, ciphertextBuffer.remaining()); in decrypt()
277 return aesGcmDecrypt(decryptionKey, randNonce, ciphertext, header); in decrypt()
339 private static byte[] aesGcmDecrypt(SecretKey key, byte[] nonce, byte[] ciphertext, byte[] aad) in aesGcmDecrypt() argument
341 return aesGcmInternal(AesGcmOperation.DECRYPT, key, nonce, ciphertext, aad); in aesGcmDecrypt()