pub struct SkEd25519 { /* private fields */ }Expand description
Security Key (FIDO/U2F) Ed25519 public key as specified in PROTOCOL.u2f.
Implementations
sourceimpl SkEd25519
impl SkEd25519
sourcepub fn public_key(&self) -> &Ed25519PublicKey
pub fn public_key(&self) -> &Ed25519PublicKey
Get the Ed25519 private key for this security key.
sourcepub fn application(&self) -> &str
pub fn application(&self) -> &str
Get the FIDO/U2F application (typically ssh:).
Trait Implementations
sourceimpl Encode for SkEd25519
impl Encode for SkEd25519
sourcefn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer.sourcefn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix. Read moresourceimpl From<Ed25519PublicKey> for SkEd25519
impl From<Ed25519PublicKey> for SkEd25519
sourcefn from(public_key: Ed25519PublicKey) -> SkEd25519
fn from(public_key: Ed25519PublicKey) -> SkEd25519
Converts to this type from the input type.
sourceimpl From<SkEd25519> for Ed25519PublicKey
impl From<SkEd25519> for Ed25519PublicKey
sourcefn from(sk: SkEd25519) -> Ed25519PublicKey
fn from(sk: SkEd25519) -> Ed25519PublicKey
Converts to this type from the input type.
sourceimpl Ord for SkEd25519
impl Ord for SkEd25519
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<SkEd25519> for SkEd25519
impl PartialOrd<SkEd25519> for SkEd25519
sourcefn partial_cmp(&self, other: &SkEd25519) -> Option<Ordering>
fn partial_cmp(&self, other: &SkEd25519) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for SkEd25519
impl StructuralEq for SkEd25519
impl StructuralPartialEq for SkEd25519
Auto Trait Implementations
impl RefUnwindSafe for SkEd25519
impl Send for SkEd25519
impl Sync for SkEd25519
impl Unpin for SkEd25519
impl UnwindSafe for SkEd25519
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more