Struct blake2::VarBlake2b [−][src]
pub struct VarBlake2b { /* fields omitted */ }
Expand description
Blake2b 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 = U128
type BlockSize = U128
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 VarBlake2b
impl Send for VarBlake2b
impl Sync for VarBlake2b
impl Unpin for VarBlake2b
impl UnwindSafe for VarBlake2b
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