Skip to main content

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 is not admitted by local policy.
13    AlgorithmNotAdmitted,
14    /// Signature verification failed.
15    InvalidSignature,
16}