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§fn decode<R: Reader<'__der_lifetime>>(reader: &mut R) -> Result<Self, Error>
fn decode<R: Reader<'__der_lifetime>>(reader: &mut R) -> Result<Self, Error>
Attempt to decode this TLV message using the provided decoder.
Source§fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
fn from_ber(bytes: &'a [u8]) -> Result<Self, Self::Error>
Available on crate feature
ber only.Parse
Self from the provided BER-encoded byte slice. Read moreSource§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for RecipientInfo
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for RecipientInfo
Source§impl<'__der_lifetime> EncodeValue for RecipientInfo
impl<'__der_lifetime> EncodeValue for RecipientInfo
Source§impl<'__der_lifetime> IsConstructed for RecipientInfo
impl<'__der_lifetime> IsConstructed for RecipientInfo
Source§const CONSTRUCTED: bool = true
const CONSTRUCTED: bool = true
ASN.1 constructed bit
Source§impl PartialEq for RecipientInfo
impl PartialEq for RecipientInfo
Source§impl<'__der_lifetime> Tagged for RecipientInfo
impl<'__der_lifetime> 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 T
impl<T> Encode for T
Source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this TLV object 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 TLV object 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 TLV object to the provided byte slice, returning a sub-slice
containing the encoded message.