[go: up one dir, main page]

aes-soft 0.3.3

AES (Rijndael) block ciphers bit-sliced implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg_attr(feature="cargo-clippy", allow(unreadable_literal))]

use simd::u32x4;

pub const U32X4_0: u32x4 = u32x4(0, 0, 0, 0);
pub const U32X4_1: u32x4 =
    u32x4(0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff);

// This array is not accessed in any key-dependant way, so there are no timing problems inherent in
// using it.
pub static RCON: [u32; 10] =
    [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];