Build: cargo build Run example: cargo run --example example_verbose
Incluldes a set of unit tests that exercise the SoftwareProvider through the
provider-agnostic API traits. It assumes A1 (API) and A2 (Software Provider)
are already merged into your project and Cargo.toml has the dependencies
from A2.
Run the tests: cargo test
- AES-GCM expects 12-byte nonce
- AES-CCM (configured as Ccm<Aes256,U16,U13>) expects 13-byte nonce
- ChaCha20-Poly1305 expects 12-byte nonce
- AES-CBC uses PKCS#7 padding
- ECDSA signatures are DER-encoded
- ECDH shared secret is 32 bytes (raw secret)
Run with: cargo bench