hash_to_curve/lib.rs
1#![doc = include_str!("../Readme.md")]
2#![warn(missing_docs)]
3#![warn(rustdoc::missing_crate_level_docs)]
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6/// Hash-to-Curve Errors
7pub enum Error {
8 /// The length requested of the expand_message function leads to an invalid parameter.
9 InvalidEll,
10 /// Catch-all error for errors in the underlying curve implementation.
11 CurveError,
12}
13
14impl From<p256::Error> for Error {
15 fn from(_value: p256::Error) -> Self {
16 Self::CurveError
17 }
18}
19
20// ========== Suites =============
21pub mod p256_hash;