oxedyne/fe2o3/fe2o3_iop_hash/src/lib.rs
836 bytes, 1 run
created by r1870400018:419, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | //! Interoperability layer for hash functions, checksums and key derivation. |
| 2 | //! |
| 3 | //! This crate provides traits that define common interfaces for different types of hashing: |
| 4 | //! |
| 5 | //! - [`Hasher`](api::Hasher) - Core trait for hash functions that transform input data into |
| 6 | //! fixed-size outputs, with optional salting. |
| 7 | //! |
| 8 | //! - [`Checksummer`](csum::Checksummer) - Trait for incremental checksum calculation and |
| 9 | //! verification over arbitrary data streams. |
| 10 | //! |
| 11 | //! - [`KeyDeriver`](kdf::KeyDeriver) - Trait for password hashing and key derivation functions, |
| 12 | //! supporting salt generation and verification. |
| 13 | //! |
| 14 | //! All traits require `Send + Sync` for thread safety and implement `InNamex` for registration |
| 15 | //! in Hematite's universal name codex system. |
| 16 | //! |
| 17 | #![forbid(unsafe_code)] |
| 18 | pub mod api; |
| 19 | pub mod csum; |
| 20 | pub mod kdf; |