Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtCustomDSIKeyFormatList.SaveToStream

procedure SaveToStream(const aPriv: iUnknown; const aPwd : iSecretKey; aStrm: TStream; const aIntf: TGUID); overload;
Generic by-GUID save used by the DSI key components in StreamSec.DSI.ArithComp (their PublicKeyFormat/PrivateKeyFormat lists are these tDSI*KeyFormatList types) when the concrete key-pair interface is only available as a GUID at the call site: it walks SelOptions looking for the first enabled format that supports aIntf and asks that one format to write aPriv (with kfsKeyOnly), raising eKeyFormatError if none match. Applications normally use the strongly-typed SaveToStream overload on the matching tDSI*FormatList instead of calling this directly.