pub enum CryptoStatus {
Valid,
Invalid,
Unsupported,
}Expand description
Verdict of the public-key signature check over the CMS signed attributes.
Variants§
Valid
The signer’s signature over the signed attributes verifies against the public key of the embedded (first) certificate.
Invalid
A signature and key were present and of a supported algorithm, but the signature does not verify — a forged, corrupt, or wrong-key blob.
Unsupported
The signature could not be checked: an unsupported /SubFilter, no
signed attributes, an unsupported signature/key algorithm (e.g. RSA-PSS,
DSA, or a curve other than P-256/P-384), or an unparseable certificate /
public key. The DigestStatus check may still be meaningful.
Implementations§
Trait Implementations§
Source§impl Clone for CryptoStatus
impl Clone for CryptoStatus
Source§fn clone(&self) -> CryptoStatus
fn clone(&self) -> CryptoStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CryptoStatus
Source§impl Debug for CryptoStatus
impl Debug for CryptoStatus
impl Eq for CryptoStatus
Source§impl PartialEq for CryptoStatus
impl PartialEq for CryptoStatus
impl StructuralPartialEq for CryptoStatus
Auto Trait Implementations§
impl Freeze for CryptoStatus
impl RefUnwindSafe for CryptoStatus
impl Send for CryptoStatus
impl Sync for CryptoStatus
impl Unpin for CryptoStatus
impl UnsafeUnpin for CryptoStatus
impl UnwindSafe for CryptoStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more