Skip to main content

Crate hardware_rust_crypto

Crate hardware_rust_crypto 

Source
Expand description

Hardware-only AES-256-GCM and key/nonce generation.

Every AES round and every GF(2^128) multiply executes as a CPU instruction (AES-NI/PCLMULQDQ on x86_64, ARMv8 AES/PMULL on aarch64); no software cipher is compiled in. If the required hardware is absent, construction fails with a typed error rather than degrading to table-based AES.

The crate exposes two modules:

Implementation details (the AES, GHASH, CTR, and fork-detection internals) are private; only the high-level types above are part of the public API.

Modulesยง

aes_gcm
Candidate AES-256-GCM API for the hardware-only RustCrypto fork.
random
Fast random byte generation for hot key/nonce paths.