pub struct AsconHash256 { /* private fields */ }Expand description
Ascon-Hash256 cryptographic hash function (NIST SP 800-232 §5.1).
Produces a 256-bit (32-byte) digest. Rate = 64 bits (8 bytes), capacity = 256 bits.
Implements the Hasher trait.
§One-shot API
ⓘ
use crypto::{Hasher, ascon::AsconHash256};
let hash = AsconHash256::hash(b"hello world");§Incremental API
ⓘ
use crypto::{Hasher, ascon::AsconHash256};
let mut hasher = AsconHash256::new();
hasher.update(b"hello ");
hasher.update(b"world");
let hash = hasher.sum();Implementations§
Source§impl AsconHash256
impl AsconHash256
Trait Implementations§
Source§impl Clone for AsconHash256
impl Clone for AsconHash256
Source§fn clone(&self) -> AsconHash256
fn clone(&self) -> AsconHash256
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for AsconHash256
impl Drop for AsconHash256
Source§impl Hasher for AsconHash256
impl Hasher for AsconHash256
Auto Trait Implementations§
impl Freeze for AsconHash256
impl RefUnwindSafe for AsconHash256
impl Send for AsconHash256
impl Sync for AsconHash256
impl Unpin for AsconHash256
impl UnsafeUnpin for AsconHash256
impl UnwindSafe for AsconHash256
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