[−][src]Struct crypto::blake2s::Blake2s
Methods
impl Blake2s
[src]
pub fn new(outlen: usize) -> Blake2s
[src]
pub fn new_keyed(outlen: usize, key: &[u8]) -> Blake2s
[src]
pub fn reset(&mut self)
[src]
pub fn blake2s(out: &mut [u8], input: &[u8], key: &[u8])
[src]
Trait Implementations
impl Digest for Blake2s
[src]
fn reset(&mut self)
[src]
fn input(&mut self, msg: &[u8])
[src]
fn result(&mut self, out: &mut [u8])
[src]
fn output_bits(&self) -> usize
[src]
fn block_size(&self) -> usize
[src]
fn output_bytes(&self) -> usize
[src]
Get the output size in bytes.
fn input_str(&mut self, input: &str)
[src]
Convenience function that feeds a string into a digest. Read more
fn result_str(&mut self) -> String
[src]
Convenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
impl Mac for Blake2s
[src]
fn input(&mut self, data: &[u8])
[src]
fn reset(&mut self)
[src]
Reset the Mac state to begin processing another input stream.
fn result(&mut self) -> MacResult
[src]
Obtain the result of a Mac computation as a MacResult.
fn raw_result(&mut self, output: &mut [u8])
[src]
Obtain the result of a Mac computation as [u8]. This method should be used very carefully since incorrect use of the Mac code could result in permitting a timing attack which defeats the security provided by a Mac function.
fn output_bytes(&self) -> usize
[src]
Get the size of the Mac code, in bytes.
impl Clone for Blake2s
[src]
fn clone(&self) -> Blake2s
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Blake2s
[src]
Auto Trait Implementations
impl Unpin for Blake2s
impl Sync for Blake2s
impl Send for Blake2s
impl UnwindSafe for Blake2s
impl RefUnwindSafe for Blake2s
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,