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

pub struct EcDsaKeyPair { /* fields omitted */ }
Expand description

Represent the EcDSA key pair

Implementations

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.

Get the key’s elliptic curve type

Clone the public parts to generate public key

Trait Implementations

Performs the conversion.

The size in bits of the key

The key name of the key

Sign the data with the key, returning the “detached” signature

Return the binary representation of the public key

Verify the data with a detached signature, returning true if the signature is not malformed

Hash the blob of the public key to generate the fingerprint

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.