Expand description
Examples that run some cryptographic operations.
This is not rigorous testing, but a collection of functions that serve both as a quick “how to use” example and as a quick sanity check.
Functions§
- show_
aead_ tests - Runs through AEAD test vectors for some known algorithms
- show_
ecdh_ example - Selects a key from a list of a peer’s identity keys (based on the Cal’s supported curves), and runs static-ephemeral Diffie-Hellman on it.
- show_
examples - Shows a brief note on which implementations is being used, and then runs all other
show_*functions in this module. - show_
sha256_ example - Hashes a “hello world” string with the SHA-256 hash, if available.