methodTstCustomMPKey.SavePrivateKeyToStream
procedure SavePrivateKeyToStream(aStrm: TStream; const aIntf: TGUID); virtual;
Base implementation just raises "Not implemented"; concrete key components (e.g. TstRSAKey, TstDSSKey, TstECDSAKey) override it to serialize the PRIVATE key material in their own format, selected via aIntf. An application uses this to export/persist a locally-held private key (e.g. a host key or client key) to a file or stream; no built-in client/server distinction, but in practice it is the server (or the client) side that owns a private key it wants to persist, not a peer's key which is only ever available as a public key.