Type Alias Siphasher24ComponentType

Source
pub type Siphasher24ComponentType = SipHasher24<'static>;

Aliased Type§

struct Siphasher24ComponentType { /* private fields */ }

Implementations

Source§

impl SipHasher24<'_>

Source

pub fn new() -> SipHasher24<'_>

Source

pub fn new_with_keys(k0: u64, k1: u64) -> SipHasher24<'_>

Trait Implementations

Source§

impl DeferredCallClient for SipHasher24<'_>

Source§

fn handle_deferred_call(&self)

Software interrupt function that is called when the deferred call is triggered.
Source§

fn register(&'static self)

Source§

impl<'a> Hasher<'a, 8> for SipHasher24<'a>

Source§

fn set_client(&'a self, client: &'a dyn Client<8>)

Set the client instance which will receive hash_done() and add_data_done() callbacks. This callback is called when the data has been added to the hash engine. The callback should follow the Client add_data_done callback.
Source§

fn add_data( &self, data: SubSlice<'static, u8>, ) -> Result<usize, (ErrorCode, SubSlice<'static, u8>)>

Add data to the hash block. This is the data that will be used for the hash function. Returns the number of bytes parsed on success There is no guarantee the data has been written until the add_data_done() callback is fired. On error the return value will contain a return code and the original data The possible ErrorCodes are: Read more
Source§

fn add_mut_data( &self, data: SubSliceMut<'static, u8>, ) -> Result<usize, (ErrorCode, SubSliceMut<'static, u8>)>

Add data to the hash block. This is the data that will be used for the hash function. Returns the number of bytes parsed on success There is no guarantee the data has been written until the add_data_done() callback is fired. On error the return value will contain a return code and the original data The possible ErrorCodes are: Read more
Source§

fn run( &'a self, digest: &'static mut [u8; 8], ) -> Result<(), (ErrorCode, &'static mut [u8; 8])>

Request the implementation to generate a hash and stores the returned hash in the memory location specified. This doesn’t return any data, instead the client needs to have set a hash_done handler to determine when this is complete. On error the return value will contain a return code and the original data If there is data from the add_data() command asynchronously waiting to be written it will be written before the operation starts. The possible ErrorCodes are: Read more
Source§

fn clear_data(&self)

Clear the internal state of the engine. This won’t clear the buffers provided to this API, that is up to the user to clear.
Source§

impl SipHash for SipHasher24<'_>

Source§

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

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