Type Alias EphemeralKeyPair

Source
pub type EphemeralKeyPair = KeyPair<Ephemeral>;

Aliased Type§

struct EphemeralKeyPair { /* private fields */ }

Implementations

Source§

impl<U: Lifetime> KeyPair<U>

Source

pub fn generate(alg: &'static Algorithm) -> Result<Self>

Generate a new key pair for the given algorithm.

Source

pub fn from_private_key(private_key: PrivateKey<U>) -> Result<Self>

Source

pub fn private_key(&self) -> &PrivateKey<U>

The private key.

Source

pub fn public_key(&self) -> &PublicKey

The public key.

Source

pub fn split(self) -> (PrivateKey<U>, PublicKey)

Split the key pair apart.