Struct snowbridge_amcl::hash384::HASH384
source · pub struct HASH384 { /* private fields */ }
Implementations§
source§impl HASH384
impl HASH384
pub fn new() -> Self
sourcepub fn process_array(&mut self, b: &[u8])
pub fn process_array(&mut self, b: &[u8])
Process an array of bytes
sourcepub fn process_num(&mut self, n: i32)
pub fn process_num(&mut self, n: i32)
Process a 32-bit integer
sourcepub fn hmac(key: &[u8], text: &[u8]) -> [u8; 48]
pub fn hmac(key: &[u8], text: &[u8]) -> [u8; 48]
Generate a HMAC
https://tools.ietf.org/html/rfc2104
Auto Trait Implementations§
impl RefUnwindSafe for HASH384
impl Send for HASH384
impl Sync for HASH384
impl Unpin for HASH384
impl UnwindSafe for HASH384
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more