Skip to main content

Module ssh

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_rsa_kp ๐Ÿ”’
Try to convert an RsaKeypair to a rsa::KeyPair.
convert_rsa_pk ๐Ÿ”’
Try to convert an RsaKeypair to a rsa::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.