ReadonlydataThe parsed key material by algorithm.
ReadonlycommentThe comment stored in the private-key section (may be empty).
Readonlycheckint32-bit checkint preserved on round-trip — ssh-key retains the parsed
value, so to round-trip byte-identically we do too.
Algorithm tag for this key.
StaticfromConstruct an SSHPrivateKey from already-decoded parts. Used by
PrivateKeyBase.sshSigningPrivateKey after generating key material
from an HKDF-seeded RNG. The checkint should be derived
deterministically from the private bytes (mirrors ssh-key 0.6.7's
KeypairData::checkint).
StaticfromParses the PEM-armoured OpenSSH private key text, as ssh_key::PrivateKey::from_openssh.
StaticfromParses the binary openssh-key-v1 blob (the base64 payload of the text form).
Re-serialize to the canonical OpenSSH armored format.
The binary openssh-key-v1 blob, byte for byte as OpenSSH writes it.
The matching public key, with the same comment.
SHA-256 of the OpenSSH text form (the reference's Reference image).
The first four bytes of digest() in hex, the reference's ref_hex_short.
SSHPrivateKey(<short reference>), the reference's Display.
Signs message in namespace with hashAlgorithm, producing an
sshsig signature.
RSA keys cannot sign: ssh-key 0.6.7 rebuilds the rsa private key
from (p, p) instead of (p, q), so the reference's
SigningPrivateKey::sign fails with cryptographic error for every
RSA key, and so does this method.
An OpenSSH private key (
-----BEGIN OPENSSH PRIVATE KEY-----), unencrypted, for the algorithms inSshAlgorithm.