Skip to main content

Module traits

Module traits 

Source
Expand description

The algorithm contracts every IronCrypto primitive implements.

Two properties make these traits agent-friendly:

  1. Self-describing. Every implementation carries an Algorithm::ID that resolves to an entry in the ontology, so a value at runtime can be traced back to its full machine-readable specification.
  2. Total. Nothing panics on bad input; sizes are surfaced as associated constants and as ontology metadata, so an agent can validate a call before making it.

Traitsยง

Aead
An authenticated cipher with associated data.
Algorithm
Links a concrete implementation to its ontology entry.
BlockCipher
A fixed-width block cipher primitive (raw ECB core, for use inside modes).
Digest
A cryptographic hash function with a fixed-length output.
Drbg
A deterministic random bit generator (SP 800-90A).
Kdf
A key derivation function that expands keying material to a requested length.
KeyAgreement
A Diffie-Hellman style key agreement scheme.
Mac
A keyed message authentication code.
RandomSource
A source of random bytes suitable for key generation.
SelfTest
A known-answer test an implementation runs to satisfy FIPS 140-3 CAST requirements.
SignatureScheme
A digital signature scheme.
Xof
An extendable-output function (XOF) such as SHAKE128 / SHAKE256.