nettext/src/crypto/mod.rs
2022-11-17 23:58:44 +01:00

22 lines
441 B
Rust

//! Helpers to use cryptographic data types in nettext
#[cfg(feature = "blake2")]
mod b2;
#[cfg(feature = "blake2")]
pub use b2::*;
#[cfg(feature = "ed25519-dalek")]
mod ed25519;
#[cfg(feature = "ed25519-dalek")]
pub use ed25519::*;
/// An error corresponding to a cryptographic check that failed
pub enum CryptoError {
/// A hash verification failed
InvalidHash,
/// A signature verification failed
InvalidSignature,
}