bitcoin-poly1305 0.1.18

Poly1305 is a universal hash function suitable for use as a one-time authenticator and, when combined with a cipher, a message authentication code (MAC). It takes a 32-byte one-time key and a message and produces a 16-byte tag, which can be used to authenticate the message.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// ---------------- [ File: bitcoin-poly1305/src/trace_step.rs ]
crate::ix!();

/// Small helper: emit a `TRACE` event whose `step` field is fixed and all
/// remaining tokens are forwarded verbatim to `tracing::trace!`.  This lets
/// you write e.g.  
/// `trace_step!("c‑prop‑0", { c, h_before = h0, h_after = h[0] });`
#[macro_export]
macro_rules! trace_step {
    ($step:expr, { $($field:tt)* }) => {
        tracing::trace!(
            step = $step,
            $($field)*
        );
    };
}