Searched refs:ciphertext (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | ManagedProfilePasswordCache.java | 118 byte[] ciphertext = cipher.doFinal(password.getCredential()); in storePassword() 120 byte[] block = Arrays.copyOf(iv, ciphertext.length + iv.length); in storePassword() 121 System.arraycopy(ciphertext, 0, block, iv.length, ciphertext.length); in storePassword() 149 byte[] ciphertext = Arrays.copyOfRange(block, 12, block.length); in retrievePassword() 154 credential = cipher.doFinal(ciphertext); in retrievePassword()
|
D | SyntheticPasswordCrypto.java | 64 byte[] ciphertext = Arrays.copyOfRange(blob, PROFILE_KEY_IV_SIZE, blob.length); in decrypt() 68 return cipher.doFinal(ciphertext); in decrypt() 82 byte[] ciphertext = cipher.doFinal(blob); in encrypt() 94 outputStream.write(ciphertext); in encrypt() 112 public static byte[] decrypt(byte[] keyBytes, byte[] personalisation, byte[] ciphertext) { in decrypt() argument 117 return decrypt(key, ciphertext); in decrypt()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | SecureBox.java | 204 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()
|