Struct coset::CoseKdfContext
source · pub struct CoseKdfContext { /* private fields */ }
Expand description
Structure representing a a key derivation context.
COSE_KDF_Context = [
AlgorithmID : int / tstr,
PartyUInfo : [ PartyInfo ],
PartyVInfo : [ PartyInfo ],
SuppPubInfo : [
keyDataLength : uint,
protected : empty_or_serialized_map,
? other : bstr
],
? SuppPrivInfo : bstr
]
Trait Implementations§
source§impl AsCborValue for CoseKdfContext
impl AsCborValue for CoseKdfContext
source§fn from_cbor_value(value: Value) -> Result<Self>
fn from_cbor_value(value: Value) -> Result<Self>
Convert a [
Value
] into an instance of the type.source§fn to_cbor_value(self) -> Result<Value>
fn to_cbor_value(self) -> Result<Value>
Convert the object into a [
Value
], consuming it along the way.source§impl CborSerializable for CoseKdfContext
impl CborSerializable for CoseKdfContext
source§fn from_slice(slice: &[u8]) -> Result<Self>
fn from_slice(slice: &[u8]) -> Result<Self>
Create an object instance from serialized CBOR data in a slice. This method will fail (with
CoseError::ExtraneousData
) if there is additional CBOR data after the object.source§impl Clone for CoseKdfContext
impl Clone for CoseKdfContext
source§fn clone(&self) -> CoseKdfContext
fn clone(&self) -> CoseKdfContext
Returns a copy 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 CoseKdfContext
impl Debug for CoseKdfContext
source§impl Default for CoseKdfContext
impl Default for CoseKdfContext
source§fn default() -> CoseKdfContext
fn default() -> CoseKdfContext
Returns the “default value” for a type. Read more
source§impl PartialEq<CoseKdfContext> for CoseKdfContext
impl PartialEq<CoseKdfContext> for CoseKdfContext
source§fn eq(&self, other: &CoseKdfContext) -> bool
fn eq(&self, other: &CoseKdfContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CoseKdfContext
Auto Trait Implementations§
impl RefUnwindSafe for CoseKdfContext
impl Send for CoseKdfContext
impl Sync for CoseKdfContext
impl Unpin for CoseKdfContext
impl UnwindSafe for CoseKdfContext
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