Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.Pkcs8

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

classeDSIPkcs8

inherits from eDSIError

PKCS#8 branch of the DSI exception hierarchy - see eDSIError in StreamSec.DSI.ArithTypes.

(no public members)

classeDSIPkcs8MissingKDF

inherits from eDSIPkcs8

A password-based key derivation function the key needs is not registered. stKDF only declares the gPBKDF1/gPBKDF2 hooks; unit stPkcs5 fills them in.

(no public members)

classeDSIPkcs8NoPassword

inherits from eDSIPkcs8

An encrypted PKCS#8 key was read or written without a password.

(no public members)

classeDSIPkcs8Algorithm

inherits from eDSIPkcs8

The named encryption / PRF algorithm is unknown here, or its implementing unit is not linked into the application.

(no public members)

classeDSIPkcs8Encoding

inherits from eDSIPkcs8

A PKCS#8 field or parameter is out of range, or the encryption step itself failed.

(no public members)

interfaceiEncryptionAlgorithmIdentifier

(no public members)

interfaceiPBES2Params

(no public members)

interfaceiValidationParms

(no public members)

interfaceiAttrValue

(no public members)

interfaceiPkcs8EncryptionAlgorihms

(no public members)

interfaceiPkcs8PBES2EncAlgorithms

(no public members)

interfaceiPkcs8PBES2KDFAlgorithms

(no public members)

interfaceiPkcs8PrivateKeyAlgorithms

(no public members)

interfaceiPrivateKey

(no public members)

classtSetOfAttrValue

inherits from tASN1CustomOFStruct

(no public members)

classtSetOfAttrValueInformationObject

inherits from tASN1InformationObject

procedure SetField(const aName: string; aField: iASN1Base); override; function GetField(const aName: string): iASN1Base; override; function GetFieldClass(const aField: iASN1Base): tASN1StructClass; override; procedure Update(const aField: iASN1Base); override;

interfaceiAttribute

inherits from iASN1CustomStruct

function get_typeId: ObjectIdentifier; function get_value(aIndex: Integer): iAttrValue; function get_valueCount: Integer; function get_valueUnique(aIndex: tAttrValueEnum): iAttrValue; procedure set_typeId(const aValue: ObjectIdentifier); property typeId: ObjectIdentifier read get_typeId write set_typeId; property valueCount: Integer read get_valueCount; property value[aIndex: Integer]: iAttrValue read get_value; property valueUnique[aIndex: tAttrValueEnum]: iAttrValue read get_valueUnique;

classtAttribute

inherits from tASN1CustomStruct

implements iAttribute

property typeId: ObjectIdentifier read get_typeId write set_typeId; property valueCount: Integer read get_valueCount; property value[aIndex: Integer]: iAttrValue read get_value; property valueUnique[aIndex: tAttrValueEnum]: iAttrValue read get_valueUnique;

interfaceiAttributes

inherits from iASN1CustomStruct

function get_Items(aIndex: Integer): iAttribute; function get_UniqueItems(aIndex: tAttrValueEnum): iAttrValue; property Items[aIndex: Integer]: iAttribute read get_Items; property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;

classtAttributes

inherits from tASN1CustomOFStruct

implements iAttributes

property Items[aIndex: Integer]: iAttribute read get_Items; property UniqueItems[aIndex: tAttrValueEnum]: iAttrValue read get_UniqueItems; default;

interfaceiDomainParameters

inherits from iASN1CustomStruct

function get_g: iASN1Integer; function get_j: iASN1Integer; function get_p: iASN1Integer; function get_q: iASN1Integer; function get_validationParms: iValidationParms; property p: iASN1Integer read get_p; property g: iASN1Integer read get_g; property q: iASN1Integer read get_q; property j: iASN1Integer read get_j; property validationParms: iValidationParms read get_validationParms;

classtDomainParameters

inherits from tASN1CustomStruct

implements iDomainParameters

property p: iASN1Integer read get_p; property g: iASN1Integer read get_g; property q: iASN1Integer read get_q; property j: iASN1Integer read get_j; property validationParms: iValidationParms read get_validationParms;

interfaceiDssParams

inherits from iASN1CustomStruct

function get_g: iASN1Integer; function get_p: iASN1Integer; function get_q: iASN1Integer; property p: iASN1Integer read get_p; property q: iASN1Integer read get_q; property g: iASN1Integer read get_g;

classtDssParams

inherits from tASN1CustomStruct

implements iDssParams

property p: iASN1Integer read get_p; property q: iASN1Integer read get_q; property g: iASN1Integer read get_g;

interfaceiPrivateKeyInfo

(no public members)

interfaceiEncryptedPrivateKeyInfo

inherits from iASN1CustomStruct

function get_encryptedData: iASN1OctetString; function get_encryptionAlgorithm: iEncryptionAlgorithmIdentifier; function DecryptPrivateKeyInfo(const aPwd: iSecretKey): iPrivateKeyInfo; procedure EncryptPrivateKeyInfo(const aPwd: iSecretKey; const aKey: iPrivateKeyInfo); function SetupPBES2KDF(const aSalt: tBytes): Boolean; property encryptionAlgorithm: iEncryptionAlgorithmIdentifier read get_encryptionAlgorithm; property encryptedData: iASN1OctetString read get_encryptedData;

classtEncryptedPrivateKeyInfo

inherits from tASN1CustomStruct

implements iEncryptedPrivateKeyInfo

function DecryptPrivateKeyInfo(const aPwd: iSecretKey): iPrivateKeyInfo; virtual;
Delegates to InternalDecrypt, passing 1 argument(s), and returns its result.
procedure EncryptPrivateKeyInfo(const aPwd: iSecretKey; const aKey: iPrivateKeyInfo); virtual; function SetupPBES2KDF(const aSalt: tBytes): Boolean; property encryptionAlgorithm: iEncryptionAlgorithmIdentifier read get_encryptionAlgorithm;
function SaveToStream(const aStream: tStream; aFormat: Byte) : Int64; override;
property encryptedData: iASN1OctetString read get_encryptedData;

interfaceiEncryptionAlgorithmIdentifier

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; function get_parameters: iPkcs8EncryptionAlgorihms; procedure set_algorithm(const aValue: ObjectIdentifier); procedure GenerateRandomParams; function MakeCipher(const aPassword: iSecretKey): iCipher; property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8EncryptionAlgorihms read get_parameters;

classtEncryptionAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iEncryptionAlgorithmIdentifier

procedure GenerateRandomParams; function MakeCipher(const aPassword: iSecretKey): iCipher; property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8EncryptionAlgorihms read get_parameters;

interfaceiKeyUsageAttribute

inherits from iASN1CustomStruct

function get_digestAlgorithm: ObjectIdentifier; function get_mgfHashAlgorithm: ObjectIdentifier; procedure set_digestAlgorithm(const aValue: ObjectIdentifier); procedure set_mgfHashAlgorithm(const aValue: ObjectIdentifier); property digestAlgorithm: ObjectIdentifier read get_digestAlgorithm write set_digestAlgorithm; property mgfHashAlgorithm: ObjectIdentifier read get_mgfHashAlgorithm write set_mgfHashAlgorithm;

classtKeyUsageAttribute

inherits from tASN1CustomStruct

implements iKeyUsageAttribute

property digestAlgorithm: ObjectIdentifier read get_digestAlgorithm write set_digestAlgorithm; property mgfHashAlgorithm: ObjectIdentifier read get_mgfHashAlgorithm write set_mgfHashAlgorithm;

interfaceiPBEParameter

inherits from iASN1CustomStruct

function get_iterationCount: iASN1Integer; function get_salt: iASN1OctetString; property salt: iASN1OctetString read get_salt; property iterationCount: iASN1Integer read get_iterationCount;

classtPBEParameter

inherits from tASN1CustomStruct

implements iPBEParameter

property salt: iASN1OctetString read get_salt; property iterationCount: iASN1Integer read get_iterationCount;

interfaceiPBES2EncAlgorithmIdentifier

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; function get_parameters: iPkcs8PBES2EncAlgorithms; procedure set_algorithm(const aValue: ObjectIdentifier); property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PBES2EncAlgorithms read get_parameters;

classtPBES2EncAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iPBES2EncAlgorithmIdentifier

property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PBES2EncAlgorithms read get_parameters;

interfaceiPBES2KDFAlgorithmIdentifier

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; function get_parameters: iPkcs8PBES2KDFAlgorithms; procedure set_algorithm(const aValue: ObjectIdentifier); property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PBES2KDFAlgorithms read get_parameters;

classtPBES2KDFAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iPBES2KDFAlgorithmIdentifier

property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PBES2KDFAlgorithms read get_parameters;

interfaceiPBES2Params

inherits from iASN1CustomStruct

function get_encryptionScheme: iPBES2EncAlgorithmIdentifier; function get_keyDerivationFunc: iPBES2KDFAlgorithmIdentifier; function MakeCipher(aPassword: iSecretKey): iCipher; property keyDerivationFunc: iPBES2KDFAlgorithmIdentifier read get_keyDerivationFunc; property encryptionScheme: iPBES2EncAlgorithmIdentifier read get_encryptionScheme;

classtPBES2Params

inherits from tASN1CustomStruct

implements iPBES2Params

property keyDerivationFunc: iPBES2KDFAlgorithmIdentifier read get_keyDerivationFunc; property encryptionScheme: iPBES2EncAlgorithmIdentifier read get_encryptionScheme;

interfaceiPBKDF2PRF

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; procedure set_algorithm(const aValue: ObjectIdentifier); function GetHashClass: tHashClass; procedure SetHashAlgorithm(aHA: tHashAlgorithm); property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;

classtPBKDF2PRF

inherits from tASN1CustomStruct

implements iPBKDF2PRF

property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;

interfaceiPBKDF2Params

inherits from iASN1CustomStruct

function get_iterationCount: iASN1Integer; function get_keyLength: iASN1Integer; function get_salt: iASN1OctetString; function get_prf: iPBKDF2PRF; property salt: iASN1OctetString read get_salt; property iterationCount: iASN1Integer read get_iterationCount; property keyLength: iASN1Integer read get_keyLength; property prf: iPBKDF2PRF read get_prf;

classtPBKDF2Params

inherits from tASN1CustomStruct

implements iPBKDF2Params

property salt: iASN1OctetString read get_salt; property iterationCount: iASN1Integer read get_iterationCount; property keyLength: iASN1Integer read get_keyLength; property prf: iPBKDF2PRF read get_prf;

interfaceiScryptParams

inherits from iASN1CustomStruct

RFC 7914 scrypt-params ::= SEQUENCE {
salt OCTET STRING,
costParameter INTEGER (1..MAX), -- N
blockSize INTEGER (1..MAX), -- r
parallelizationParameter INTEGER (1..MAX), -- p
keyLength INTEGER (1..MAX) OPTIONAL

function get_salt: iASN1OctetString; function get_costParameter: iASN1Integer; function get_blockSize: iASN1Integer; function get_parallelizationParameter: iASN1Integer; function get_keyLength: iASN1Integer; property salt: iASN1OctetString read get_salt; property costParameter: iASN1Integer read get_costParameter; property blockSize: iASN1Integer read get_blockSize; property parallelizationParameter: iASN1Integer read get_parallelizationParameter; property keyLength: iASN1Integer read get_keyLength;

classtScryptParams

inherits from tASN1CustomStruct

implements iScryptParams

property salt: iASN1OctetString read get_salt; property costParameter: iASN1Integer read get_costParameter; property blockSize: iASN1Integer read get_blockSize; property parallelizationParameter: iASN1Integer read get_parallelizationParameter; property keyLength: iASN1Integer read get_keyLength;

interfaceiPrivateKeyAlgorithmIdentifier

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; function get_parameters: iPkcs8PrivateKeyAlgorithms; procedure set_algorithm(const aValue: ObjectIdentifier); property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PrivateKeyAlgorithms read get_parameters;

classtPrivateKeyAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iPrivateKeyAlgorithmIdentifier

property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs8PrivateKeyAlgorithms read get_parameters;

interfaceiPrivateKeyInfo

inherits from iASN1CustomStruct

function get_attributes: iAttributes; function get_privateKey: iPrivateKey; function get_privateKeyAlgorithm: iPrivateKeyAlgorithmIdentifier; function get_version: tVersion; function get_versionAsInteger: Integer; function get_publicKey: iASN1Base; procedure set_version(const aValue: tVersion); procedure set_versionAsInteger(const aValue: Integer); function get_FriendlyName: string; function get_LocalKeyID: OctetString; procedure set_FriendlyName(const aValue: string); procedure set_LocalKeyID(const aValue: OctetString); procedure AssignKeyUsageAttribute(const aSource: iUnknown; aOverride: Boolean = True); property version: tVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property privateKeyAlgorithm: iPrivateKeyAlgorithmIdentifier read get_privateKeyAlgorithm; property privateKey: iPrivateKey read get_privateKey; property attributes: iAttributes read get_attributes; property publicKey: iASN1Base read get_publicKey; property FriendlyName: string read get_FriendlyName write set_FriendlyName; property LocalKeyId: OctetString read get_LocalKeyId write set_LocalKeyId;

classtPrivateKeyInfo

procedure AssignKeyUsageAttribute(const aSource: iUnknown; aOverride: Boolean = True); property version: tVersion read get_version write set_version;
function SaveToStream(const aStream: tStream; aFormat: Byte) : Int64; override;
property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property privateKeyAlgorithm: iPrivateKeyAlgorithmIdentifier read get_privateKeyAlgorithm; property privateKey: iPrivateKey read get_privateKey; property attributes: iAttributes read get_attributes; property publicKey: iASN1Base read get_publicKey;

interfaceiRC2CBCParameter

inherits from iASN1CustomStruct

function get_iv: iASN1OctetString; function get_rc2ParameterVersion: iASN1Integer; property rc2ParameterVersion: iASN1Integer read get_rc2ParameterVersion; property iv: iASN1OctetString read get_iv;

classtRC2CBCParameter

inherits from tASN1CustomStruct

implements iRC2CBCParameter

property rc2ParameterVersion: iASN1Integer read get_rc2ParameterVersion; property iv: iASN1OctetString read get_iv;

interfaceiValidationParms

inherits from iASN1CustomStruct

function get_pgenCounter: iASN1Integer; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property pgenCounter: iASN1Integer read get_pgenCounter;

classtValidationParms

inherits from tASN1CustomStruct

implements iValidationParms

property seed: iASN1OctetString read get_seed; property pgenCounter: iASN1Integer read get_pgenCounter;

interfaceiAttrValue

inherits from iASN1CustomInstance

function get_AsAtKeyUsage: iKeyUsageAttribute; function get_AsPkcs9AtFriendlyName: string; function get_AsPkcs9AtLocalKeyId: iASN1OctetString; function get_AsCeKeyUsage: tKeyUsage; function get_Choice: tAttrValueEnum; procedure set_AsPkcs9AtFriendlyName(const aValue: string); procedure set_AsCeKeyUsage(const Value: tKeyUsage); procedure set_Choice(const aValue: tAttrValueEnum); property Choice: tAttrValueEnum read get_Choice write set_Choice; property AsPkcs9AtFriendlyName: string read get_AsPkcs9AtFriendlyName write set_AsPkcs9AtFriendlyName; property AsPkcs9AtLocalKeyId: iASN1OctetString read get_AsPkcs9AtLocalKeyId; property AsAtKeyUsage: iKeyUsageAttribute read get_AsAtKeyUsage; property AsCeKeyUsage: tKeyUsage read get_AsCeKeyUsage write set_AsCeKeyUsage;

classtAttrValueInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtAttrValue

property Choice: tAttrValueEnum read get_Choice write set_Choice; property AsPkcs9AtFriendlyName: string read get_AsPkcs9AtFriendlyName write set_AsPkcs9AtFriendlyName; property AsPkcs9AtLocalKeyId: iASN1OctetString read get_AsPkcs9AtLocalKeyId; property AsAtKeyUsage: iKeyUsageAttribute read get_AsAtKeyUsage implements iKeyUsageAttribute; property AsCeKeyUsage: tKeyUsage read get_AsCeKeyUsage write set_AsCeKeyUsage;

interfaceiPkcs8EncryptionAlgorihms

inherits from iASN1CustomInstance

function get_AsPbes2: iPBES2Params; function get_AsPbeWithMd2AndDesCbc: iPBEParameter; function get_AsPbeWithMd2AndRc2Cbc: iPBEParameter; function get_AsPbeWithMd5AndDesCbc: iPBEParameter; function get_AsPbeWithMd5AndRc2Cbc: iPBEParameter; function get_AsPbeWithSha1AndDesCbc: iPBEParameter; function get_AsPbeWithSha1AndRc2Cbc: iPBEParameter; function get_Choice: tPkcs8EncryptionAlgorihmsEnum; procedure set_Choice(const aValue: tPkcs8EncryptionAlgorihmsEnum); property Choice: tPkcs8EncryptionAlgorihmsEnum read get_Choice write set_Choice; property AsPbeWithMd2AndDesCbc: iPBEParameter read get_AsPbeWithMd2AndDesCbc; property AsPbeWithMd2AndRc2Cbc: iPBEParameter read get_AsPbeWithMd2AndRc2Cbc; property AsPbeWithMd5AndDesCbc: iPBEParameter read get_AsPbeWithMd5AndDesCbc; property AsPbeWithMd5AndRc2Cbc: iPBEParameter read get_AsPbeWithMd5AndRc2Cbc; property AsPbeWithSha1AndDesCbc: iPBEParameter read get_AsPbeWithSha1AndDesCbc; property AsPbeWithSha1AndRc2Cbc: iPBEParameter read get_AsPbeWithSha1AndRc2Cbc; property AsPbes2: iPBES2Params read get_AsPbes2;

classtPkcs8EncryptionAlgorihmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtPkcs8EncryptionAlgorihms

property Choice: tPkcs8EncryptionAlgorihmsEnum read get_Choice write set_Choice; property AsPbeWithMd2AndDesCbc: iPBEParameter read get_AsPbeWithMd2AndDesCbc implements iPBEParameter; property AsPbeWithMd2AndRc2Cbc: iPBEParameter read get_AsPbeWithMd2AndRc2Cbc; property AsPbeWithMd5AndDesCbc: iPBEParameter read get_AsPbeWithMd5AndDesCbc; property AsPbeWithMd5AndRc2Cbc: iPBEParameter read get_AsPbeWithMd5AndRc2Cbc; property AsPbeWithSha1AndDesCbc: iPBEParameter read get_AsPbeWithSha1AndDesCbc; property AsPbeWithSha1AndRc2Cbc: iPBEParameter read get_AsPbeWithSha1AndRc2Cbc; property AsPbes2: iPBES2Params read get_AsPbes2 implements iPBES2Params;

interfaceiPkcs8PBES2EncAlgorithms

inherits from iASN1CustomInstance

function get_AsAes128Cbc: iASN1OctetString; function get_AsAes192Cbc: iASN1OctetString; function get_AsAes256Cbc: iASN1OctetString; function get_AsDesCbc: iASN1OctetString; function get_AsDesEde3Cbc: iASN1OctetString; function get_AsRc2Cbc: iRC2CBCParameter; function get_Choice: tPkcs8PBES2EncAlgorithmsEnum; procedure set_Choice(const aValue: tPkcs8PBES2EncAlgorithmsEnum); property Choice: tPkcs8PBES2EncAlgorithmsEnum read get_Choice write set_Choice; property AsDesCbc: iASN1OctetString read get_AsDesCbc; property AsDesEde3Cbc: iASN1OctetString read get_AsDesEde3Cbc; property AsRc2Cbc: iRC2CBCParameter read get_AsRc2Cbc; property AsAes128Cbc: iASN1OctetString read get_AsAes128Cbc; property AsAes192Cbc: iASN1OctetString read get_AsAes192Cbc; property AsAes256Cbc: iASN1OctetString read get_AsAes256Cbc;

classtPkcs8PBES2EncAlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtPkcs8PBES2EncAlgorithms

property Choice: tPkcs8PBES2EncAlgorithmsEnum read get_Choice write set_Choice; property AsDesCbc: iASN1OctetString read get_AsDesCbc; property AsDesEde3Cbc: iASN1OctetString read get_AsDesEde3Cbc; property AsRc2Cbc: iRC2CBCParameter read get_AsRc2Cbc implements iRC2CBCParameter; property AsAes128Cbc: iASN1OctetString read get_AsAes128Cbc; property AsAes192Cbc: iASN1OctetString read get_AsAes192Cbc; property AsAes256Cbc: iASN1OctetString read get_AsAes256Cbc;

interfaceiPkcs8PBES2KDFAlgorithms

inherits from iASN1CustomInstance

function get_AsPbkdf2: iPBKDF2Params; function get_AsScrypt: iScryptParams; function get_Choice: tPkcs8PBES2KDFAlgorithmsEnum; procedure set_Choice(const aValue: tPkcs8PBES2KDFAlgorithmsEnum); property Choice: tPkcs8PBES2KDFAlgorithmsEnum read get_Choice write set_Choice; property AsPbkdf2: iPBKDF2Params read get_AsPbkdf2; property AsScrypt: iScryptParams read get_AsScrypt;

classtPkcs8PBES2KDFAlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtPkcs8PBES2KDFAlgorithms

property Choice: tPkcs8PBES2KDFAlgorithmsEnum read get_Choice write set_Choice; property AsPbkdf2: iPBKDF2Params read get_AsPbkdf2 implements iPBKDF2Params; property AsScrypt: iScryptParams read get_AsScrypt implements iScryptParams;

interfaceiECPrivateKeyRFC5915

inherits from iASN1CustomStruct

function get_parameters: ObjectIdentifier; function get_privateKey: iASN1OctetString; function get_publicKey: iASN1Base; function get_version: tECPKVersion; function get_versionAsInteger: Integer; procedure set_parameters(const aValue: ObjectIdentifier); procedure set_version(const aValue: tECPKVersion); procedure set_versionAsInteger(const aValue: Integer); property version: tECPKVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property privateKey: iASN1OctetString read get_PrivateKey; property parameters: ObjectIdentifier read get_parameters write set_parameters; property publicKey: iASN1Base read get_publicKey;

classtECPrivateKeyRFC5915

inherits from tASN1CustomStruct

implements iECPrivateKeyRFC5915

property version: tECPKVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property privateKey: iASN1OctetString read get_privateKey; property parameters: ObjectIdentifier read get_parameters write set_parameters; property publicKey: iASN1Base read get_publicKey;

interfaceiECPrivateKey

inherits from iASN1CustomChoice

function get_AsRfc5915: iECPrivateKeyRFC5915; function get_AsSt30: iASN1Integer; function get_Choice: tECPrivateKeyEnum; procedure set_Choice(const aValue: tECPrivateKeyEnum); property Choice: tECPrivateKeyEnum read get_Choice write set_Choice; property AsSt30: iASN1Integer read get_AsSt30; property AsRfc5915: iECPrivateKeyRFC5915 read get_AsRfc5915;

classtECPrivateKey

property Choice: tECPrivateKeyEnum read get_Choice write set_Choice; property AsSt30: iASN1Integer read get_AsSt30; property AsRfc5915: iECPrivateKeyRFC5915 read get_AsRfc5915 implements iECPrivateKeyRFC5915;

interfaceiBothMLDSA44PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLDSA44PrivateKey

inherits from tASN1CustomStruct

implements iBothMLDSA44PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiBothMLDSA65PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLDSA65PrivateKey

inherits from tASN1CustomStruct

implements iBothMLDSA65PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiBothMLDSA87PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLDSA87PrivateKey

inherits from tASN1CustomStruct

implements iBothMLDSA87PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiBothMLKEM1024PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLKEM1024PrivateKey

inherits from tASN1CustomStruct

implements iBothMLKEM1024PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiBothMLKEM768PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLKEM768PrivateKey

inherits from tASN1CustomStruct

implements iBothMLKEM768PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiBothMLKEM512PrivateKey

inherits from iASN1CustomStruct

function get_expandedKey: iASN1OctetString; function get_seed: iASN1OctetString; property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

classtBothMLKEM512PrivateKey

inherits from tASN1CustomStruct

implements iBothMLKEM512PrivateKey

property seed: iASN1OctetString read get_seed; property expandedKey: iASN1OctetString read get_expandedKey;

interfaceiMLDSA44PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLDSA44PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA44PrivateKey read get_AsBoth;

classtMLDSA44PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA44PrivateKey read get_AsBoth implements iBothMLDSA44PrivateKey;

interfaceiMLDSA65PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLDSA65PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA65PrivateKey read get_AsBoth;

classtMLDSA65PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA65PrivateKey read get_AsBoth implements iBothMLDSA65PrivateKey;

interfaceiMLDSA87PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLDSA87PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA87PrivateKey read get_AsBoth;

classtMLDSA87PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLDSA87PrivateKey read get_AsBoth implements iBothMLDSA87PrivateKey;

interfaceiMLKEM1024PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLKEM1024PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM1024PrivateKey read get_AsBoth;

classtMLKEM1024PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM1024PrivateKey read get_AsBoth implements iBothMLKEM1024PrivateKey;

interfaceiMLKEM512PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLKEM512PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM512PrivateKey read get_AsBoth;

classtMLKEM512PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM512PrivateKey read get_AsBoth implements iBothMLKEM512PrivateKey;

interfaceiMLKEM768PrivateKey

inherits from iASN1CustomChoice

function get_AsBoth: iBothMLKEM768PrivateKey; function get_AsExpandedKey: iASN1OctetString; function get_AsSeed: iASN1OctetString; function get_Choice: tMLPrivateKeyEnum; procedure set_Choice(const aValue: tMLPrivateKeyEnum); property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM768PrivateKey read get_AsBoth;

classtMLKEM768PrivateKey

property Choice: tMLPrivateKeyEnum read get_Choice write set_Choice; property AsSeed: iASN1OctetString read get_AsSeed; property AsExpandedKey: iASN1OctetString read get_AsExpandedKey; property AsBoth: iBothMLKEM768PrivateKey read get_AsBoth implements iBothMLKEM768PrivateKey;

interfaceiPkcs8PrivateKeyAlgorithms

inherits from iASN1CustomInstance

function get_AsDhpublicnumber: iDomainParameters; function get_AsDsa: iDssParams; function get_AsEcnr: ObjectIdentifier; function get_AsEcPublicKey: ObjectIdentifier; function get_AsNr: iDssParams; function get_AsRsaEncryption: iASN1Base; function get_AsRsaesOaep: iRSAESOAEPParams; function get_AsRsassaPss: iRSASSAPSSParams; function get_AsRw: iRSASSAPSSParams; function get_AsMLKEM512: iASN1Base; function get_AsMLKEM768: iASN1Base; function get_AsMLKEM1024: iASN1Base; function get_AsMLDSA44: iASN1Base; function get_AsMLDSA65: iASN1Base; function get_AsMLDSA87: iASN1Base; function get_AsEd25519: iASN1Base; function get_AsEd448: iASN1Base; function AsCompositeMLDSA(aAlg: tCompositeMLDSAAlg): iASN1Base;
generic accessor for the 16 composite ML-DSA choices (parameters absent)
function AsCompositeMLKEM(aAlg: tCompositeMLKEMAlg): iASN1Base;
generic accessor for the 12 composite ML-KEM choices (parameters absent)
function get_Choice: tPrivateKeyEnum; procedure set_AsEcnr(const aValue: ObjectIdentifier); procedure set_AsEcPublicKey(const aValue: ObjectIdentifier); procedure set_Choice(const aValue: tPrivateKeyEnum); property Choice: tPrivateKeyEnum read get_Choice write set_Choice; property AsDhpublicnumber: iDomainParameters read get_AsDhpublicnumber; property AsRsaEncryption: iASN1Base read get_AsRsaEncryption; property AsDsa: iDssParams read get_AsDsa; property AsEcPublicKey: ObjectIdentifier read get_AsEcPublicKey write set_AsEcPublicKey; property AsNr: iDssParams read get_AsNr; property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep; property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss; property AsRw: iRSASSAPSSParams read get_AsRw; property AsEcnr: ObjectIdentifier read get_AsEcnr write set_AsEcnr; property AsMLKEM512: iASN1Base read get_AsMLKEM512; property AsMLKEM768: iASN1Base read get_AsMLKEM768; property AsMLKEM1024: iASN1Base read get_AsMLKEM1024; property AsMLDSA44: iASN1Base read get_AsMLDSA44; property AsMLDSA65: iASN1Base read get_AsMLDSA65; property AsMLDSA87: iASN1Base read get_AsMLDSA87; property AsEd25519: iASN1Base read get_AsEd25519; property AsEd448: iASN1Base read get_AsEd448;

classtPkcs8PrivateKeyAlgorithms

property Choice: tPrivateKeyEnum read get_Choice write set_Choice; property AsDhpublicnumber: iDomainParameters read get_AsDhpublicnumber implements iDomainParameters; property AsRsaEncryption: iASN1Base read get_AsRsaEncryption; property AsDsa: iDssParams read get_AsDsa implements iDssParams; property AsEcPublicKey: ObjectIdentifier read get_AsEcPublicKey write set_AsEcPublicKey; property AsNr: iDssParams read get_AsNr; property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep implements iRSAESOAEPParams; property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss implements iRSASSAPSSParams; property AsRw: iRSASSAPSSParams read get_AsRw; property AsEcnr: ObjectIdentifier read get_AsEcnr write set_AsEcnr; property AsMLKEM512: iASN1Base read get_AsMLKEM512; property AsMLKEM768: iASN1Base read get_AsMLKEM768; property AsMLKEM1024: iASN1Base read get_AsMLKEM1024; property AsMLDSA44: iASN1Base read get_AsMLDSA44; property AsMLDSA65: iASN1Base read get_AsMLDSA65; property AsMLDSA87: iASN1Base read get_AsMLDSA87; property AsEd25519: iASN1Base read get_AsEd25519; property AsEd448: iASN1Base read get_AsEd448;

interfaceiPrivateKey

inherits from iASN1CustomInstance

function get_AsDhpublicnumber: iEncapsulatedInteger; function get_AsDsa: iEncapsulatedInteger; function get_AsEcnr: iECPrivateKey; function get_AsEcPublicKey: iECPrivateKey; function get_AsNr: iEncapsulatedInteger; function get_AsRsaEncryption: iRSAPrivateKey; function get_AsRsaesOaep: iRSAPrivateKey; function get_AsRsassaPss: iRSAPrivateKey; function get_AsRw: iRSAPrivateKey; function get_AsMLKEM512: iMLKEM512PrivateKey; function get_AsMLKEM768: iMLKEM768PrivateKey; function get_AsMLKEM1024: iMLKEM1024PrivateKey; function get_AsMLDSA44: iMLDSA44PrivateKey; function get_AsMLDSA65: iMLDSA65PrivateKey; function get_AsMLDSA87: iMLDSA87PrivateKey; function get_AsEd25519: iASN1OctetString; function get_AsEd448: iASN1OctetString; function AsCompositeMLDSA(aAlg: tCompositeMLDSAAlg): iASN1OctetString;
generic accessor for the 16 composite ML-DSA choices (raw octets)
function AsCompositeMLKEM(aAlg: tCompositeMLKEMAlg): iASN1OctetString; function AsSLHDSA(aAlg: tSLHDSAAlg): iASN1OctetString; function get_Choice: tPrivateKeyEnum; procedure set_Choice(const aValue: tPrivateKeyEnum); property Choice: tPrivateKeyEnum read get_Choice write set_Choice; property AsRsaEncryption: iRSAPrivateKey read get_AsRsaEncryption; property AsDhpublicnumber: iEncapsulatedInteger read get_AsDhpublicnumber; property AsDsa: iEncapsulatedInteger read get_AsDsa; property AsEcPublicKey: iECPrivateKey read get_AsEcPublicKey; property AsRsassaPss: iRSAPrivateKey read get_AsRsassaPss; property AsRsaesOaep: iRSAPrivateKey read get_AsRsaesOaep; property AsRw: iRSAPrivateKey read get_AsRw; property AsNr: iEncapsulatedInteger read get_AsNr; property AsEcnr: iECPrivateKey read get_AsEcnr; property AsMLKEM512: iMLKEM512PrivateKey read get_AsMLKEM512; property AsMLKEM768: iMLKEM768PrivateKey read get_AsMLKEM768; property AsMLKEM1024: iMLKEM1024PrivateKey read get_AsMLKEM1024; property AsMLDSA44: iMLDSA44PrivateKey read get_AsMLDSA44; property AsMLDSA65: iMLDSA65PrivateKey read get_AsMLDSA65; property AsMLDSA87: iMLDSA87PrivateKey read get_AsMLDSA87; property AsEd25519: iASN1OctetString read get_AsEd25519; property AsEd448: iASN1OctetString read get_AsEd448;

classtPrivateKeyInformationObject

inherits from tASN1TypeIdentifier

procedure SetField(const aName: string; aField: iASN1Base); override; function GetField(const aName: string): iASN1Base; override; function GetFieldClass(const aField: iASN1Base): tASN1StructClass; override; procedure Update(const aField: iASN1Base); override;

classtPrivateKey

property Choice: tPrivateKeyEnum read get_Choice write set_Choice; property AsRsaEncryption: iRSAPrivateKey read get_AsRsaEncryption implements iRSAPrivateKey; property AsDhpublicnumber: iEncapsulatedInteger read get_AsDhpublicnumber implements iEncapsulatedInteger; property AsDsa: iEncapsulatedInteger read get_AsDsa; property AsEcPublicKey: iECPrivateKey read get_AsEcPublicKey; property AsRsassaPss: iRSAPrivateKey read get_AsRsassaPss; property AsRsaesOaep: iRSAPrivateKey read get_AsRsaesOaep; property AsRw: iRSAPrivateKey read get_AsRw; property AsNr: iEncapsulatedInteger read get_AsNr; property AsEcnr: iECPrivateKey read get_AsEcnr;

Types (enumerations, sets, aliases)

enumtVersion

  tVersion = (V1,V2);

enumtAttrValueEnum

  tAttrValueEnum = (avUndefined,
                    avPkcs9AtFriendlyName,
                    avPkcs9AtLocalKeyId,
                    avAtKeyUsage);

enumtPkcs8EncryptionAlgorihmsEnum

  tPkcs8EncryptionAlgorihmsEnum = (peUndefined,
                                   pePbeWithMd2AndDesCbc,
                                   pePbeWithMd2AndRc2Cbc,
                                   pePbeWithMd5AndDesCbc,
                                   pePbeWithMd5AndRc2Cbc,
                                   pePbeWithSha1AndDesCbc,
                                   pePbeWithSha1AndRc2Cbc,
                                   pePbes2);

enumtPkcs8PBES2EncAlgorithmsEnum

  tPkcs8PBES2EncAlgorithmsEnum = (ppUndefined,
                                  ppDesCbc,
                                  ppDesEde3Cbc,
                                  ppRc2Cbc,
                                  ppAes128Cbc,
                                  ppAes192Cbc,
                                  ppAes256Cbc);

enumtPkcs8PBES2KDFAlgorithmsEnum

  tPkcs8PBES2KDFAlgorithmsEnum = (ppkUndefined,
                                  ppkPbkdf2,
                                  ppkScrypt);

typetPrivateKeyEnum

  tPrivateKeyEnum = (pkUndefined,
                     pkRsaEncryption,
                     pkDhpublicnumber,
                     pkDsa,
                     pkEcPublicKey,
                     pkRsassaPss,
                     pkRsaesOaep,
                     pkRw,
                     pkNr,
                     pkEcnr,
                     pkMLKEM512,
                     pkMLKEM768,
                     pkMLKEM1024,
                     pkMLDSA44,
                     pkMLDSA65,
                     pkMLDSA87,
                     pkEd25519,
                     pkEd448,
                     { Composite ML-DSA (draft-ietf-lamps-pq-composite-sigs-19);
                       same order as tCompositeMLDSAAlg in PKTypes }
                     pkMLDSA44RSA2048PSS,
                     pkMLDSA44RSA2048PKCS15,
                     pkMLDSA44Ed25519,
                     pkMLDSA44ECDSAP256,
                     pkMLDSA65RSA3072PSS,
                     pkMLDSA65RSA3072PKCS15,
                     pkMLDSA65RSA4096PSS,
                     pkMLDSA65RSA4096PKCS15,
                     pkMLDSA65ECDSAP256,
                     pkMLDSA65ECDSAP384,
                     pkMLDSA65Ed25519,
                     pkMLDSA87ECDSAP384,
                     pkMLDSA87Ed448,
                     pkMLDSA87RSA3072PSS,
                     pkMLDSA87RSA4096PSS,
                     pkMLDSA87ECDSAP521,
                     { Composite ML-KEM (draft-ietf-lamps-pq-composite-kem-14);
                       same order as tCompositeMLKEMAlg in PKTypes }
                     pkMLKEM768RSA2048,
                     pkMLKEM768RSA3072,
                     pkMLKEM768RSA4096,
                     pkMLKEM768X25519,
                     pkMLKEM768ECDHP256,
                     pkMLKEM768ECDHP384,
                     pkMLKEM768ECDHBP256,
                     pkMLKEM1024RSA3072,
                     pkMLKEM1024ECDHP384,
                     pkMLKEM1024ECDHBP384,
                     pkMLKEM1024X448,
                     pkMLKEM1024ECDHP521,
                     { SLH-DSA (FIPS 205); same order as tSLHDSAAlg, OIDs .20-.31 }
                     pkSlhDsaSha2128s,
                     pkSlhDsaSha2128f,
                     pkSlhDsaSha2192s,
                     pkSlhDsaSha2192f,
                     pkSlhDsaSha2256s,
                     pkSlhDsaSha2256f,
                     pkSlhDsaShake128s,
                     pkSlhDsaShake128f,
                     pkSlhDsaShake192s,
                     pkSlhDsaShake192f,

typeiEncapsulatedInteger

  iEncapsulatedInteger = iASN1Integer;

typetEncapsulatedInteger

  tEncapsulatedInteger = tASN1LargeInteger;

enumtECPKVersion

  tECPKVersion = (EcPrivkeyVer1 = 1);

enumtECPrivateKeyEnum

  tECPrivateKeyEnum = (ekUndefined,
                       ekSt30,
                       ekRfc5915);

enumtMLPrivateKeyEnum

  tMLPrivateKeyEnum = (mdUndefined,
                       mdSeed,
                       mdExpandedKey,
                       mdBoth);

Routines