[−][src]Struct crypto_api_blake2::Blake2b
An implementation of Blake2b
Methods
impl Blake2b
[src]
pub fn hash() -> Box<dyn Hash>
[src]
Creates a Hash
instance with Blake2b
as underlying hash
pub fn varlen_hash() -> Box<dyn VarlenHash>
[src]
Creates a VarlenHash
instance with Blake2b
as underlying hash
pub fn mac() -> Box<dyn Mac>
[src]
Creates a Mac
instance with Blake2b
as underlying MAC
pub fn varlen_mac() -> Box<dyn VarlenMac>
[src]
Creates a VarlenMac
instance with Blake2b
as underlying MAC
pub fn kdf() -> Box<dyn Kdf>
[src]
Creates a Kdf
instance with Blake2b
as underlying KDF
pub fn streaming_hash() -> Box<dyn StreamingHash>
[src]
Creates a StreamingHash
instance with Blake2b
as underlying hash
pub fn streaming_varlen_hash() -> Box<dyn StreamingVarlenHash>
[src]
Creates a StreamingVarlenHash
instance with Blake2b
as underlying hash
pub fn streaming_mac() -> Box<dyn StreamingMac>
[src]
Creates a StreamingMac
instance with Blake2b
as underlying MAC
pub fn streaming_varlen_mac() -> Box<dyn StreamingVarlenMac>
[src]
Creates a StreamingVarlenMac
instance with Blake2b
as underlying MAC
Trait Implementations
impl SecKeyGen for Blake2b
[src]
fn new_sec_key(
&self,
buf: &mut [u8],
rng: &mut dyn SecureRng
) -> Result<usize, Box<dyn Error + 'static>>
[src]
&self,
buf: &mut [u8],
rng: &mut dyn SecureRng
) -> Result<usize, Box<dyn Error + 'static>>
impl Hash for Blake2b
[src]
fn info(&self) -> HashInfo
[src]
fn hash(
&self,
buf: &mut [u8],
data: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
[src]
&self,
buf: &mut [u8],
data: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
impl VarlenHash for Blake2b
[src]
impl StreamingHash for Blake2b
[src]
fn info(&self) -> HashInfo
[src]
fn init(&mut self) -> Result<(), Box<dyn Error + 'static>>
[src]
fn update(&mut self, input: &[u8]) -> Result<(), Box<dyn Error + 'static>>
[src]
fn finish(&mut self, buf: &mut [u8]) -> Result<usize, Box<dyn Error + 'static>>
[src]
impl StreamingVarlenHash for Blake2b
[src]
impl Kdf for Blake2b
[src]
fn info(&self) -> KdfInfo
[src]
fn derive(
&self,
buf: &mut [u8],
base_key: &[u8],
salt: &[u8],
info: &[u8]
) -> Result<(), Box<dyn Error + 'static>>
[src]
&self,
buf: &mut [u8],
base_key: &[u8],
salt: &[u8],
info: &[u8]
) -> Result<(), Box<dyn Error + 'static>>
impl Mac for Blake2b
[src]
fn info(&self) -> MacInfo
[src]
fn auth(
&self,
buf: &mut [u8],
data: &[u8],
key: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
[src]
&self,
buf: &mut [u8],
data: &[u8],
key: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
impl VarlenMac for Blake2b
[src]
fn varlen_auth(
&self,
buf: &mut [u8],
data: &[u8],
key: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
[src]
&self,
buf: &mut [u8],
data: &[u8],
key: &[u8]
) -> Result<usize, Box<dyn Error + 'static>>
impl StreamingMac for Blake2b
[src]
fn info(&self) -> MacInfo
[src]
fn init(&mut self, key: &[u8]) -> Result<(), Box<dyn Error + 'static>>
[src]
fn update(&mut self, data: &[u8]) -> Result<(), Box<dyn Error + 'static>>
[src]
fn finish(&mut self, buf: &mut [u8]) -> Result<usize, Box<dyn Error + 'static>>
[src]
impl StreamingVarlenMac for Blake2b
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,