Expand description
AdES (Advanced Electronic Signatures) for the eIDAS 2.0 ecosystem.
§Supported formats
| Format | Level | Status |
|---|---|---|
| CAdES | B-B | M1 — in development |
| PAdES | B-B | M2 — planned |
§RustCrypto compatibility
The signer::Signer trait is designed to be compatible with
RustCrypto’s DigestSigner pattern: only the pre-computed digest is
passed to the signing function, so the private key never needs to be
extracted from hardware tokens (DNIe, HSM, WebCrypto).
§Quick start
use ades::cades;
use ades::signer::SoftSigner;
let signer = SoftSigner::generate(2048).unwrap();
let signed = cades::sign(b"hello world", &signer).unwrap();Re-exports§
pub use certificate::Certificate;pub use digest::DigestAlgorithm;pub use error::AdesError;
Modules§
- cades
- CAdES (CMS Advanced Electronic Signatures). CAdES (CMS Advanced Electronic Signatures) implementation.
- certificate
- X.509 certificate wrapper.
- digest
- Digest algorithm abstractions.
- error
- Error types.
- levels
- AdES signature level upgrades (B-T, B-LT, B-LTA). AdES signature levels B-T, B-LT, B-LTA.
- ocsp
- OCSP (Online Certificate Status Protocol, RFC 6960) client. OCSP (Online Certificate Status Protocol, RFC 6960) client.
- pades
- PAdES (PDF Advanced Electronic Signatures). PAdES (PDF Advanced Electronic Signatures) implementation.
- signer
- Signer trait and software backend.
- tsp
- TSP (Time-Stamp Protocol, RFC 3161) client. TSP (Time-Stamp Protocol, RFC 3161) client.