Expand description
Algorithm-selected dispatch: keygen, sign/verify, key agreement, KEM, AEAD,
hashing, and multikey binding routed by an core::Algorithm selector.
Root dispatch facade.
Structs§
- Aead
Params - Borrowed AEAD inputs for the root operation-backed dispatch facade.
- Generated
Keypair - A generated keypair together with the multikey-encoded public key.
- MacParams
- Borrowed MAC inputs for the root operation-backed dispatch facade.
- Provider
Decision - Complete, non-secret provider decision produced before dispatch executes.
Enums§
- Algorithm
Error - Error returned by algorithm dispatch operations.
- Fallback
Policy - Explicit fallback policy attached to every provider decision.
- KeyCopy
Boundary - Secret-input copy behavior at the provider boundary.
- KeyResidency
- Residency of secret key material used by this dispatch package.
- Provider
Disposition - Whether dispatch selected or rejected the requested provider.
- Provider
Kind - Concrete implementation class selected by dispatch.
- Provider
Lane - Runtime lane in which the provider executes.
- Provider
Operation - Operation requested from the dispatch provider.
- Provider
Output Policy - Sensitivity and cleanup contract for the provider result.
- Provider
Policy Reason - Fixed provider-policy reason recorded for a decision.
Functions§
- aead_
decrypt - Decrypts with an AEAD through the operation-layer semantic owner.
- aead_
encrypt - Encrypts with an AEAD through the operation-layer semantic owner.
- derive_
keypair - Reconstruct a raw keypair for the given algorithm from existing secret material.
- derive_
shared_ secret - Derive a Diffie–Hellman shared secret. The returned secret zeroizes on drop.
- generate_
keypair - Generate a raw keypair for the given algorithm.
- generate_
multikey_ keypair - Generate a keypair and multikey-encode the public key
- hash_
digest - Compute a digest through the operation-layer semantic owner.
- kem_
decapsulate - Decapsulate a KEM ciphertext. The returned shared secret zeroizes on drop.
- kem_
encapsulate - Returns (shared_secret, ciphertext); the shared secret zeroizes on drop.
- mac_
authenticate - Computes a MAC tag through the operation-layer semantic owner.
- mac_
verify - Verifies a MAC tag through the operation-layer semantic owner.
- provider_
decision - Resolve one provider decision without executing cryptographic work.
- public_
key_ to_ multikey - Multicodec/multikey-encode a public key, canonicalizing P-256 to its
compressed SEC1 form. Returns the
z-prefixed multikey string. - sign
- Sign
msgwithsecretunder the selected signature algorithm, returning the detached signature bytes. - validate_
verification_ method_ multikey - Structural validation of a typed public-key binding.
- verify
- Verify a detached signature.