Searched refs:aead (Results 1 – 4 of 4) sorted by relevance
/system/security/mls/mls-rs-crypto-boringssl/src/ |
D | aead.rs | 17 use bssl_crypto::aead::{Aead, Aes128Gcm, Aes256Gcm, Chacha20Poly1305}; 210 for aead in get_aeads() { in seal_and_open() 211 let key = vec![42u8; aead.key_size()]; in seal_and_open() 212 let nonce = vec![42u8; aead.nonce_size()]; in seal_and_open() 215 let ciphertext = aead.seal(&key, plaintext, None, &nonce).unwrap(); in seal_and_open() 218 aead.open(&key, ciphertext.as_slice(), None, &nonce).unwrap().as_slice(), in seal_and_open() 220 aead.aead_id(), in seal_and_open() 227 for aead in get_aeads() { in seal_and_open_with_invalid_key() 229 let nonce = vec![42u8; aead.nonce_size()]; in seal_and_open_with_invalid_key() 231 let key_short = vec![42u8; aead.key_size() - 1]; in seal_and_open_with_invalid_key() [all …]
|
D | lib.rs | 17 pub mod aead; module 36 use aead::AeadWrapper; 121 let aead = AeadWrapper::new(cipher_suite)?; in cipher_suite_provider() localVariable 123 BoringsslCipherSuite::new(cipher_suite, kem, kdf, aead) in cipher_suite_provider() 139 aead: AEAD, field 151 pub fn new(cipher_suite: CipherSuite, kem: KEM, kdf: KDF, aead: AEAD) -> Option<Self> { in new() 157 aead, in new() 249 self.aead in aead_seal() 262 self.aead in aead_open() 270 self.aead.key_size() in aead_key_size() [all …]
|
/system/netd/server/ |
D | XfrmController.cpp | 568 saInfo.aead = XfrmAlgo{ in ipSecAddSecurityAssociation() 944 nlattr_algo_aead aead{}; in updateSecurityAssociation() local 981 {&aead, 0}, // adjust size if aead algo is present in updateSecurityAssociation() 995 if (!record.aead.name.empty() && (!record.auth.name.empty() || !record.crypt.name.empty())) { in updateSecurityAssociation() 1001 if (record.aead.key.size() > MAX_KEY_LENGTH || record.auth.key.size() > MAX_KEY_LENGTH || in updateSecurityAssociation() 1025 len = iov[AEAD].iov_len = fillNlAttrXfrmAlgoAead(record.aead, &aead); in updateSecurityAssociation() 1088 strncpy(algo->aead.alg_name, inAlgo.name.c_str(), sizeof(algo->aead.alg_name)); in fillNlAttrXfrmAlgoAead() 1089 algo->aead.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAead() 1093 algo->aead.alg_icv_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAead()
|
D | XfrmController.h | 132 XfrmAlgo aead; member 317 xfrm_algo_aead aead; member
|