pub enum AuthenticodeSignatureParseError {
Show 15 variants
Empty,
InvalidContentInfo(Error),
InvalidContentType(ObjectIdentifier),
InvalidSignedData(Error),
InvalidSignedDataVersion(CmsVersion),
InvalidNumDigestAlgorithms(usize),
InvalidEncapsulatedContentType(ObjectIdentifier),
EmptyEncapsulatedContent,
InvalidSpcIndirectDataContent(Error),
InvalidNumSignerInfo(usize),
InvalidSignerInfoVersion(CmsVersion),
AlgorithmMismatch,
EmptyAuthenticatedAttributes,
MissingContentTypeAuthenticatedAttribute,
MissingMessageDigestAuthenticatedAttribute,
}
Expand description
Error returned by AuthenticodeSignature::from_bytes
.
Variants§
Empty
The signature data is empty.
InvalidContentInfo(Error)
The signature data is not valid ContentInfo
.
InvalidContentType(ObjectIdentifier)
The content type does not match const_oid::db::rfc6268::ID_SIGNED_DATA
.
InvalidSignedData(Error)
The content info is not valid SignedData
.
InvalidSignedDataVersion(CmsVersion)
The version of SignedData
is not 1.
InvalidNumDigestAlgorithms(usize)
The number of digest algorithms is not 1.
InvalidEncapsulatedContentType(ObjectIdentifier)
The encapsulated content type does not match SPC_INDIRECT_DATA_OBJID
.
EmptyEncapsulatedContent
The encapsulated content is empty.
InvalidSpcIndirectDataContent(Error)
The encapsulated content is not valid SpcIndirectDataContent
.
InvalidNumSignerInfo(usize)
The number of signer infos is not 1.
InvalidSignerInfoVersion(CmsVersion)
The version of SignerInfo
is not 1.
AlgorithmMismatch
The digest algorithm is not internally consistent.
EmptyAuthenticatedAttributes
No authenticated attributes are present.
MissingContentTypeAuthenticatedAttribute
The contentType
authenticated attribute is missing.
MissingMessageDigestAuthenticatedAttribute
The messageDigest
authenticated attribute is missing.
Trait Implementations§
source§impl Clone for AuthenticodeSignatureParseError
impl Clone for AuthenticodeSignatureParseError
source§fn clone(&self) -> AuthenticodeSignatureParseError
fn clone(&self) -> AuthenticodeSignatureParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Error for AuthenticodeSignatureParseError
impl Error for AuthenticodeSignatureParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<AuthenticodeSignatureParseError> for AuthenticodeSignatureParseError
impl PartialEq<AuthenticodeSignatureParseError> for AuthenticodeSignatureParseError
source§fn eq(&self, other: &AuthenticodeSignatureParseError) -> bool
fn eq(&self, other: &AuthenticodeSignatureParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AuthenticodeSignatureParseError
impl Eq for AuthenticodeSignatureParseError
impl StructuralEq for AuthenticodeSignatureParseError
impl StructuralPartialEq for AuthenticodeSignatureParseError
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticodeSignatureParseError
impl Send for AuthenticodeSignatureParseError
impl Sync for AuthenticodeSignatureParseError
impl Unpin for AuthenticodeSignatureParseError
impl UnwindSafe for AuthenticodeSignatureParseError
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