Crate sponge_hash_aes256

Crate sponge_hash_aes256 

Source
Expand description

§SpongeHash-AES256

A sponge-based secure hash function that uses AES-256 as its internal PRF.

This hash function has a variable output size and can produce outputs of any non-zero size (up to usize::MAX).

Please see the SpongeHash256 struct for details! 💡

§Dependencies

This crate is #![no_std] compatible and does not link the Rust standard library.

Required dependencies: aes, cipher, wide, zeroize

§Optional features

FeatureMeaning
tracingDump the internal state to the logging sub-system (via log::trace()) after each step.

§Rust support

This crate uses Rust edition 2021, and requires rustc version 1.89.0 or newer.

§License

Copyright (C) 2025-2026 by LoRd_MuldeR <mulder2@gmx.de>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

§See also

🔗 https://crates.io/crates/sponge-hash-aes256
🔗 https://github.com/lordmulder/sponge-hash-aes256

Structs§

SpongeHash256
This struct encapsulates the state for a “streaming” (incremental) SpongeHash-AES256 computation.

Constants§

DEFAULT_DIGEST_SIZE
Default digest size, in bytes
DEFAULT_PERMUTE_ROUNDS
Default number of permutation rounds to be performed

Functions§

compute
Convenience function for “one-shot” SpongeHash-AES256 computation
compute_to_slice
Convenience function for “one-shot” SpongeHash-AES256 computation
version
Returns the version of the library as a string