Module ssh

Source
Expand description

Shared OpenSSH helpers.

Macros§

ssh_to_internal_erased 🔒
Convert ssh_key KeyData or KeypairData to one of our key types.

Structs§

SshKeyData
A public key or a keypair.

Enums§

SshKeyAlgorithm
SSH key algorithms.
SshKeyDataInner 🔒
The inner representation of a public key or a keypair.

Constants§

ED25519_EXPANDED_ALGORITHM_NAME 🔒
The algorithm string for expanded ed25519 SSH keys.
X25519_ALGORITHM_NAME 🔒
The algorithm string for x25519 SSH keys.

Functions§

convert_ed25519_kp 🔒
Try to convert an Ed25519Keypair to an [ed25519::Keypair].
convert_ed25519_pk 🔒
Try to convert an Ed25519PublicKey to an [ed25519::PublicKey].
convert_expanded_ed25519_kp 🔒
Try to convert an OpaqueKeypair to an [ed25519::ExpandedKeypair].
convert_expanded_ed25519_pk 🔒
Try to convert an OpaquePublicKey to an [ed25519::PublicKey].
convert_x25519_kp 🔒
Try to convert an OpaqueKeypair to a [curve25519::StaticKeypair].
convert_x25519_pk 🔒
Try to convert an OpaquePublicKey to a [curve25519::PublicKey].