bcx-crypto 0.2.0

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