Struct blake2::VarBlake2s [−][src]
pub struct VarBlake2s { /* fields omitted */ }
Expand description
Blake2s instance with a variable output.
Implementations
Creates a new hashing context with a key.
WARNING! If you plan to use it for variable output MAC, then
make sure to compare codes in constant time! It can be done
for example by using subtle
crate.
Trait Implementations
type BlockSize = U64
type BlockSize = U64
Block size
Create new hasher instance with the given output size. Read more
Get output size of the hasher instance provided to the new
method
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for VarBlake2s
impl Send for VarBlake2s
impl Sync for VarBlake2s
impl Unpin for VarBlake2s
impl UnwindSafe for VarBlake2s
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
Create new hasher instance with the given output size. Read more
Get output size of the hasher instance provided to the new
method
Retrieve result via closure and consume hasher. Read more
Retrieve result via closure and reset the hasher state. Read more
Retrieve result into a boxed slice and consume hasher. Read more