zkboo_sha2/lib.rs
1// SPDX-License-Identifier: LGPL-3.0-or-later
2
3//! SHA-2 primitives primitives for the [zkboo] crate.
4//!
5//! See <https://datatracker.ietf.org/doc/html/rfc6234> for details.
6
7#![no_std]
8extern crate alloc;
9
10#[cfg(feature = "sha256")]
11pub mod sha256;
12#[cfg(feature = "sha512")]
13pub mod sha512;
14
15#[cfg(feature = "sha256")]
16pub use sha256::{SHA256_BLOCKSIZE, sha224, sha224bytes, sha256, sha256bytes};
17#[cfg(feature = "sha512")]
18pub use sha512::{SHA512_BLOCKSIZE, sha384, sha384bytes, sha512, sha512bytes};