Skip to main content

Crate bergshamra_crypto

Crate bergshamra_crypto 

Source
Expand description

Cryptographic algorithm implementations for Bergshamra XML Security library.

Provides traits and implementations for all crypto operations needed by XML-DSig and XML-Enc: digests, signatures, block ciphers, key wrapping, and key transport.

Re-exports§

pub use digest::DigestAlgorithm;
pub use registry::AlgorithmRegistry;

Modules§

cipher
Block cipher algorithm implementations (AES-CBC, AES-GCM, 3DES-CBC).
digest
Digest (hash) algorithm implementations.
kdf
Key Derivation Functions: ConcatKDF (NIST SP 800-56A), PBKDF2, and HKDF (RFC 5869).
keyagreement
ECDH-ES (Elliptic Curve Diffie-Hellman Ephemeral-Static) key agreement.
keytransport
Key transport algorithms (RSA PKCS#1 v1.5, RSA-OAEP).
keywrap
Key wrap algorithms (AES-KW per RFC 3394, 3DES-KW per RFC 3217).
registry
Algorithm registry mapping URIs to factory functions.
sign
Signature algorithm implementations (RSA, ECDSA, Ed25519, HMAC, ML-DSA, SLH-DSA).