Lines Matching refs:None
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()
233 aead.seal(&key_short, data, None, &nonce), in seal_and_open_with_invalid_key()
239 aead.open(&key_short, data, None, &nonce), in seal_and_open_with_invalid_key()
247 aead.seal(&key_long, data, None, &nonce), in seal_and_open_with_invalid_key()
253 aead.open(&key_long, data, None, &nonce), in seal_and_open_with_invalid_key()
269 aead.open(&key, &ciphertext_short, None, &nonce), in invalid_ciphertext()
291 aead.open(&key, &ciphertext, None, &nonce), in associated_data_mismatch()
307 aead.seal(&key, data, None, &nonce_short), in invalid_nonce()
313 aead.open(&key, data, None, &nonce_short), in invalid_nonce()
321 aead.seal(&key, data, None, &nonce_long), in invalid_nonce()
327 aead.open(&key, data, None, &nonce_long), in invalid_nonce()