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

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

Public key exchange algorithms.

Variants

Fields of RSA

Methods

impl KeyPair
[src]

[src]

Copy the public key of this algorithm.

[src]

Name of this key algorithm.

[src]

Generate a key pair.

[src]

Sign a slice using this algorithm.

Trait Implementations

impl Debug for KeyPair
[src]

[src]

Formats the value using the given formatter.

impl PublicKeyBase64 for KeyPair
[src]

[src]

Create the base64 part of the public key blob.