sanitization_crypto_interop/lib.rs
1#![no_std]
2#![deny(unsafe_code)]
3
4//! Optional crypto crate interop helpers for `sanitization`.
5//!
6//! The core `sanitization` crate clears memory it owns. It cannot clear private
7//! buffers inside third-party hash implementations unless those crates expose
8//! their own zeroization hooks. This crate provides small feature-gated helpers
9//! for those cases while keeping the core crate dependency-free.
10
11#[cfg(feature = "std")]
12extern crate std;
13
14#[cfg(feature = "blake3")]
15pub mod blake3;
16#[cfg(feature = "hmac-sha2")]
17pub mod hmac_sha2;
18#[cfg(feature = "sha2")]
19pub mod sha2;