Lines Matching refs:ad
67 fn seal(&self, nonce: &Self::Nonce, plaintext: &[u8], ad: &[u8]) -> Vec<u8>; in seal()
73 fn seal_in_place(&self, nonce: &Self::Nonce, plaintext: &mut [u8], ad: &[u8]) -> Self::Tag; in seal_in_place()
79 fn open(&self, nonce: &Self::Nonce, ciphertext: &[u8], ad: &[u8]) -> Option<Vec<u8>>; in open()
89 ad: &[u8], in open_in_place()
137 fn seal(&self, nonce: &[u8; NONCE_LEN], plaintext: &[u8], ad: &[u8]) -> Vec<u8> { in seal()
155 ad.as_ffi_ptr(),
156 ad.len(),
173 ad: &[u8],
193 ad.as_ffi_ptr(),
194 ad.len(),
205 fn open(&self, nonce: &[u8; NONCE_LEN], ciphertext: &[u8], ad: &[u8]) -> Option<Vec<u8>> { in open()
227 ad.as_ffi_ptr(),
228 ad.len(),
245 ad: &[u8],
259 ad.as_ffi_ptr(),
260 ad.len(),
294 let ad = b"additional data";
297 let mut ciphertext = aead.seal(&nonce, plaintext, ad);
299 .open(&nonce, ciphertext.as_slice(), ad)
304 assert!(aead.open(&nonce, ciphertext.as_slice(), ad).is_none());
310 aead.open_in_place(&nonce, ciphertext_in_place, &tag, ad)
314 let tag = aead.seal_in_place(&nonce, ciphertext_in_place, ad);
315 aead.open_in_place(&nonce, ciphertext_in_place, &tag, ad)
356 ad: Vec<u8>, field
371 let ciphertext = ctx.seal(&test.nonce, test.msg.as_slice(), test.ad.as_slice());
375 .open(&test.nonce, ciphertext.as_slice(), test.ad.as_slice())
390 ad: Vec::new(), in aes_128_gcm_siv()
398 ad: Vec::new(), in aes_128_gcm_siv()
406 ad: decode_hex_into_vec("010000000000000000000000"), in aes_128_gcm_siv()
423 ad: Vec::new(), in aes_256_gcm_siv()
431 ad: Vec::new(), in aes_256_gcm_siv()
441 ad: decode_hex_into_vec("010000000000000000000000"), in aes_256_gcm_siv()
457 ad: Vec::new(), in aes_128_gcm()
465 ad: decode_hex_into_vec("c60c64bbf7"), in aes_128_gcm()
481 ad: Vec::new(), in aes_256_gcm()
489 ad: decode_hex_into_vec("e91428be04"), in aes_256_gcm()