CrystalCryptoSamples::HybridCeremony
Orchestrates the Phase 2 hybrid classical (X25519 + Ed25519) and
post-quantum (ML-KEM-768 + ML-DSA-65) canonical CBOR ceremony.
Constants
KDF_DOMAIN_LABEL = "EVALINUX-HYBRID-KEM-V1"
Canonical domain-separation prefix for the SHA-256 hybrid KDF combiner.
TRANSCRIPT_LABEL = "EVALINUX-HYBRID-V1"
Canonical domain-separation context string for the hybrid transcript.
Class methods
Encodes the canonical integer-keyed CBOR dual-signature assertion map.
Encodes the canonical integer-keyed CBOR public-key transcript map.
Executes the complete hybrid KEM KDF and dual-signature CBOR ceremony.
verify_decoded_assertion(assertion_cbor : Bytes, ed : Crystal::Ecc::Constant::Ed25519KeyPair, dsa : Crystal::Pqc::Constant::MLDSAKeyPair, ctx : Bytes = TRANSCRIPT_LABEL.to_slice) : Bool
Decodes a canonical CBOR dual-signature assertion map and verifies both
the classical Ed25519 and post-quantum ML-DSA-65 signatures.