[][src]Struct osshkeys::keys::ecdsa::EcDsaKeyPair

pub struct EcDsaKeyPair { /* fields omitted */ }

Represent the EcDSA key pair

Methods

impl EcDsaKeyPair[src]

pub fn generate(bits: usize) -> OsshResult<Self>[src]

Generate EcDSA key pair

The bits parameter should be 256, 284, 521 bits or 0 to use default length (256 bits). Different key length is corresponding to different curve.

pub fn clone_public_key(&self) -> Result<EcDsaPublicKey, Error>[src]

Clone the public parts to generate public key

Trait Implementations

impl Key for EcDsaKeyPair[src]

impl PublicPart for EcDsaKeyPair[src]

fn fingerprint(&self, hash: FingerprintHash) -> OsshResult<Vec<u8>>[src]

Hash the blob of the public key to generate the fingerprint

impl PrivatePart for EcDsaKeyPair[src]

impl From<EcDsaKeyPair> for KeyPair[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self