pub struct SkEcdsaSha2NistP256 { /* private fields */ }
Available on crate feature
ecdsa
only.Expand description
Security Key (FIDO/U2F) ECDSA/NIST P-256 public key as specified in PROTOCOL.u2f.
Implementations§
source§impl SkEcdsaSha2NistP256
impl SkEcdsaSha2NistP256
sourcepub fn new(ec_point: EncodedPoint<U32>, application: impl Into<String>) -> Self
Available on crate feature alloc
only.
pub fn new(ec_point: EncodedPoint<U32>, application: impl Into<String>) -> Self
alloc
only.Construct new instance of SkEcdsaSha2NistP256.
sourcepub fn ec_point(&self) -> &EncodedPoint<U32>
pub fn ec_point(&self) -> &EncodedPoint<U32>
Get the elliptic curve point for this Security Key.
sourcepub fn application(&self) -> &str
Available on crate feature alloc
only.
pub fn application(&self) -> &str
alloc
only.Get the FIDO/U2F application (typically ssh:
).
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<EncodedPoint<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for SkEcdsaSha2NistP256
impl From<EncodedPoint<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for SkEcdsaSha2NistP256
source§fn from(ec_point: EncodedPoint<U32>) -> SkEcdsaSha2NistP256
fn from(ec_point: EncodedPoint<U32>) -> SkEcdsaSha2NistP256
Converts to this type from the input type.
source§impl From<SkEcdsaSha2NistP256> for EncodedPoint<U32>
impl From<SkEcdsaSha2NistP256> for EncodedPoint<U32>
source§fn from(sk: SkEcdsaSha2NistP256) -> EncodedPoint<U32>
fn from(sk: SkEcdsaSha2NistP256) -> EncodedPoint<U32>
Converts to this type from the input type.
source§impl From<SkEcdsaSha2NistP256> for KeyData
impl From<SkEcdsaSha2NistP256> for KeyData
source§fn from(public_key: SkEcdsaSha2NistP256) -> KeyData
fn from(public_key: SkEcdsaSha2NistP256) -> KeyData
Converts to this type from the input type.
source§impl From<SkEcdsaSha2NistP256> for PublicKey
impl From<SkEcdsaSha2NistP256> for PublicKey
source§fn from(public_key: SkEcdsaSha2NistP256) -> PublicKey
fn from(public_key: SkEcdsaSha2NistP256) -> PublicKey
Converts to this type from the input type.
source§impl Hash for SkEcdsaSha2NistP256
impl Hash for SkEcdsaSha2NistP256
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
source§impl Verifier<Signature> for SkEcdsaSha2NistP256
Available on crate features alloc
and p256
only.
impl Verifier<Signature> for SkEcdsaSha2NistP256
Available on crate features
alloc
and p256
only.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
)