Lines Matching refs:Nonce
108 aead::Nonce, in test_aead() argument
115 aead::Nonce, in test_aead()
135 assert!(aead::Nonce::try_assume_unique_for_key(&nonce_bytes).is_err()); in test_aead()
142 let nonce = aead::Nonce::try_assume_unique_for_key(&nonce_bytes).unwrap(); in test_aead()
229 let nonce = aead::Nonce::try_assume_unique_for_key(&nonce_bytes).unwrap(); in test_aead()
260 nonce: aead::Nonce, in seal_with_key() argument
271 nonce: aead::Nonce, in open_with_key() argument
283 nonce: aead::Nonce, in seal_with_less_safe_key() argument
294 nonce: aead::Nonce, in open_with_less_safe_key() argument
337 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..nonce_len]).is_ok()); in test_aead_nonce_sizes()
338 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len - 1)]).is_err()); in test_aead_nonce_sizes()
339 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len + 1)]).is_err()); in test_aead_nonce_sizes()
340 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len / 2)]).is_err()); in test_aead_nonce_sizes()
341 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len * 2)]).is_err()); in test_aead_nonce_sizes()
342 assert!(aead::Nonce::try_assume_unique_for_key(&[]).is_err()); in test_aead_nonce_sizes()
343 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..1]).is_err()); in test_aead_nonce_sizes()
344 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..16]).is_err()); // 128 bits. in test_aead_nonce_sizes()
425 aead::Nonce::try_assume_unique_for_key(&nonce).unwrap(), in test_aead_key_debug()
435 aead::Nonce::try_assume_unique_for_key(&nonce).unwrap(), in test_aead_key_debug()
452 nonce: aead::Nonce, in make_key() argument
464 struct OneNonceSequence(Option<aead::Nonce>);
469 fn new(nonce: aead::Nonce) -> Self { in new()
475 fn advance(&mut self) -> Result<aead::Nonce, error::Unspecified> { in advance() argument