Struct blake2::Blake2s [−][src]
pub struct Blake2s { /* fields omitted */ }
Blake2s instance with a fixed output.
Implementations
impl Blake2s
[src]
impl Blake2s
[src]Trait Implementations
impl BlockInput for Blake2s
[src]
impl BlockInput for Blake2s
[src]impl FixedOutputDirty for Blake2s
[src]
impl FixedOutputDirty for Blake2s
[src]type OutputSize = U32
Output size for fixed output digest
fn finalize_into_dirty(&mut self, out: &mut GenericArray<u8, U32>)
[src]
impl NewMac for Blake2s
[src]
impl NewMac for Blake2s
[src]type KeySize = U32
Key size in bytes with which cipher guaranteed to be initialized.
fn new(key: &GenericArray<u8, U32>) -> Self
[src]
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
impl Write for Blake2s
[src]
impl Write for Blake2s
[src]fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Blake2s
impl Send for Blake2s
impl Sync for Blake2s
impl Unpin for Blake2s
impl UnwindSafe for Blake2s
Blanket Implementations
impl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
[src]
impl<D> Digest for D where
D: Update + FixedOutput + Reset + Clone + Default,
[src]type OutputSize = <D as FixedOutput>::OutputSize
Output size for Digest
pub fn new() -> D
[src]
pub fn update(&mut self, data: impl AsRef<[u8]>)
[src]
pub fn chain(self, data: impl AsRef<[u8]>) -> D
[src]
pub fn finalize(self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn finalize_reset(&mut self) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
pub fn reset(&mut self)
[src]
pub fn output_size() -> usize
[src]
pub fn digest(data: &[u8]) -> GenericArray<u8, <D as Digest>::OutputSize>
[src]
impl<D> FixedOutput for D where
D: FixedOutputDirty + Reset,
[src]
impl<D> FixedOutput for D where
D: FixedOutputDirty + Reset,
[src]type OutputSize = <D as FixedOutputDirty>::OutputSize
Output size for fixed output digest
pub fn finalize_into(
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
[src]
self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
pub fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)
[src]
&mut self,
out: &mut GenericArray<u8, <D as FixedOutput>::OutputSize>
)