inherits from Exception
(no public members)
function GetData: iUnknown;
procedure SetData(const Value: iUnknown);
function GetHeader: TStrings;
function GetEncodedHeader: OctetString;
procedure SetEncodedHeader(const Value: OctetString);
property Header: TStrings read GetHeader;
property EncodedHeader: OctetString read GetEncodedHeader write SetEncodedHeader;
property Data: iUnknown read GetData write SetData;
inherits from TInterfacedObject
implements iUnknown, iKeyFileHeader
constructor Create;
destructor Destroy; override;
function GetKeyFormatSupports: tKeyFormatSupports;
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iUnknown; const aKFS : tKeyFormatSupports) : iUnknown;
procedure SaveToStream(const aPriv: iUnknown; const aPwd : iSecretKey; aStrm: TStream; const aKFS : tKeyFormatSupports);
property KeyFormatSupports: tKeyFormatSupports read GetKeyFormatSupports;
inherits from tCustomOption
implements iCustomDSIKeyFormat
(no public members)
inherits from tCustomOptionList
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
procedure SaveToStream(const aPriv: iUnknown; const aPwd : iSecretKey; aStrm: TStream; const aIntf: TGUID); overload;
property EnabledFormatCount: Integer read GetEnabledFormatCount;
One concrete on-disk encoding (e.g. a PKCS#1/PKCS#8-style format) for an IF (RSA-family, integer-factorization) private key. Application code normally does not call these methods on a single format directly; it goes through tDSIIFPrivateKeyFormatList so the right encoding is picked automatically. LoadFromStream decodes aStrm (decrypting with aPwd if the format is password-protected) into aKey; SaveToStream encodes aKey to aStrm the same way.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iIFPrivateKey) : iIFPrivateKey;
procedure SaveToStream(const aPriv: iIFPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIIFPrivateKeyFormat
The IF (RSA-family) private-key format registry an application actually talks to (e.g. via key storage/manager code) when loading or saving a private key file whose exact on-disk format is not known in advance.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iIFPrivateKey) : iIFPrivateKey;
procedure SaveToStream(const aPriv: iIFPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIIFPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIIFPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a DL-family private key. iDLPrivateKey here covers the discrete-log family in the widest sense used by this pool abstraction: plain DL/DSA, FFC (finite-field Diffie-Hellman), EC (ECDSA/ECDH) and Edwards-curve (EdDSA) keys can all arrive through this same interface, distinguished by which pool (iDSIFF/iDSIEC/iDSIED) backs them -- see tDSIDLPrivateKeyFormat.SuggestRequiredUnits. As with the IF formats, application code normally goes through tDSIDLPrivateKeyFormatList rather than calling a single format directly.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iDLPrivateKey) : iDLPrivateKey;
procedure SaveToStream(const aPriv: iDLPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIDLPrivateKeyFormat
The DL-family (DSA/DH/ECDSA/ECDH/EdDSA) private-key format registry an application uses to load/save private keys of these types without hard-coding the on-disk encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iDLPrivateKey) : iDLPrivateKey;
procedure SaveToStream(const aPriv: iDLPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIDLPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIDLPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
Typed Streamlined NTRU Prime key-format extension points. Concrete encoders can implement a format using only the interfaces in PKTypes; this registry assigns no ASN.1 algorithm identifier or wire encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iSNTRUPPrivateKey) : iSNTRUPPrivateKey;
procedure SaveToStream(const aPriv: iSNTRUPPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSISNTRUPPrivateKeyFormat
sntrup761 private-key format registry: the entry point an application uses to load or save a post-quantum KEM private key file without knowing its exact on-disk encoding up front.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iSNTRUPPrivateKey) : iSNTRUPPrivateKey;
procedure SaveToStream(const aPriv: iSNTRUPPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSISNTRUPPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSISNTRUPPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a post-quantum ML-KEM private key (FIPS 203). As with the classical formats above, an application normally reaches this through tDSIMLKEMPrivateKeyFormatList rather than a single format instance.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iMLKEMPrivateKey) : iMLKEMPrivateKey;
procedure SaveToStream(const aPriv: iMLKEMPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIMLKEMPrivateKeyFormat
ML-KEM private-key format registry: the entry point an application uses to load or save a post-quantum KEM private key file without knowing its exact on-disk encoding up front.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iMLKEMPrivateKey) : iMLKEMPrivateKey;
procedure SaveToStream(const aPriv: iMLKEMPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIMLKEMPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIMLKEMPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a post-quantum ML-DSA private key (FIPS 204). Reached indirectly through tDSIMLDSAPrivateKeyFormatList by application code in the common case.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iMLDSAPrivateKey) : iMLDSAPrivateKey;
procedure SaveToStream(const aPriv: iMLDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIMLDSAPrivateKeyFormat
ML-DSA private-key format registry: how an application loads/saves a post-quantum signature private key file without hard-coding its encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iMLDSAPrivateKey) : iMLDSAPrivateKey;
procedure SaveToStream(const aPriv: iMLDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIMLDSAPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIMLDSAPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a composite ML-DSA private key (the IETF LAMPS composite-signature combiner pairing a traditional signature key with ML-DSA). Application code normally reaches this through tDSICompositeMLDSAPrivateKeyFormatList.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iCompositeMLDSAPrivateKey) : iCompositeMLDSAPrivateKey;
procedure SaveToStream(const aPriv: iCompositeMLDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSICompositeMLDSAPrivateKeyFormat
Composite ML-DSA private-key format registry: how an application loads or saves a composite (traditional + post-quantum) signature private key file without hard-coding its on-disk encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iCompositeMLDSAPrivateKey) : iCompositeMLDSAPrivateKey;
procedure SaveToStream(const aPriv: iCompositeMLDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSICompositeMLDSAPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSICompositeMLDSAPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a composite ML-KEM private key (a hybrid classical-KEM + ML-KEM combiner). Reached indirectly through tDSICompositeMLKEMPrivateKeyFormatList by application code.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iCompositeMLKEMPrivateKey) : iCompositeMLKEMPrivateKey;
procedure SaveToStream(const aPriv: iCompositeMLKEMPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSICompositeMLKEMPrivateKeyFormat
Composite ML-KEM private-key format registry: how an application loads or saves a hybrid (classical + post-quantum) KEM private key file without hard-coding its on-disk encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iCompositeMLKEMPrivateKey) : iCompositeMLKEMPrivateKey;
procedure SaveToStream(const aPriv: iCompositeMLKEMPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSICompositeMLKEMPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSICompositeMLKEMPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for an IF (RSA-family) public key -- no password, since public keys are not encrypted. Certificates and PKIX code (StreamSec.DSI.PkixCert / X509Comp) commonly go through the SPKI layer rather than this format list directly, but standalone public-key files (e.g. exported for a peer) go through tDSIIFPublicKeyFormatList as with the private-key formats above.
function LoadFromStream(aStrm: TStream; const aKey : iIFPublicKey) : iIFPublicKey;
procedure SaveToStream(const aPubl: iIFPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIIFPublicKeyFormat
IF (RSA-family) public-key format registry used by an application to load/save a standalone public-key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iIFPublicKey) : iIFPublicKey;
procedure SaveToStream(const aPubl: iIFPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIIFPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIIFPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a DL-family public key (DSA/DH/ECDSA/ ECDH/EdDSA, same broad family as iDSIDLPrivateKeyFormat, unencrypted). Application code normally goes through tDSIDLPublicKeyFormatList.
function LoadFromStream(aStrm: TStream; const aKey : iDLPublicKey) : iDLPublicKey;
procedure SaveToStream(const aPubl: iDLPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIDLPublicKeyFormat
DL-family public-key format registry used by an application to load or save a standalone public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iDLPublicKey) : iDLPublicKey;
procedure SaveToStream(const aPubl: iDLPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIDLPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIDLPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
Typed Streamlined NTRU Prime key-format extension points. Concrete encoders can implement a format using only the interfaces in PKTypes; this registry assigns no ASN.1 algorithm identifier or wire encoding.
function LoadFromStream(aStrm: TStream; const aKey : iSNTRUPPublicKey) : iSNTRUPPublicKey;
procedure SaveToStream(const aPubl: iSNTRUPPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSISNTRUPPublicKeyFormat
sntrup761 public-key format registry used by an application to load/save a standalone post-quantum KEM public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iSNTRUPPublicKey) : iSNTRUPPublicKey;
procedure SaveToStream(const aPubl: iSNTRUPPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSISNTRUPPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSISNTRUPPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a post-quantum ML-KEM public key (unencrypted). Reached indirectly through tDSIMLKEMPublicKeyFormatList by application code, e.g. when exporting/importing a peer's KEM public key outside of a certificate.
function LoadFromStream(aStrm: TStream; const aKey : iMLKEMPublicKey) : iMLKEMPublicKey;
procedure SaveToStream(const aPubl: iMLKEMPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIMLKEMPublicKeyFormat
ML-KEM public-key format registry used by an application to load/save a standalone post-quantum KEM public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iMLKEMPublicKey) : iMLKEMPublicKey;
procedure SaveToStream(const aPubl: iMLKEMPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIMLKEMPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIMLKEMPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a post-quantum ML-DSA public key (unencrypted). Reached indirectly through tDSIMLDSAPublicKeyFormatList by application code.
function LoadFromStream(aStrm: TStream; const aKey : iMLDSAPublicKey) : iMLDSAPublicKey;
procedure SaveToStream(const aPubl: iMLDSAPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSIMLDSAPublicKeyFormat
ML-DSA public-key format registry used by an application to load/save a standalone post-quantum signature public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iMLDSAPublicKey) : iMLDSAPublicKey;
procedure SaveToStream(const aPubl: iMLDSAPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSIMLDSAPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSIMLDSAPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
SLH-DSA (FIPS 205) key formats. One concrete on-disk encoding for an SLH-DSA private key. Application code normally reaches this through tDSISLHDSAPrivateKeyFormatList rather than a single format instance.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iSLHDSAPrivateKey) : iSLHDSAPrivateKey;
procedure SaveToStream(const aPriv: iSLHDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSISLHDSAPrivateKeyFormat
SLH-DSA private-key format registry: how an application loads or saves an SLH-DSA (stateless hash-based signature) private key file without hard-coding its on-disk encoding.
function LoadFromStream(const aPwd : iSecretKey; aStrm: TStream; const aKey : iSLHDSAPrivateKey) : iSLHDSAPrivateKey;
procedure SaveToStream(const aPriv: iSLHDSAPrivateKey; const aPwd : iSecretKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSISLHDSAPrivateKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSISLHDSAPrivateKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for an SLH-DSA public key (unencrypted). Reached indirectly through tDSISLHDSAPublicKeyFormatList by application code.
function LoadFromStream(aStrm: TStream; const aKey : iSLHDSAPublicKey) : iSLHDSAPublicKey;
procedure SaveToStream(const aPubl: iSLHDSAPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSISLHDSAPublicKeyFormat
SLH-DSA public-key format registry used by an application to load/save a standalone SLH-DSA public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iSLHDSAPublicKey) : iSLHDSAPublicKey;
procedure SaveToStream(const aPubl: iSLHDSAPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSISLHDSAPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSISLHDSAPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a composite (hybrid classical + ML-KEM) public key, unencrypted. Reached indirectly through tDSICompositeMLKEMPublicKeyFormatList by application code.
function LoadFromStream(aStrm: TStream; const aKey : iCompositeMLKEMPublicKey) : iCompositeMLKEMPublicKey;
procedure SaveToStream(const aPubl: iCompositeMLKEMPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSICompositeMLKEMPublicKeyFormat
Composite ML-KEM public-key format registry used by an application to load/save a standalone hybrid KEM public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iCompositeMLKEMPublicKey) : iCompositeMLKEMPublicKey;
procedure SaveToStream(const aPubl: iCompositeMLKEMPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSICompositeMLKEMPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSICompositeMLKEMPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;
One concrete on-disk encoding for a composite (traditional + ML-DSA) public key, unencrypted. Reached indirectly through tDSICompositeMLDSAPublicKeyFormatList by application code.
function LoadFromStream(aStrm: TStream; const aKey : iCompositeMLDSAPublicKey) : iCompositeMLDSAPublicKey;
procedure SaveToStream(const aPubl: iCompositeMLDSAPublicKey; aStrm: TStream);
inherits from tCustomDSIKeyFormatList
implements iDSICompositeMLDSAPublicKeyFormat
Composite ML-DSA public-key format registry used by an application to load/save a standalone composite signature public key file without hard-coding its encoding.
function LoadFromStream(aStrm: TStream; const aKey : iCompositeMLDSAPublicKey) : iCompositeMLDSAPublicKey;
procedure SaveToStream(const aPubl: iCompositeMLDSAPublicKey; aStrm: TStream); overload;
property EnabledFormats[aIndex: Integer]: iDSICompositeMLDSAPublicKeyFormat read GetEnabledFormats;
inherits from tCustomDSIKeyFormat
implements iDSICompositeMLDSAPublicKeyFormat
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override;