Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.SSH.KeyFormat

Feature notes: SSH implementation notes

Classes, interfaces and records

interfaceiSSHProtocolFormat

inherits from iCustomDSIKeyFormat

(no public members)

classtCustomSSHRSAKeyFormat

inherits from tDSIIFPublicKeyFormat

(no public members)

classtSSHRSAKeyFormat

inherits from tCustomSSHRSAKeyFormat

implements iSSHProtocolFormat

(no public members)

classtCustomSSHDSSKeyFormat

inherits from tDSIDLPublicKeyFormat

implements iSSHProtocolFormat

procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;

classtSSHDSSKeyFormat

inherits from tCustomSSHDSSKeyFormat

implements iSSHProtocolFormat

(no public members)

classtCustomSSHEdDSAKeyFormat

inherits from tDSIDLPublicKeyFormat

ssh-ed25519 / ssh-ed448 (RFC 8709). EdDSA keys are iDLPublicKey but sign/verify through the EdDSA pool (GetDSIED), so NewPool returns GetDSIED. The public-key blob is string "ssh-edXXX" || string ENC(A) (the raw 32- or 57-byte point). The shared base codes both curves (the type string / point size selects the curve); the two concrete classes differ only by RegisterIdentifier. The base does not itself answer iSSHProtocolFormat, which marks a format that writes the bare wire blob: the RFC 4716 formats below derive from it and must not be chosen for that.

procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;

classtSSHED25519KeyFormat

inherits from tCustomSSHEdDSAKeyFormat

implements iSSHProtocolFormat

(no public members)

classtSSHED448KeyFormat

inherits from tCustomSSHEdDSAKeyFormat

implements iSSHProtocolFormat

(no public members)

classtCustomSSHECDSAKeyFormat

inherits from tDSIDLPublicKeyFormat

ecdsa-sha2-nistp256/384/521 (RFC 5656). EC keys verified through GetDSIEC. The public-key blob is string "ecdsa-sha2-nistpNNN" || string "nistpNNN" || string Q (Q = uncompressed point 0x04||X||Y). One format handles all three curves (the curve identifier is in the blob / derivable from the point size). As for EdDSA, the base leaves iSSHProtocolFormat to the wire-blob class.

procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;

classtSSHECDSAKeyFormat

inherits from tCustomSSHECDSAKeyFormat

implements iSSHProtocolFormat

(no public members)

classtSSHBase64RSAKeyFormat

inherits from tCustomSSHRSAKeyFormat

(no public members)

classtSSHBase64DSSKeyFormat

inherits from tCustomSSHDSSKeyFormat

(no public members)

classtSSHBase64ECDSAKeyFormat

inherits from tCustomSSHECDSAKeyFormat

RFC 4716, "The Secure Shell (SSH) Public Key File Format", for ECDSA and EdDSA keys: the wire blob of SSH-ECDSA / SSH-ED25519 / SSH-ED448, base64 between the ---- BEGIN SSH2 PUBLIC KEY ---- and ---- END SSH2 PUBLIC KEY ---- lines, headed by the key's iKeyFileHeader (iSignPublicKey.Data) - Subject:, Comment: and the like - as SSH-Base64-RSA and SSH-Base64-DSS do for their keys. Reading attaches the header found to the key in the same way. TstSSHPublicKeyList writes ECDSA and EdDSA keys to its file in these formats, the Subject header carrying the identifier the key is held under.

(no public members)

classtCustomSSHBase64EdDSAKeyFormat

inherits from tCustomSSHEdDSAKeyFormat

Both EdDSA curves, as the wire-blob base does; the two concrete classes differ only by RegisterIdentifier.

(no public members)

classtSSHBase64ED25519KeyFormat

inherits from tCustomSSHBase64EdDSAKeyFormat

(no public members)

classtSSHBase64ED448KeyFormat

inherits from tCustomSSHBase64EdDSAKeyFormat

(no public members)

Routines