Module aes_frast::aes_core [] [src]

The aes_core mod provides the essential functions of AES, including key schedule and single-block crypto.

aes_core

aes_core is an implement of AES crypto algorithm all coded in prue rust-lang.
It is implemented by looking-up-tables.

Attention!

Please be careful the length of the slice (because the compiler won't check it), when passing it as a parameter of a function.
Otherwise, the functions will panic at 'index out of bounds', or maybe even wrose.

Functions

block_dec_k128

Decrypt a block with scheduled keys (from 128bit key).

block_dec_k192

Decrypt a block with scheduled keys (from 192bit key).

block_dec_k256

Decrypt a block with scheduled keys (from 256bit key).

block_enc_k128

Encrypt a block with scheduled keys (from 128bit key).

block_enc_k192

Encrypt a block with scheduled keys (from 192bit key).

block_enc_k256

Encrypt a block with scheduled keys (from 256bit key).

setkey_dec_auto

Set working keys for decryption with auto-selected key-size.

setkey_dec_k128

Set 128bit working keys for decryption.

setkey_dec_k192

Set 192bit working keys for decryption.

setkey_dec_k256

Set 256bit working keys for decryption.

setkey_enc_auto

Set working keys for encryption with auto-selected key-size.

setkey_enc_k128

Set 128bit working keys for encryption.

setkey_enc_k192

Set 192bit working keys for encryption.

setkey_enc_k256

Set 256bit working keys for encryption.