Struct snowbridge_amcl::hash512::HASH512
source · pub struct HASH512 { /* private fields */ }
Implementations§
source§impl HASH512
impl HASH512
pub fn init(&mut self)
pub fn new() -> Self
pub fn process(&mut self, byt: u8)
pub fn process_array(&mut self, b: &[u8])
pub fn process_num(&mut self, n: i32)
pub fn hash(&mut self) -> [u8; 64]
sourcepub fn hmac(key: &[u8], text: &[u8]) -> [u8; 64]
pub fn hmac(key: &[u8], text: &[u8]) -> [u8; 64]
Generate a HMAC
https://tools.ietf.org/html/rfc2104
Auto Trait Implementations§
impl RefUnwindSafe for HASH512
impl Send for HASH512
impl Sync for HASH512
impl Unpin for HASH512
impl UnwindSafe for HASH512
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