Skip to main content

Module ssh

Module ssh 

Source
Expand description

SSH cryptographic operations: key parsing, SSHSIG creation, and wire-format encoding.

Structs§

SecureSeed
Zeroize-on-drop wrapper for a raw 32-byte Ed25519 seed.

Enums§

CryptoError
Errors from SSH key construction, signing, and encoding operations.

Functions§

build_ed25519_pkcs8_v2_from_seed
Build a PKCS#8 v2 DER document from a seed, deriving the public key internally.
construct_sshsig_pem
Construct the final SSHSIG PEM from a public key and raw signature.
construct_sshsig_signed_data
Construct the data blob that SSHSIG signs (the “message to sign”).
create_sshsig
Create an SSHSIG signature and return it as a PEM-armored string.
encode_ssh_pubkey
Encode an Ed25519 public key in SSH wire format.
encode_ssh_signature
Encode a raw Ed25519 signature in SSH signature wire format.
extract_pubkey_from_key_bytes
Extract the 32-byte Ed25519 public key from PKCS#8 key bytes.
extract_seed_from_pkcs8
Extract an Ed25519 seed from PKCS#8 key bytes.