Skip to main content

Module traits

Module traits 

Source
Expand description

Adapter traits implemented by each algorithm primitive.

Structs§

AeadParams
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§

AeadCipherAlgorithm
Adapter contract for an AEAD cipher algorithm.
HashDigestAlgorithm
Adapter contract for a cryptographic hash algorithm.
MacAlgorithmAdapter
Adapter contract for a message authentication code algorithm.
SignatureAlgorithm
Adapter contract for a detached-signature algorithm.