bcx_crypto/error.rs
1/// Verification and signature-envelope validation failures.
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum VerificationError {
4 /// The signature payload was empty.
5 EmptySignature,
6 /// The signature payload exceeded the active profile bound.
7 SignatureTooLarge,
8 /// The detached canonical payload exceeded the active profile bound.
9 PayloadTooLarge,
10 /// The key identifier was all zeros.
11 EmptyKeyId,
12 /// The algorithm policy was empty without using an explicit deny-all policy.
13 EmptyAlgorithmPolicy,
14 /// The algorithm is not admitted by local policy.
15 AlgorithmNotAdmitted,
16 /// Signature verification failed.
17 InvalidSignature,
18}