Struct cms::builder::KekRecipientInfoBuilder
source · pub struct KekRecipientInfoBuilder {
pub kek_id: KekIdentifier,
pub key_enc_alg: AlgorithmIdentifierOwned,
}
Available on crate feature
builder
only.Expand description
Builds a KekRecipientInfo
according to RFC 5652 § 6.
Uses symmetric key-encryption keys: the content-encryption key is
encrypted in a previously distributed symmetric key-encryption key.
Fields§
§kek_id: KekIdentifier
Specifies a symmetric key-encryption key that was previously distributed to the sender and one or more recipients.
key_enc_alg: AlgorithmIdentifierOwned
Encryption algorithm to be used for key encryption
Implementations§
source§impl KekRecipientInfoBuilder
impl KekRecipientInfoBuilder
sourcepub fn new(
kek_id: KekIdentifier,
key_enc_alg: AlgorithmIdentifierOwned
) -> Result<KekRecipientInfoBuilder, Error>
pub fn new( kek_id: KekIdentifier, key_enc_alg: AlgorithmIdentifierOwned ) -> Result<KekRecipientInfoBuilder, Error>
Creates a KekRecipientInfoBuilder
Trait Implementations§
source§impl RecipientInfoBuilder for KekRecipientInfoBuilder
impl RecipientInfoBuilder for KekRecipientInfoBuilder
source§fn recipient_info_type(&self) -> RecipientInfoType
fn recipient_info_type(&self) -> RecipientInfoType
Returns the RecipientInfoType
source§fn recipient_info_version(&self) -> CmsVersion
fn recipient_info_version(&self) -> CmsVersion
Returns the CMSVersion
for this RecipientInfo
Auto Trait Implementations§
impl RefUnwindSafe for KekRecipientInfoBuilder
impl Send for KekRecipientInfoBuilder
impl Sync for KekRecipientInfoBuilder
impl Unpin for KekRecipientInfoBuilder
impl UnwindSafe for KekRecipientInfoBuilder
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