pub struct AuthenticatedData {
pub version: CmsVersion,
pub originator_info: Option<OriginatorInfo>,
pub recipient_infos: RecipientInfos,
pub mac_algorithm: MessageAuthenticationCodeAlgorithm,
pub digest_algorithm: Option<DigestAlgorithmIdentifier>,
pub content_info: EncapsulatedContentInfo,
pub authenticated_attributes: Option<AuthAttributes>,
pub mac: MessageAuthenticationCode,
pub unauthenticated_attributes: Option<UnauthAttributes>,
}
Expand description
Authenticated data.
AuthenticatedData ::= SEQUENCE {
version CMSVersion,
originatorInfo [0] IMPLICIT OriginatorInfo OPTIONAL,
recipientInfos RecipientInfos,
macAlgorithm MessageAuthenticationCodeAlgorithm,
digestAlgorithm [1] DigestAlgorithmIdentifier OPTIONAL,
encapContentInfo EncapsulatedContentInfo,
authAttrs [2] IMPLICIT AuthAttributes OPTIONAL,
mac MessageAuthenticationCode,
unauthAttrs [3] IMPLICIT UnauthAttributes OPTIONAL }
Fields§
§version: CmsVersion
§originator_info: Option<OriginatorInfo>
§recipient_infos: RecipientInfos
§mac_algorithm: MessageAuthenticationCodeAlgorithm
§digest_algorithm: Option<DigestAlgorithmIdentifier>
§content_info: EncapsulatedContentInfo
§authenticated_attributes: Option<AuthAttributes>
§mac: MessageAuthenticationCode
§unauthenticated_attributes: Option<UnauthAttributes>
Trait Implementations§
source§impl Clone for AuthenticatedData
impl Clone for AuthenticatedData
source§fn clone(&self) -> AuthenticatedData
fn clone(&self) -> AuthenticatedData
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 Debug for AuthenticatedData
impl Debug for AuthenticatedData
source§impl PartialEq for AuthenticatedData
impl PartialEq for AuthenticatedData
source§fn eq(&self, other: &AuthenticatedData) -> bool
fn eq(&self, other: &AuthenticatedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AuthenticatedData
impl StructuralEq for AuthenticatedData
impl StructuralPartialEq for AuthenticatedData
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticatedData
impl Send for AuthenticatedData
impl Sync for AuthenticatedData
impl Unpin for AuthenticatedData
impl UnwindSafe for AuthenticatedData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.