Expand description
Shared OpenSSH helpers.
Macrosยง
- ssh_
to_ ๐internal_ erased - Convert ssh_key KeyData or KeypairData to one of our key types.
Structsยง
- SshKey
Data - A public key or a keypair.
Enumsยง
- SshKey
Algorithm - SSH key algorithms.
- SshKey
Data ๐Inner - 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
Ed25519Keypairto aned25519::Keypair. - convert_
ed25519_ ๐pk - Try to convert an
Ed25519PublicKeyto aned25519::PublicKey. - convert_
expanded_ ๐ed25519_ kp - Try to convert an
OpaqueKeypairto aned25519::ExpandedKeypair. - convert_
expanded_ ๐ed25519_ pk - Try to convert an
OpaquePublicKeyto aned25519::PublicKey. - convert_
rsa_ ๐kp - Try to convert an
RsaKeypairto arsa::KeyPair. - convert_
rsa_ ๐pk - Try to convert an
RsaKeypairto arsa::PublicKey. - convert_
x25519_ ๐kp - Try to convert an
OpaqueKeypairto acurve25519::StaticKeypair. - convert_
x25519_ ๐pk - Try to convert an
OpaquePublicKeyto acurve25519::PublicKey.