methodTstSSHPublicKeyList.LoadPublicKeyFromStream
function LoadPublicKeyFromStream(const aIdentifier: OctetString; aStrm : TStream) : Boolean; override;
Verifies that the raw key blob in aStrm matches the key stored for aIdentifier. The match is robust to key type and to however the store was populated: it re-derives the stored key's canonical SSH wire form from the key object (ssh-rsa / ssh-dss / ecdsa-sha2-* / ssh-ed25519 / ssh-ed448) and compares that against the presented bytes. This is the hook the SSH server calls during client publickey authentication (TstCustomSSHServer routes the logging-in user's offered key here via ClientKeys.LoadPublicKeyFromStream) to check that the key the client presents is the one authorized for that user name. An empty aIdentifier matches the first list entry. Returns False if the list is empty, the identifier is unknown, or the keys differ. Note the client's own host-key check does not go through here: a client fetches its pinned host key by GetKey instead of comparing a streamed blob. The list answers all four lookups - iGetRSAKey (ServerRSAKey), iGetDSSKey (ServerDSSKey), iGetECDSAKey (ServerECDSAKey) and iGetEdDSAKey (ServerEdDSAKey) - so it can be assigned to any of them. GetKey itself returns whatever key type is stored under the identifier; each ServerXxxKey property registers the key only if it is of its own algorithm family, so one list can be assigned to all four with the same identifier and pins exactly the key the host has on file.