Enum thrussh_keys::key::KeyPair[][src]

pub enum KeyPair {
    Ed25519(SecretKey),
    RSA {
        key: Rsa<Private>,
        hash: SignatureHash,
    },
}

Public key exchange algorithms.

Variants

Fields of RSA

Methods

impl KeyPair
[src]

Copy the public key of this algorithm.

Name of this key algorithm.

Generate a key pair.

Sign a slice using this algorithm.

Trait Implementations

impl Debug for KeyPair
[src]

Formats the value using the given formatter. Read more

impl PublicKeyBase64 for KeyPair
[src]

Create the base64 part of the public key blob.

Auto Trait Implementations

impl Send for KeyPair

impl Sync for KeyPair