pub struct CoseKeySet {
pub cose_keys: Vec<CoseKey>,
pub bytes: Vec<u8>,
}
Expand description
cose-keySet structure.
Fields§
§cose_keys: Vec<CoseKey>
List of the cose-keys.
bytes: Vec<u8>
COSE encoded key set.
Implementations§
Source§impl CoseKeySet
impl CoseKeySet
Sourcepub fn new() -> CoseKeySet
pub fn new() -> CoseKeySet
Creates a new empty structure.
Sourcepub fn encode(&mut self) -> CoseResult
pub fn encode(&mut self) -> CoseResult
Encodes the cose-keySet.
Sourcepub fn decode(&mut self) -> CoseResult
pub fn decode(&mut self) -> CoseResult
Decodes an encoded cose-keySet.
The COSE encoded bytes of the cose-keySet must be set with the structure attribute bytes beforehand.
Auto Trait Implementations§
impl Freeze for CoseKeySet
impl RefUnwindSafe for CoseKeySet
impl Send for CoseKeySet
impl Sync for CoseKeySet
impl Unpin for CoseKeySet
impl UnwindSafe for CoseKeySet
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