module

CrystalCryptoSamples

End-to-end integration harness and demonstration runner for the EVALinux Crystal cryptographic library suite.

Constants

VERSION = "0.3.1"

Current version of the crystal-crypto-samples integration suite.

Class methods

run_all(io : IO = STDOUT) : Nil

Alias for .run_samples executing all Phase 1 and Phase 2 ceremonies.

Source
run_cbor_sample(io : IO = STDOUT) : Nil

Demonstrates canonical CTAP2/FIDO2 CBOR map encoding, canonical Float16 narrowing, UInt64 serialization, and decoding.

Source
run_ctap2_dbus_sample(io : IO = STDOUT) : Nil

Demonstrates the Phase 2 end-to-end D-Bus CTAP2 MakeCredential authenticator ceremony backed by TPM 2.0 P-256 and ML-DSA-65.

Source
run_dbus_sample(io : IO = STDOUT) : Nil

Demonstrates native D-Bus signature validation, recursive a{sv} body marshaling, SASL EXTERNAL authentication, UNIX FD negotiation, and Hello.

Source
run_ecc_sample(io : IO = STDOUT) : Nil

Demonstrates constant-time Ed25519 digital signatures and X25519 ECDH shared secret agreement with guarded libsodium memory disposal.

Source
run_hybrid_pqc_sample(io : IO = STDOUT) : Nil

Demonstrates the Phase 2 hybrid X25519 + ML-KEM-768 KDF combiner and composite Ed25519 + ML-DSA-65 dual signatures in canonical CBOR.

Source
run_pqc_sample(io : IO = STDOUT) : Nil

Demonstrates NIST FIPS 203 ML-KEM-768 key encapsulation and NIST FIPS 204 ML-DSA-65 digital signatures backed by libsodium guarded memory.

Source
run_samples(io : IO = STDOUT) : Nil

Executes all seven cryptographic integration demonstrations and writes structured status output to io.

Source
run_tpm2_sample(io : IO = STDOUT) : Nil

Demonstrates TPM 2.0 NV-backed FIDO2 credential persistence, real NIST P-256 ECDSA signing/verification, and KDFa XOR + AES-128-CFB parameter encryption.

Source

Nested types