Skip to main content

Backend

Trait Backend 

Source
pub trait Backend {
    // Required method
    fn get_p1600<const ROUNDS: usize>() -> Fn1600;

    // Provided method
    fn get_f1600() -> Fn1600 { ... }
}
Expand description

Trait implemented by a Keccak backend.

Required Methods§

Source

fn get_p1600<const ROUNDS: usize>() -> Fn1600

Get scalar p1600 function with the specified number of rounds.

§Panics

If ROUNDS is bigger than F1600_ROUNDS.

Provided Methods§

Source

fn get_f1600() -> Fn1600

Get scalar f1600 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.

Implementors§