Struct snowbridge_amcl::hash256::HASH256
source · pub struct HASH256 { /* private fields */ }
Implementations§
source§impl HASH256
impl HASH256
pub fn new() -> HASH256
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; 32]
pub fn hmac(key: &[u8], text: &[u8]) -> [u8; 32]
Generate a HMAC
https://tools.ietf.org/html/rfc2104
Auto Trait Implementations§
impl RefUnwindSafe for HASH256
impl Send for HASH256
impl Sync for HASH256
impl Unpin for HASH256
impl UnwindSafe for HASH256
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