Skip to main content

Crate embedded_cal_examples

Crate embedded_cal_examples 

Source
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.