pub struct State { /* private fields */ }Expand description
Poly1305 state for incremental authentication
This structure allows computing a Poly1305 authentication tag incrementally, which is useful when the entire message is not available at once or when processing large messages in chunks to avoid excessive memory usage.
§Memory Efficiency
Using the incremental API allows processing messages of any size without needing to load the entire message into memory at once. This is particularly useful for:
- Large files that don’t fit in memory
- Streaming data from a network or other source
- Memory-constrained environments
§Security Note
The security properties of Poly1305 are maintained when using the incremental API. The same tag will be produced regardless of how the message is chunked, as long as the chunks are processed in the correct order.
Implementations§
Source§impl State
impl State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more