origin-crypto-sdk 0.4.0

Standalone cryptographic SDK with classical (Ed25519) and post-quantum (Falcon, SLH-DSA, ML-DSA, NTRU Prime, Curve41417) primitives. Hybrid signing by default.
Documentation
// SPDX-License-Identifier: Apache-2.0

//! SHA3 hash functions
//!
//! Re-exports from `crate::internal::sha3` for backward compatibility.
//! SHAKE XOFs are re-exported from the external `sha3` crate.

pub use crate::internal::sha3::{Sha3_256, Sha3_512};
pub use sha3::{Shake128, Shake256};

/// Compute SHA3-256 hash
pub fn sha3_256(data: &[u8]) -> [u8; 32] {
    Sha3_256::digest(data)
}

/// Compute SHA3-512 hash
pub fn sha3_512(data: &[u8]) -> [u8; 64] {
    Sha3_512::digest(data)
}