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 signing 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, curve, 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_mpint_for_agent
Encode a big integer for the SSH agent add_identity wire format.
encode_ssh_pubkey
Encode a public key in SSH wire format.
encode_ssh_signature
Encode a raw signature in SSH wire format.
extract_pubkey_from_key_bytes
Extract the 32-byte Ed25519 public key from key bytes.
extract_seed_from_pkcs8
Extract an Ed25519 seed from PKCS#8 key bytes.