kernel::hil::hasher

Trait SipHash

Source
pub trait SipHash {
    // Required method
    fn set_keys(&self, k0: u64, k1: u64) -> Result<(), ErrorCode>;
}

Required Methods§

Source

fn set_keys(&self, k0: u64, k1: u64) -> Result<(), ErrorCode>

Optionaly call before Hasher::run() to specify the keys used The possible ErrorCodes are:

  • BUSY: The system is busy
  • ALREADY: An operation is already on going
  • INVAL: An invalid parameter was supplied
  • NOSUPPORT: The operation is not supported

Implementors§