Home
last modified time | relevance | path

Searched refs:AES_256_KEY_LENGTH (Results 1 – 5 of 5) sorted by relevance

/system/security/keystore2/src/crypto/
Dlib.rs37 pub const AES_256_KEY_LENGTH: usize = 32; constant
51 let mut key = ZVec::new(AES_256_KEY_LENGTH)?; in generate_aes256_key()
52 if unsafe { randomBytes(key.as_mut_ptr(), AES_256_KEY_LENGTH) } { in generate_aes256_key()
95 AES_128_KEY_LENGTH | AES_256_KEY_LENGTH => {} in aes_gcm_decrypt()
132 AES_128_KEY_LENGTH | AES_256_KEY_LENGTH => {} in aes_gcm_encrypt()
197 AES_128_KEY_LENGTH | AES_256_KEY_LENGTH => {} in derive_key()
/system/security/keystore2/src/
Dec_crypto.rs22 AES_256_KEY_LENGTH,
77 let aes_key = hkdf_expand(AES_256_KEY_LENGTH, &prk, b"AES-256-GCM key") in agree_key()
Dboot_level_keys.rs28 use keystore2_crypto::{hkdf_expand, ZVec, AES_256_KEY_LENGTH};
233 self.expand_key(boot_level, AES_256_KEY_LENGTH, BootLevelKeyCache::HKDF_AES) in aes_key()
Dsuper_key.rs47 AES_256_KEY_LENGTH,
626 let key = pw.derive_key(Some(salt), AES_256_KEY_LENGTH).context( in extract_super_key_from_key_entry()
666 .derive_key(Some(&salt), AES_256_KEY_LENGTH) in encrypt_with_password()
Dlegacy_blob.rs369 key_size: keystore2_crypto::AES_256_KEY_LENGTH, in new_from_stream()