Crate fips197

Source
Expand description

§FIPS 197 Advanced Encryption Standard

This crate implements the block cipher described in the FIPS 197 specification.

It is a #![no_std] crate that does not require alloc and has no dependencies.

It currently uses lookup tables internally and is therefore not fully resistant to side channel attacks.

§Usage

There are only 6 public functions. Two for each AES variant. One intended for application of the cipher on plaintext input and the other intended for application of the inverse cipher on ciphertext input. It is the responsibility of the user of this crate to ensure they feed the appropriate input into the appropriate cipher.

Functions§

aes128
Apply the AES128 cipher to the input array.
aes192
Apply the AES192 cipher to the input array.
aes256
Apply the AES256 cipher to the input array.
aes128_inverse
Apply the AES128 inverse cipher to the input array.
aes192_inverse
Apply the AES192 inverse cipher to the input array.
aes256_inverse
Apply the AES256 inverse cipher to the input array.