Trait magma::Sbox[][src]

pub trait Sbox {
    const EXP_SBOX: [[u8; 256]; 4];
    const SBOX: [[u8; 16]; 8];
    fn gen_exp_sbox() -> [[u8; 256]; 4] { ... }
fn apply_sbox(a: u32) -> u32 { ... }
fn g(a: u32, k: u32) -> u32 { ... } }

Trait implemented for the GOST 28147-89 cipher S-boxes

Associated Constants

const EXP_SBOX: [[u8; 256]; 4][src]

Expanded S-box

const SBOX: [[u8; 16]; 8][src]

Unexpanded S-box

Loading content...

Provided methods

fn gen_exp_sbox() -> [[u8; 256]; 4][src]

fn apply_sbox(a: u32) -> u32[src]

fn g(a: u32, k: u32) -> u32[src]

Loading content...

Implementors

Loading content...