Skip to main content

Crate ascon_hash256

Crate ascon_hash256 

Source
Expand description

§RustCrypto: Ascon-Hash256

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the Ascon-Hash256 cryptographic hash function.

§Examples

use ascon_hash256::{AsconHash256, Digest};
use hex_literal::hex;

let mut hasher = AsconHash256::new();
hasher.update(b"some bytes");
let hash = hasher.finalize();

assert_eq!(hash, hex!("e909c2f6da9cb3028423265c8f23fc2d26bfc0f3db704683ef16b787a945ed68"));

See the digest crate docs for additional examples.

§License

The crate is licensed under either of:

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use digest;

Modules§

block_api
Block-level types

Structs§

AsconHash256
Ascon-Hash256 hasher

Traits§

Digest
Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.