Skip to main content

Module aes_session

Module aes_session 

Source
Available on crate feature std only.
Expand description

High-Performance AES-GCM Session Encryption

Uses ring crate for AES-256-GCM with hardware acceleration. On Apple Silicon M1: ARM FEAT_AES intrinsics (~4-8 GB/s) On x86_64: AES-NI instructions (~4-8 GB/s)

ring uses hand-optimized assembly for both ARM64 and x86_64, ensuring maximum throughput compared to pure-Rust crates.

Under --features fips the AEAD backend swaps to aws-lc-rs (FIPS-validated AWS-LC). The Rust API surface is identical to ring::aead (same LessSafeKey / Nonce / seal_in_place_append_tag / open_in_place), so the rest of this module is untouched and ring is no longer linked on the fips path — see crypto/adaptive_crypto.rs for the same backend dispatch.

Structs§

AesSession
High-performance session encryption using ring’s AES-256-GCM (hardware accelerated on ARM64/x86_64)

Enums§

EncryptError
Encryption errors

Constants§

AES_GCM_OVERHEAD
Overhead bytes added by AES-256-GCM (16-byte auth tag)