Searched refs:associated_data (Results 1 – 2 of 2) sorted by relevance
/system/security/mls/mls-rs-crypto-boringssl/src/ |
D | lib.rs | 526 let associated_data = vec![42u8, 12]; in aead() localVariable 531 crypto.aead_seal(&key, plaintext, Some(&associated_data), &nonce).unwrap(); in aead() 535 .aead_open(&key, ciphertext.as_slice(), Some(&associated_data), &nonce) in aead() 563 let associated_data = b"some_ad"; in hpke_setup_seal_open_export() localVariable 569 let ct = sender_ctx.seal(Some(associated_data), plaintext).unwrap(); in hpke_setup_seal_open_export() 570 assert_eq!(plaintext.as_ref(), receiver_ctx.open(Some(associated_data), &ct).unwrap(),); in hpke_setup_seal_open_export() 599 let associated_data = b"some_ad"; in hpke_seal_open() localVariable 602 .hpke_seal(&receiver_pub_key, info, Some(associated_data), plaintext) in hpke_seal_open() 612 Some(associated_data) in hpke_seal_open()
|
D | hpke.rs | 432 let associated_data = b"some_ad"; in hpke_seal_open() localVariable 434 let ct = hpke.seal(&receiver_pub_key, info, Some(associated_data), plaintext).unwrap(); in hpke_seal_open() 437 hpke.open(&ct, &receiver_priv_key, info, Some(associated_data)).unwrap(), in hpke_seal_open() 457 let associated_data = b"some_ad"; in hpke_context_seal_open() localVariable 461 let ct = sender_ctx.seal(Some(associated_data), plaintext).unwrap(); in hpke_context_seal_open() 462 assert_eq!(plaintext.as_ref(), receiver_ctx.open(Some(associated_data), &ct).unwrap(),); in hpke_context_seal_open() 481 let associated_data = b"some_ad"; in hpke_context_seal_open_multithreaded() localVariable 488 let ct = sender_ctx.seal(Some(associated_data), plaintext).unwrap(); in hpke_context_seal_open_multithreaded() 491 receiver_ctx.open(Some(associated_data), &ct).unwrap(), in hpke_context_seal_open_multithreaded()
|