Skip to main content

Crate embedded_cal_libcrux

Crate embedded_cal_libcrux 

Source
Expand description

libcrux-sha2 backed SHA-256, SHA-3, and AES-CCM/GCM, plus plumbing to extend any hardware-backed Cal with it.

§Secret Independence Checking

The embedded-cal libcrux provider provides a libcrux-iot backed SHA-3 implementation that performs secret independence checking via the libcrux-secrets crate. The secret independence checking of libcrux-secrets is performed via the Rust type system. By enabling the cargo feature check-secret-independence of the embedded-cal-libcrux crate, you can re-prove that the SHA-3 is indeed secret independent on the source code level.

To use a SHA-3 digest as a libcrux-secrets::U8 type, you can call the HashResult::as_classified method. Note that currently only the Sha3 variants are using the libcrux-secrets crate.
This can beneficial when, e.g., interacting with other libcrux APIs that require libcrux-secrets type to make use of the check-secret-independence feature.

The check-secret-independence feature is not intended to be enabled unconditionally. You should only enable it locally/in CI.

Structs§

Extender
HashResult
The digest of the Extender as HashProvider.
StandaloneConfig

Traits§

ExtenderConfig

Type Aliases§

Standalone
Type alias for the output of Standalone::standalone()