Skip to main content

Module aes

Module aes 

Source
Expand description

AES block cipher implementations

This module implements the Advanced Encryption Standard (AES) block cipher as specified in FIPS 197.

§Constant-Time Guarantees

This implementation mitigates timing side-channel attacks by:

  • Using branchless arithmetic for GF(2^8) operations
  • Using bitsliced S-box implementations instead of table lookups
  • Ensuring consistent memory access patterns
  • Validating keys before use to prevent silent failure

Note: On platforms where AES hardware acceleration is available, consider using hardware instructions for better side-channel resistance.

Structs§

Aes128
AES-128 block cipher
Aes192
AES-192 block cipher
Aes256
AES-256 block cipher

Enums§

Aes128Algorithm
Type-level constants for AES-128
Aes192Algorithm
Type-level constants for AES-192
Aes256Algorithm
Type-level constants for AES-256