pub struct SkEcdsaSha2NistP256 { /* private fields */ }
Available on crate features
alloc
and ecdsa
only.Expand description
Security Key (FIDO/U2F) ECDSA/NIST P-256 private key as specified in PROTOCOL.u2f.
Implementations§
source§impl SkEcdsaSha2NistP256
impl SkEcdsaSha2NistP256
sourcepub fn new(
public: SkEcdsaSha2NistP256,
flags: u8,
key_handle: impl Into<Vec<u8>>,
) -> Result<Self>
pub fn new( public: SkEcdsaSha2NistP256, flags: u8, key_handle: impl Into<Vec<u8>>, ) -> Result<Self>
Construct new instance of SkEcdsaSha2NistP256.
sourcepub fn public(&self) -> &SkEcdsaSha2NistP256
pub fn public(&self) -> &SkEcdsaSha2NistP256
Get the ECDSA/NIST P-256 public key.
sourcepub fn key_handle(&self) -> &[u8] ⓘ
pub fn key_handle(&self) -> &[u8] ⓘ
Get FIDO/U2F key handle.
Trait Implementations§
source§impl Clone for SkEcdsaSha2NistP256
impl Clone for SkEcdsaSha2NistP256
source§fn clone(&self) -> SkEcdsaSha2NistP256
fn clone(&self) -> SkEcdsaSha2NistP256
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 SkEcdsaSha2NistP256
impl Debug for SkEcdsaSha2NistP256
source§impl Decode for SkEcdsaSha2NistP256
impl Decode for SkEcdsaSha2NistP256
source§impl Encode for SkEcdsaSha2NistP256
impl Encode for SkEcdsaSha2NistP256
source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.source§impl From<SkEcdsaSha2NistP256> for KeypairData
impl From<SkEcdsaSha2NistP256> for KeypairData
source§fn from(keypair: SkEcdsaSha2NistP256) -> KeypairData
fn from(keypair: SkEcdsaSha2NistP256) -> KeypairData
Converts to this type from the input type.
source§impl From<SkEcdsaSha2NistP256> for PrivateKey
impl From<SkEcdsaSha2NistP256> for PrivateKey
source§fn from(keypair: SkEcdsaSha2NistP256) -> PrivateKey
fn from(keypair: SkEcdsaSha2NistP256) -> PrivateKey
Converts to this type from the input type.
source§impl Ord for SkEcdsaSha2NistP256
impl Ord for SkEcdsaSha2NistP256
source§fn cmp(&self, other: &SkEcdsaSha2NistP256) -> Ordering
fn cmp(&self, other: &SkEcdsaSha2NistP256) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SkEcdsaSha2NistP256
impl PartialEq for SkEcdsaSha2NistP256
source§impl PartialOrd for SkEcdsaSha2NistP256
impl PartialOrd for SkEcdsaSha2NistP256
impl Eq for SkEcdsaSha2NistP256
impl StructuralPartialEq for SkEcdsaSha2NistP256
Auto Trait Implementations§
impl Freeze for SkEcdsaSha2NistP256
impl RefUnwindSafe for SkEcdsaSha2NistP256
impl Send for SkEcdsaSha2NistP256
impl Sync for SkEcdsaSha2NistP256
impl Unpin for SkEcdsaSha2NistP256
impl UnwindSafe for SkEcdsaSha2NistP256
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)