keccak

Trait LaneSize

Source
pub trait LaneSize:
    Copy
    + Clone
    + Debug
    + Default
    + PartialEq
    + BitAndAssign
    + BitAnd<Output = Self>
    + BitXorAssign
    + BitXor<Output = Self>
    + Not<Output = Self> {
    const KECCAK_F_ROUND_COUNT: usize;

    // Required methods
    fn truncate_rc(rc: u64) -> Self;
    fn rotate_left(self, n: u32) -> Self;
}
Expand description

Keccak is a permutation over an array of lanes which comprise the sponge construction.

Required Associated Constants§

Source

const KECCAK_F_ROUND_COUNT: usize

Number of rounds of the Keccak-f permutation.

Required Methods§

Source

fn truncate_rc(rc: u64) -> Self

Truncate function.

Source

fn rotate_left(self, n: u32) -> Self

Rotate left function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LaneSize for u8

Source§

const KECCAK_F_ROUND_COUNT: usize = 18usize

Source§

fn truncate_rc(rc: u64) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

impl LaneSize for u16

Source§

const KECCAK_F_ROUND_COUNT: usize = 20usize

Source§

fn truncate_rc(rc: u64) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

impl LaneSize for u32

Source§

const KECCAK_F_ROUND_COUNT: usize = 22usize

Source§

fn truncate_rc(rc: u64) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Source§

impl LaneSize for u64

Source§

const KECCAK_F_ROUND_COUNT: usize = 24usize

Source§

fn truncate_rc(rc: u64) -> Self

Source§

fn rotate_left(self, n: u32) -> Self

Implementors§