More missing common traits

This commit is contained in:
daxpedda
2021-06-28 02:06:20 -07:00
committed by Kevin Lewi
parent f05fcf0278
commit 81b2719587
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ use displaydoc::Display;
use thiserror::Error;
/// Represents an error in the manipulation of internal cryptographic data
#[derive(Debug, Display, Error)]
#[derive(Clone, Debug, Display, Error, Eq, Hash, PartialEq)]
pub enum InternalPakeError {
/// Deserializing from a byte sequence failed
InvalidByteSequence,
@@ -56,7 +56,7 @@ pub enum InternalPakeError {
}
/// Represents an error in password checking
#[derive(Debug, Display, Error)]
#[derive(Clone, Debug, Display, Error, Eq, Hash, PartialEq)]
pub enum PakeError {
/// This error results from an internal error during PRF construction
///
@@ -86,7 +86,7 @@ impl From<InternalPakeError> for PakeError {
}
/// Represents an error in protocol handling
#[derive(Debug, Display, Error)]
#[derive(Clone, Debug, Display, Error, Eq, Hash, PartialEq)]
pub enum ProtocolError {
/// This error results from an error during password verification
///
+1
View File
@@ -12,6 +12,7 @@ use generic_array::GenericArray;
use rand::{CryptoRng, RngCore};
/// Used to store the OPRF input and blinding factor
#[cfg_attr(feature = "serialize", derive(serde::Deserialize, serde::Serialize))]
pub struct Token<Grp: Group> {
pub(crate) data: Vec<u8>,
pub(crate) blind: Grp::Scalar,