mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-30 07:37:36 +00:00
benches/noise_aead.rs measures the transport's AEAD where the node uses it: NoiseSession::encrypt_with_aad and decrypt_with_replay_check_and_aad on the session's own task, and the encrypt and decrypt workers' per-packet shape (a key handed out by the session, a reserved counter, a seal in place on the wire buffer with the tag appended; or a replay check, an open in place and an accept on a worker-owned window), each at a 64-byte and a 1400-byte payload, plus the key hand-out itself. It uses only API that exists before and after the AEAD moves into fips-core, so the same file runs against both trees for comparison. The session pair is built in one function, session_pair().