Expand description
SSH cryptographic operations: key parsing, SSHSIG creation, and wire-format encoding.
Structs§
- Secure
Seed - Zeroize-on-drop wrapper for a raw 32-byte Ed25519 seed.
Enums§
- Crypto
Error - 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.