pub enum RecipientInfo {
Ktri(KeyTransRecipientInfo),
Kari(KeyAgreeRecipientInfo),
Kekri(KekRecipientInfo),
Pwri(PasswordRecipientInfo),
Ori(OtherRecipientInfo),
}
Expand description
The RecipientInfo
type is defined in RFC 5652 Section 6.2.
RecipientInfo ::= CHOICE {
ktri KeyTransRecipientInfo,
...,
[[3: kari [1] KeyAgreeRecipientInfo ]],
[[4: kekri [2] KEKRecipientInfo]],
[[5: pwri [3] PasswordRecipientInfo,
ori [4] OtherRecipientInfo ]] }
Variants§
Ktri(KeyTransRecipientInfo)
Kari(KeyAgreeRecipientInfo)
Kekri(KekRecipientInfo)
Pwri(PasswordRecipientInfo)
Ori(OtherRecipientInfo)
Trait Implementations§
Source§impl<'__der_lifetime> Choice<'__der_lifetime> for RecipientInfo
impl<'__der_lifetime> Choice<'__der_lifetime> for RecipientInfo
Source§impl Clone for RecipientInfo
impl Clone for RecipientInfo
Source§fn clone(&self) -> RecipientInfo
fn clone(&self) -> RecipientInfo
Returns a duplicate 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 RecipientInfo
impl Debug for RecipientInfo
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for RecipientInfo
impl<'__der_lifetime> Decode<'__der_lifetime> for RecipientInfo
Source§impl EncodeValue for RecipientInfo
impl EncodeValue for RecipientInfo
Source§impl PartialEq for RecipientInfo
impl PartialEq for RecipientInfo
Source§impl Tagged for RecipientInfo
impl Tagged for RecipientInfo
Source§impl ValueOrd for RecipientInfo
impl ValueOrd for RecipientInfo
impl Eq for RecipientInfo
impl StructuralPartialEq for RecipientInfo
Auto Trait Implementations§
impl Freeze for RecipientInfo
impl RefUnwindSafe for RecipientInfo
impl Send for RecipientInfo
impl Sync for RecipientInfo
impl Unpin for RecipientInfo
impl UnwindSafe for RecipientInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.