pub trait NewUniversalHash: Sized {
    type KeySize: ArrayLength<u8>;

    // Required method
    fn new(key: &Key<Self>) -> Self;
}
Expand description

Instantiate a UniversalHash algorithm.

Required Associated Types§

source

type KeySize: ArrayLength<u8>

Size of the key for the universal hash function.

Required Methods§

source

fn new(key: &Key<Self>) -> Self

Instantiate a universal hash function with the given key.

Implementors§