pub enum CosePublicKey {
Ec2 {
x: Vec<u8>,
y: Vec<u8>,
},
Rsa {
n: Vec<u8>,
e: Vec<u8>,
},
}Expand description
Parsed COSE public key (EC2 or RSA).
Variants§
Ec2
Elliptic-curve (P-256) key with affine coordinates x and y.
Fields
Rsa
RSA key with modulus n and public exponent e.
Trait Implementations§
Source§impl Clone for CosePublicKey
impl Clone for CosePublicKey
Source§fn clone(&self) -> CosePublicKey
fn clone(&self) -> CosePublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CosePublicKey
impl RefUnwindSafe for CosePublicKey
impl Send for CosePublicKey
impl Sync for CosePublicKey
impl Unpin for CosePublicKey
impl UnsafeUnpin for CosePublicKey
impl UnwindSafe for CosePublicKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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