Revision control

Copy as Markdown

Other Tools

#![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;
/// use it if we want to use hacl
pub use impl_hacl::*;
/// Re-export the `Digest` trait.
pub use libcrux_traits::Digest;