pub struct KeyTransRecipientInfoBuilder<R: ?Sized> {
pub rid: RecipientIdentifier,
pub key_encryption_info: KeyEncryptionInfo,
/* private fields */
}Available on crate feature
builder only.Expand description
Builds a KeyTransRecipientInfo according to RFC 5652 § 6.
This type uses the recipient’s public key to encrypt the content-encryption key.
Fields§
§rid: RecipientIdentifierIdentifies the recipient
key_encryption_info: KeyEncryptionInfoInfo for key encryption
Implementations§
Source§impl<R> KeyTransRecipientInfoBuilder<R>
impl<R> KeyTransRecipientInfoBuilder<R>
Sourcepub fn new(
rid: RecipientIdentifier,
key_encryption_info: KeyEncryptionInfo,
) -> Result<Self, Error>
pub fn new( rid: RecipientIdentifier, key_encryption_info: KeyEncryptionInfo, ) -> Result<Self, Error>
Creates a KeyTransRecipientInfoBuilder
Trait Implementations§
Source§impl<R> RecipientInfoBuilder for KeyTransRecipientInfoBuilder<R>
impl<R> RecipientInfoBuilder for KeyTransRecipientInfoBuilder<R>
Source§fn build_with_rng(
&mut self,
content_encryption_key: &[u8],
rng: &mut Self::Rng,
) -> Result<RecipientInfo, Error>
fn build_with_rng( &mut self, content_encryption_key: &[u8], rng: &mut Self::Rng, ) -> Result<RecipientInfo, Error>
Build a KeyTransRecipientInfo. See RFC 5652 § 6.2.1
content_encryption_key will be encrypted with the recipient’s public key.
Source§fn recipient_info_type(&self) -> RecipientInfoType
fn recipient_info_type(&self) -> RecipientInfoType
Return the recipient info type
Source§fn recipient_info_version(&self) -> CmsVersion
fn recipient_info_version(&self) -> CmsVersion
Return the recipient info version
Auto Trait Implementations§
impl<R> Freeze for KeyTransRecipientInfoBuilder<R>where
R: ?Sized,
impl<R> RefUnwindSafe for KeyTransRecipientInfoBuilder<R>where
R: RefUnwindSafe + ?Sized,
impl<R> Send for KeyTransRecipientInfoBuilder<R>
impl<R> Sync for KeyTransRecipientInfoBuilder<R>
impl<R> Unpin for KeyTransRecipientInfoBuilder<R>
impl<R> UnwindSafe for KeyTransRecipientInfoBuilder<R>where
R: UnwindSafe + ?Sized,
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