signcryption 0.1.3

Library implementing the Toorani-Beheshti signcryption scheme instantiated over Ristretto255 or Ed25519
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/// Signcryption failure modes
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum SignCryptError {
  /// Additional Authenticated Data provided to [`crate::sign_before`] and [`crate::verify_before`] 
  /// functions is larger than the allowed maximum of 255 bytes.
  InvalidLength,
  /// The signature was unable to be verified after decryption
  Mismatch,
  /// Error occurred during the encryption phase of [`crate::signcrypt`]
  Encryption,
  /// Error occurred during decryption phase of [`crate::unsigncrypt`]
  Decryption,
  /// The signature is not canonical
  NonCanonicalSig,
  /// Catch-all for other errors
  Generic,
}