Trait keccak::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.

Object Safety§

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§