Home
last modified time | relevance | path

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

/system/security/keystore2/src/
Dec_crypto.rs20 aes_gcm_decrypt, aes_gcm_encrypt, ec_key_generate_key, ec_key_get0_public_key,
88 aes_gcm_encrypt(message, &aes_key).context(ks_err!("aes_gcm_encrypt failed"))?; in encrypt_message()
Dsuper_key.rs44 aes_gcm_decrypt, aes_gcm_encrypt, generate_aes256_key, generate_salt, Password, ZVec,
177 aes_gcm_encrypt(plaintext, &self.key).context(ks_err!("Encryption failed.")) in encrypt()
195 let (mut ciphertext, nonce, mut tag) = aes_gcm_encrypt(&to_encrypt.key, key)?; in new()
589 let (encrypted_key, iv, tag) = aes_gcm_encrypt(super_key, &derived_key) in encrypt_with_password()
607 let (encrypted_key, iv, tag) = aes_gcm_encrypt(key_blob, &(super_key.key)) in encrypt_with_aes_super_key()
Dutils.rs49 use keystore2_crypto::{aes_gcm_decrypt, aes_gcm_encrypt, ZVec};
619 aes_gcm_encrypt(plaintext, self.key()).context(ks_err!("Encryption failed.")) in encrypt()
Dlegacy_blob.rs1364 use keystore2_crypto::{aes_gcm_decrypt, aes_gcm_encrypt};
1379 let (ciphertext, iv, tag) = aes_gcm_encrypt(&data, key).unwrap(); in prepare_blob()
1383 let (ciphertext, iv, tag) = aes_gcm_encrypt(&data, key).unwrap(); in prepare_blob()
1390 let (ciphertext, iv, tag) = aes_gcm_encrypt(&data, key).unwrap(); in prepare_blob()
Ddatabase.rs5142 keystore2_crypto::aes_gcm_encrypt(secret_bytes, &super_key)?; in test_store_super_key()
/system/security/keystore2/src/fuzzers/
Dkeystore2_unsafe_fuzzer.rs23 aes_gcm_decrypt, aes_gcm_encrypt, ec_key_generate_key, ec_key_get0_public_key,
144 let _res = aes_gcm_encrypt(plaintext, key_aes_encrypt);
/system/security/keystore2/src/crypto/
Dlib.rs141 pub fn aes_gcm_encrypt(plaintext: &[u8], key: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), Error> { in aes_gcm_encrypt() function
490 let (cipher_text, iv, tag) = aes_gcm_encrypt(message, &key).unwrap(); in test_wrapper_roundtrip()