Lines Matching refs:ciphertext

79     fn open(&self, nonce: &Self::Nonce, ciphertext: &[u8], ad: &[u8]) -> Option<Vec<u8>>;  in open()
87 ciphertext: &mut [u8], in open_in_place()
205 fn open(&self, nonce: &[u8; NONCE_LEN], ciphertext: &[u8], ad: &[u8]) -> Option<Vec<u8>> { in open()
206 if ciphertext.len() < TAG_LEN {
209 let max_output = ciphertext.len() - TAG_LEN;
225 ciphertext.as_ffi_ptr(),
226 ciphertext.len(),
243 ciphertext: &mut [u8],
252 ciphertext.as_mut_ffi_ptr(),
255 ciphertext.as_ffi_ptr(),
256 ciphertext.len(),
297 let mut ciphertext = aead.seal(&nonce, plaintext, ad); variables
299 .open(&nonce, ciphertext.as_slice(), ad)
303 ciphertext[0] ^= 1;
304 assert!(aead.open(&nonce, ciphertext.as_slice(), ad).is_none());
305 ciphertext[0] ^= 1;
308 ciphertext.as_mut_slice().split_at_mut(plaintext.len());
357 ciphertext: Vec<u8>, field
371 let ciphertext = ctx.seal(&test.nonce, test.msg.as_slice(), test.ad.as_slice());
372 assert_eq!(ciphertext, test.ciphertext, "Failed on test #{}", test_num);
375 .open(&test.nonce, ciphertext.as_slice(), test.ad.as_slice())
391 ciphertext: decode_hex_into_vec("dc20e2d83f25705bb49e439eca56de25"), in aes_128_gcm_siv()
399 ciphertext: decode_hex_into_vec("b5d839330ac7b786578782fff6013b815b287c22493a364c"), in aes_128_gcm_siv()
407 ciphertext: decode_hex_into_vec("a8fe3e8707eb1f84fb28f8cb73de8e99e2f48a14"), in aes_128_gcm_siv()
424 ciphertext: decode_hex_into_vec("c2ef328e5c71c83b843122130f7364b761e0b97427e3df28"), in aes_256_gcm_siv()
432 ciphertext: decode_hex_into_vec( in aes_256_gcm_siv()
442 ciphertext: decode_hex_into_vec("22b3f4cd1835e517741dfddccfa07fa4661b74cf"), in aes_256_gcm_siv()
458 ciphertext: decode_hex_into_vec("7d7daf44850921a34e636b01adeb104f"), in aes_128_gcm()
466 ciphertext: decode_hex_into_vec("5626f96ecbff4c4f1d92b0abb1d0820833d9eb83c7"), in aes_128_gcm()
482 ciphertext: decode_hex_into_vec("d7cba289d6d19a5af45dc13857016bac"), in aes_256_gcm()
490 ciphertext: decode_hex_into_vec("e9b8a896da9115ed79f26a030c14947b3e454db9e7"), in aes_256_gcm()