scsys-crypto 0.3.2

cryptographic primitives and utilities for the scsys ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
    appellation: hash <module>
    authors: @FL03
*/
use super::hasher::Hasher;

/// The [`Hash`] trait establishes a common interface for hashing types.
pub trait Hash {
    type Hasher: Hasher;
    type Output;
}

#[doc(hidden)]
// [`Hashable`] is a marker trait for types that can be hashed.
pub trait Hashable {
    private!();
}