libcrux-sha2 0.0.5

Formally verified SHA2 hash library
Documentation
#![no_std]

/// The length of a SHA224 hash in bytes.
pub const SHA224_LENGTH: usize = 28;

/// The length of a SHA256 hash in bytes.
pub const SHA256_LENGTH: usize = 32;

/// The length of a SHA384 hash in bytes.
pub const SHA384_LENGTH: usize = 48;

/// The length of a SHA512 hash in bytes.
pub const SHA512_LENGTH: usize = 64;

/// The generated hacl code
#[cfg(not(feature = "expose-hacl"))]
mod hacl;

/// The generated hacl code
#[cfg(feature = "expose-hacl")]
pub mod hacl;

/// The implementation of our types using that hacl code
mod impl_hacl;

mod impl_digest_trait;

/// use it if we want to use hacl
pub use impl_hacl::*;

/// Re-export the `Digest` trait.
pub use libcrux_traits::Digest;

pub use impl_digest_trait::*;