Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordCrypto.java62 byte[] ciphertext = Arrays.copyOfRange(blob, PROFILE_KEY_IV_SIZE, blob.length); in decrypt()
66 return cipher.doFinal(ciphertext); in decrypt()
80 byte[] ciphertext = cipher.doFinal(blob); in encrypt()
92 outputStream.write(ciphertext); in encrypt()
110 public static byte[] decrypt(byte[] keyBytes, byte[] personalisation, byte[] ciphertext) { in decrypt() argument
115 return decrypt(key, ciphertext); in decrypt()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DSecureBox.java204 byte[] ciphertext = aesGcmEncrypt(encryptionKey, randNonce, payload, header); in encrypt()
206 return concat(VERSION, randNonce, ciphertext); in encrypt()
209 VERSION, encodePublicKey(senderKeyPair.getPublic()), randNonce, ciphertext); in encrypt()
270 byte[] ciphertext = readEncryptedPayload(ciphertextBuffer, ciphertextBuffer.remaining()); in decrypt()
273 return aesGcmDecrypt(decryptionKey, randNonce, ciphertext, header); in decrypt()
335 private static byte[] aesGcmDecrypt(SecretKey key, byte[] nonce, byte[] ciphertext, byte[] aad) in aesGcmDecrypt() argument
337 return aesGcmInternal(AesGcmOperation.DECRYPT, key, nonce, ciphertext, aad); in aesGcmDecrypt()