Searched refs:aes_gcm_encrypt (Results 1 – 7 of 7) sorted by relevance
/system/security/keystore2/src/ |
D | ec_crypto.rs | 20 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()
|
D | super_key.rs | 44 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()
|
D | utils.rs | 49 use keystore2_crypto::{aes_gcm_decrypt, aes_gcm_encrypt, ZVec}; 619 aes_gcm_encrypt(plaintext, self.key()).context(ks_err!("Encryption failed.")) in encrypt()
|
D | legacy_blob.rs | 1364 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()
|
D | database.rs | 5142 keystore2_crypto::aes_gcm_encrypt(secret_bytes, &super_key)?; in test_store_super_key()
|
/system/security/keystore2/src/fuzzers/ |
D | keystore2_unsafe_fuzzer.rs | 23 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/ |
D | lib.rs | 141 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()
|