pub enum PSKCKeyUsage {
Otp,
Cr,
Encrypt,
Integrity,
Verify,
Unlock,
Decrypt,
KeyWrap,
Unwrap,
Derive,
Generate,
}Expand description
The PSKCKeyUsage type is defined in RFC 6031 Section 3.3.4.
PSKCKeyUsage ::= UTF8String ("OTP" | "CR" | "Encrypt" |
"Integrity" | "Verify" | "Unlock" | "Decrypt" |
"KeyWrap" | "Unwrap" | "Derive" | "Generate")Variants§
Otp
“OTP”
Cr
“CR”
Encrypt
“Encrypt”
Integrity
“Integrity”
Verify
“Verify”
Unlock
“Unlock”
Decrypt
“Decrypt”
KeyWrap
“KeyWrap”
Unwrap
“Unwrap”
Derive
“Derive”
Generate
“Generate”
Trait Implementations§
Source§impl AsRef<str> for PSKCKeyUsage
impl AsRef<str> for PSKCKeyUsage
Source§impl Clone for PSKCKeyUsage
impl Clone for PSKCKeyUsage
Source§fn clone(&self) -> PSKCKeyUsage
fn clone(&self) -> PSKCKeyUsage
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<'d> DecodeValue<'d> for PSKCKeyUsage
impl<'d> DecodeValue<'d> for PSKCKeyUsage
Source§impl EncodeValue for PSKCKeyUsage
impl EncodeValue for PSKCKeyUsage
Source§impl PartialEq for PSKCKeyUsage
impl PartialEq for PSKCKeyUsage
impl Copy for PSKCKeyUsage
impl Eq for PSKCKeyUsage
impl StructuralPartialEq for PSKCKeyUsage
Auto Trait Implementations§
impl Freeze for PSKCKeyUsage
impl RefUnwindSafe for PSKCKeyUsage
impl Send for PSKCKeyUsage
impl Sync for PSKCKeyUsage
impl Unpin for PSKCKeyUsage
impl UnwindSafe for PSKCKeyUsage
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<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag + 'a,
Source§type Error = <T as DecodeValue<'a>>::Error
type Error = <T as DecodeValue<'a>>::Error
Type returned in the event of a decoding error.
Source§fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
fn decode<R>(reader: &mut R) -> Result<T, <T as DecodeValue<'a>>::Error>where
R: Reader<'a>,
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<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.
Source§impl<T> IsConstructed for T
impl<T> IsConstructed for T
Source§const CONSTRUCTED: bool
const CONSTRUCTED: bool
ASN.1 constructed bit