krypteia-arcana 0.1.0

Pure-Rust classical cryptographic primitives: RSA (PKCS#1 v1.5, OAEP), ECC (NIST P-256/384/521, secp256k1), ECDSA, EdDSA (Ed25519), X25519, AES (128/192/256, GCM/CBC), DES/3DES, SHA-1/2/3, HMAC. Side-channel-aware (Montgomery ladder, branchless point_add_ct). Targets embedded (no_std), STM32 M0/M4/M33, ESP32-C3 RISC-V. Zero runtime dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Message Authentication Codes (MACs).
//!
//! This module provides a uniform stateful `init / update / sign /
//! verify` API across the four MAC families supported by
//! `arcana`:
//!
//! - **HMAC** (RFC 2104, FIPS 198-1) over SHA-1, SHA-256, SHA-384,
//!   SHA-512, SHA3-256, SHA3-384, SHA3-512, RIPEMD-160.
//! - **CMAC** (NIST SP 800-38B, RFC 4493) over AES-128, AES-192,
//!   AES-256, Triple-DES.
//! - **KMAC** (FIPS SP 800-185) — KMAC128 and KMAC256.
//! - **GMAC** (NIST SP 800-38D) over AES-128, AES-192, AES-256.
//!
//! See the `ctx::Mac` type for the stateful API.

pub mod ctx;