Enum dgc::SignatureValidity [−][src]
pub enum SignatureValidity {
Valid,
Invalid,
MissingKid,
MissingSigningAlgorithm,
SignatureMalformed,
UnsupportedSigningAlgorithm(String),
KeyNotInTrustList(Vec<u8>),
}
Expand description
Represents all the possible outcomes of trying to validate a signature for a given certificate.
Variants
Valid
The signature is valid
Invalid
The signature is not valid
MissingKid
The signature could not be validated because the certificate did not have a kid
MissingSigningAlgorithm
The signature could not be validated because the certificate did not have an alg
SignatureMalformed
The signature in the certificate is malformed
UnsupportedSigningAlgorithm(String)
Tuple Fields
0: String
The signature could not be validated because the signing algorithm is not supported
KeyNotInTrustList(Vec<u8>)
The signature could not be validated because the public key was not found in the given trustlist