Expand description
Adapter traits implemented by each algorithm primitive.
Structs§
- Aead
Params - Borrowed AEAD inputs. Key and nonce lengths are validated by the selected algorithm’s typed constructors at dispatch time, so a wrong length fails closed with a typed error instead of being truncated or padded.
- MacParams
- Borrowed HMAC inputs. The selected algorithm validates key and tag lengths before authenticating so callers cannot accidentally compare truncated tags.
Traits§
- Aead
Cipher Algorithm - Adapter contract for an AEAD cipher algorithm.
- Hash
Digest Algorithm - Adapter contract for a cryptographic hash algorithm.
- MacAlgorithm
Adapter - Adapter contract for a message authentication code algorithm.
- Signature
Algorithm - Adapter contract for a detached-signature algorithm.