Searched refs:aes_gcm_encrypt (Results 1 – 4 of 4) sorted by relevance
/system/security/keystore2/src/ |
D | ec_crypto.rs | 19 aes_gcm_decrypt, aes_gcm_encrypt, ec_key_generate_key, ec_key_get0_public_key, 97 let (ciphertext, iv, tag) = aes_gcm_encrypt(message, &aes_key) in encrypt_message()
|
D | super_key.rs | 46 aes_gcm_decrypt, aes_gcm_encrypt, generate_aes256_key, generate_salt, Password, ZVec, 184 let (mut ciphertext, nonce, mut tag) = aes_gcm_encrypt(&to_encrypt.key, key)?; in new() 671 let (encrypted_key, iv, tag) = aes_gcm_encrypt(super_key, &derived_key) in encrypt_with_password() 716 let (encrypted_key, iv, tag) = aes_gcm_encrypt(key_blob, &(super_key.key)) in encrypt_with_aes_super_key()
|
D | database.rs | 5469 keystore2_crypto::aes_gcm_encrypt(secret_bytes, &super_key)?; in test_store_super_key()
|
/system/security/keystore2/src/crypto/ |
D | lib.rs | 124 pub fn aes_gcm_encrypt(plaintext: &[u8], key: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), Error> { in aes_gcm_encrypt() function 472 let (cipher_text, iv, tag) = aes_gcm_encrypt(message, &key).unwrap(); in test_wrapper_roundtrip()
|