pub enum POPOPrivKey {
ThisMessage(BitString),
SubsequentMessage(SubsequentMessage),
DhMac(BitString),
AgreeMac(PkMacValue),
EncryptedKey(EnvelopedData),
}Expand description
The POPOPrivKey type is defined in RFC 4211 Section 4.2.
POPOPrivKey ::= CHOICE {
thisMessage [0] BIT STRING, -- Deprecated
subsequentMessage [1] SubsequentMessage,
dhMAC [2] BIT STRING, -- Deprecated
agreeMAC [3] PKMACValue,
encryptedKey [4] EnvelopedData }Variants§
ThisMessage(BitString)
SubsequentMessage(SubsequentMessage)
DhMac(BitString)
AgreeMac(PkMacValue)
EncryptedKey(EnvelopedData)
Trait Implementations§
Source§impl<'__der_lifetime> Choice<'__der_lifetime> for POPOPrivKey
impl<'__der_lifetime> Choice<'__der_lifetime> for POPOPrivKey
Source§impl Clone for POPOPrivKey
impl Clone for POPOPrivKey
Source§fn clone(&self) -> POPOPrivKey
fn clone(&self) -> POPOPrivKey
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for POPOPrivKey
impl Debug for POPOPrivKey
Source§impl<'__der_lifetime> Decode<'__der_lifetime> for POPOPrivKey
impl<'__der_lifetime> Decode<'__der_lifetime> for POPOPrivKey
Source§impl EncodeValue for POPOPrivKey
impl EncodeValue for POPOPrivKey
Source§impl PartialEq for POPOPrivKey
impl PartialEq for POPOPrivKey
Source§impl Tagged for POPOPrivKey
impl Tagged for POPOPrivKey
impl Eq for POPOPrivKey
impl StructuralPartialEq for POPOPrivKey
Auto Trait Implementations§
impl Freeze for POPOPrivKey
impl RefUnwindSafe for POPOPrivKey
impl Send for POPOPrivKey
impl Sync for POPOPrivKey
impl Unpin for POPOPrivKey
impl UnwindSafe for POPOPrivKey
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.