/// Create a new HMAC struct
///
/// This allows incremental updating using the write method
Create a new HMAC struct
This allows incremental updating using the write method
Create a new HMAC struct This allows incremental updating using the write method
pub fn new(key: &[u8]) -> Self {
        if key.len() > H::BLOCK_SIZE {
            let mut key_hash = H::new();
            key_hash.update(key);
            Self::derive(&key_hash.finish())
        } else {
            Self::derive(key)
        }
    }
pub fn new ( key : & [ u8 ] ) -> Self { if key . len ( ) > H :: BLOCK_SIZE { let mut key_hash = H :: new ( ) ; key_hash . update ( key ) ; Self :: derive ( & key_hash . finish ( ) ) } else { Self :: derive ( key ) } }
Create a new HMAC struct
This allows incremental updating using the write method
Create a new HMAC struct This allows incremental updating using the write method
key
&[u8]