Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.Pkcs12

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

classeDSIPkcs12

inherits from eDSIError

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

(no public members)

classeDSIPkcs12MissingKDF

inherits from eDSIPkcs12

PBKDF2 is needed for a PBMAC1 integrity MAC but is not registered; unit stPkcs5 fills in the stKDF gPBKDF2 hook.

(no public members)

classeDSIPkcs12Algorithm

inherits from eDSIPkcs12

The named hash or key algorithm cannot be used where the caller asked for it.

(no public members)

classeDSIPkcs12Password

inherits from eDSIPkcs12

The supplied password does not open the PFX.

(no public members)

classtPKCS12KDF

inherits from tPBKDF

implements iPBKDF

constructor Create(aID: Byte); class function LegacyPaddingDiffers(aHashClass : tHashClass; aPasswordLen, aSaltLen : Integer): Boolean;
True when LegacyPadding derives other bytes than RFC 7292 B.2 does for a password and a salt of these lengths - when either is a whole, non-zero number of the hash's blocks.
procedure DeriveKey(aPassword, aSalt : iSecretKey; aIter, aDKLen : Integer); override; property LegacyPadding: Boolean read fLegacyPadding write fLegacyPadding;
False (the default) derives as RFC 7292 B.2 does. True gives a password or salt that is a whole number of blocks one block more, a copy of its first, as releases up to 4.1.3.359 did - for reading a PFX one of them wrote under such a password. Never set it to write.

interfaceiPKCS12EncryptionAlgorithmIdentifier

(no public members)

interfaceiCertTypes

(no public members)

interfaceiCRLTypes

(no public members)

interfaceiPKCS12AttrSet

(no public members)

interfaceiPKCS12BagSet

(no public members)

interfaceiPkcs12EncryptionAlgorihms

(no public members)

interfaceiSafeContents

(no public members)

interfaceiAuthenticatedSafe

inherits from iASN1CustomStruct

function get_Items(aIndex: Integer): iContentInfo; function get_UniqueItems(aIndex: tContentEnum): iContent; function ExtractSafeContents(aIndex : Integer; aPassword: iSecretKey) : iSafeContents; function ExtractAllSafeContents(aPassword: iSecretKey): iSafeContents; function ImposeSafeContents(aPassword : iSecretKey; aEncAlg : tPkcs12EncryptionAlgorihmsEnum; aIter : Integer; aSafeContents: iSafeContents) : Boolean; property Items[aIndex: Integer]: iContentInfo read get_Items; property UniqueItems[aIndex: tContentEnum]: iContent read get_UniqueItems; default;

classtAuthenticatedSafe

inherits from tASN1CustomOFStruct

implements iAuthenticatedSafe

function ExtractSafeContents(aIndex : Integer; aPassword: iSecretKey) : iSafeContents; function ExtractAllSafeContents(aPassword: iSecretKey): iSafeContents; function ImposeSafeContents(aPassword : iSecretKey; aEncAlg : tPkcs12EncryptionAlgorihmsEnum; aIter : Integer; aSafeContents: iSafeContents) : Boolean; property Items[aIndex: Integer]: iContentInfo read get_Items; property UniqueItems[aIndex: tContentEnum]: iContent read get_UniqueItems; default;

interfaceiCertBag

inherits from iASN1CustomStruct

function get_certId: ObjectIdentifier; function get_CertValue: iCertTypes; procedure set_certId(const aValue: ObjectIdentifier); property certId: ObjectIdentifier read get_certId write set_certId; property CertValue: iCertTypes read get_CertValue;

classtCertBag

inherits from tASN1CustomStruct

implements iCertBag

property certId: ObjectIdentifier read get_certId write set_certId; property CertValue: iCertTypes read get_CertValue;

interfaceiCRLBag

inherits from iASN1CustomStruct

function get_crlId: ObjectIdentifier; function get_crlValue: iCRLTypes; procedure set_crlId(const aValue: ObjectIdentifier); property crlId: ObjectIdentifier read get_crlId write set_crlId; property crlValue: iCRLTypes read get_crlValue;

classtCRLBag

inherits from tASN1CustomStruct

implements iCRLBag

property crlId: ObjectIdentifier read get_crlId write set_crlId; property crlValue: iCRLTypes read get_crlValue;

interfaceiDigestInfo

inherits from iASN1CustomStruct

function get_digest: iASN1OctetString; function get_digestAlgorithm: iDigestAlgorithmIdentifier; property digestAlgorithm: iDigestAlgorithmIdentifier read get_digestAlgorithm; property digest: iASN1OctetString read get_digest;

classtDigestInfo

inherits from tASN1CustomStruct

implements iDigestInfo

property digestAlgorithm: iDigestAlgorithmIdentifier read get_digestAlgorithm; property digest: iASN1OctetString read get_digest;

interfaceiMacData

inherits from iASN1CustomStruct

function get_iterations: iASN1Integer; function get_mac: iDigestInfo; function get_macSalt: iASN1OctetString; function Verify(const aData: tBytes; aPW: iSecretKey): Boolean; procedure Generate(const aData: tBytes; aPW: iSecretKey); property mac: iDigestInfo read get_mac; property macSalt: iASN1OctetString read get_macSalt; property iterations: iASN1Integer read get_iterations;

classtMacData

inherits from tASN1CustomStruct

implements iMacData

function Verify(const aData: tBytes; aPW: iSecretKey): Boolean; procedure Generate(const aData: tBytes; aPW: iSecretKey); property mac: iDigestInfo read get_mac; property macSalt: iASN1OctetString read get_macSalt; property iterations: iASN1Integer read get_iterations;

interfaceiPFX

inherits from iASN1CustomStruct

function get_authSafe: iContentInfo; function get_macData: iMacData; function get_version: tPFXVersion; function get_versionAsInteger: Integer; procedure set_version(const aValue: tPFXVersion); procedure set_versionAsInteger(const aValue: Integer); function ExtractAuthSafeContent(aPW: iSecretKey): iAuthenticatedSafe; overload; function ExtractAuthSafeContent(): iAuthenticatedSafe; overload; procedure ImposeAuthSafeContent(aPW : iSecretKey; aCompatibility: Boolean = False);
Writes the stored certificates and keys into the PFX, as version 3, and computes its MAC under aPW. aCompatibility False (the default) protects the certificates with PBES2 (PBKDF2 over HMAC-SHA-256, AES-256-CBC); True, with 40-bit RC2. The password's encoding is the caller's, made by the key object passed: see tDualSecretKey in stSecUtils.
property version: tPFXVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property authSafe: iContentInfo read get_authSafe; property macData: iMacData read get_macData;

interfaceiKeyAndCertStoreEx

inherits from iKeyAndCertStore

function StorePrivateKeyEx(const aPassword : iSecretKey; const aKey : iUnknown; const aAlgorithm : ObjectIdentifier; const aFriendlyName, aProviderName : UnicodeString; const aLocalKeyID : OctetString; aKeyUsage : tKeyUsage; aCompatibility: Boolean = False) : Boolean;

classtPFX

inherits from tASN1CustomStruct

implements iPFX, iKeyAndCertStore, iKeyAndCertStoreEx

function ExtractAuthSafeContent(aPW: iSecretKey): iAuthenticatedSafe; overload; function ExtractAuthSafeContent(): iAuthenticatedSafe; overload; procedure ImposeAuthSafeContent(aPW : iSecretKey; aCompatibility: Boolean = False); function StorePrivateKey(const aPassword : iSecretKey; const aKey : IInterface; const aAlgorithm : ObjectIdentifier; const aFriendlyName : UnicodeString; const aProviderName : UnicodeString; const aLocalKeyID : OctetString; aCompatibility: Boolean = False) : Boolean;
Delegates to StorePrivateKeyEx, passing 8 argument(s), and returns its result.
function StorePrivateKeyEx(const aPassword : iSecretKey; const aKey : iUnknown; const aAlgorithm : ObjectIdentifier; const aFriendlyName, aProviderName : UnicodeString; const aLocalKeyID : OctetString; aKeyUsage : tKeyUsage; aCompatibility: Boolean = False) : Boolean; function StoreCertificate(const aPassword : iSecretKey; const aCert : IInterface; const aFriendlyName: UnicodeString; const aLocalKeyID : OctetString) : Boolean; function StoreCRL(const aPassword : iSecretKey; const aCRL : IInterface) : Boolean; function CopyTo(const aDest : iKeyAndCertStore; const aSrcPwd: iSecretKey; const aDstPwd: iSecretKey) : Boolean; property version: tPFXVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property authSafe: iContentInfo read get_authSafe; property macData: iMacData read get_macData;

interfaceiPKCS12Attribute

inherits from iASN1CustomStruct

function get_attrId: ObjectIdentifier; function get_attrValues(aIndex: Integer): iPKCS12AttrSet; function get_attrValuesCount: Integer; function get_attrValuesUnique(aIndex: tPKCS12AttrSetEnum): iPKCS12AttrSet; procedure set_attrId(const aValue: ObjectIdentifier); property attrId: ObjectIdentifier read get_attrId write set_attrId; property attrValuesCount: Integer read get_attrValuesCount; property attrValues[aIndex: Integer]: iPKCS12AttrSet read get_attrValues; property attrValuesUnique[aIndex: tPKCS12AttrSetEnum]: iPKCS12AttrSet read get_attrValuesUnique;

classtPKCS12Attribute

inherits from tASN1CustomStruct

implements iPKCS12Attribute

property attrId: ObjectIdentifier read get_attrId write set_attrId; property attrValuesCount: Integer read get_attrValuesCount; property attrValues[aIndex: Integer]: iPKCS12AttrSet read get_attrValues; property attrValuesUnique[aIndex: tPKCS12AttrSetEnum]: iPKCS12AttrSet read get_attrValuesUnique;

classtSetOfPKCS12Attribute

inherits from tASN1CustomOFStruct

(no public members)

interfaceiPKCS12EncryptedPrivateKeyInfo

inherits from iEncryptedPrivateKeyInfo

function get_pkcs12EncryptionAlgorithm: iPKCS12EncryptionAlgorithmIdentifier; property pkcs12EncryptionAlgorithm: iPKCS12EncryptionAlgorithmIdentifier read get_pkcs12EncryptionAlgorithm;

classtPKCS12EncryptedPrivateKeyInfo

inherits from tEncryptedPrivateKeyInfo

implements iPKCS12EncryptedPrivateKeyInfo

function DecryptPrivateKeyInfo(const aPwd: iSecretKey): iPrivateKeyInfo; override; procedure EncryptPrivateKeyInfo(const aPwd: iSecretKey; const aKey: iPrivateKeyInfo); override; property pkcs12EncryptionAlgorithm: iPKCS12EncryptionAlgorithmIdentifier read get_pkcs12EncryptionAlgorithm;

interfaceiPKCS12EncryptionAlgorithmIdentifier

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier; function get_parameters: iPkcs12EncryptionAlgorihms; procedure set_algorithm(const aValue: ObjectIdentifier); function MakeCipher(aPassword : iSecretKey; aUseKey2 : Boolean = False; aLegacyPadding: Boolean = False): iCipher;
aLegacyPadding derives the key as releases up to 4.1.3.359 did (see tPKCS12KDF.LegacyPadding), for reading only; the result is nil when that would give the same key as RFC 7292, or no PKCS#12 key derivation is involved.
property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs12EncryptionAlgorihms read get_parameters;

classtPKCS12EncryptionAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iPKCS12EncryptionAlgorithmIdentifier

function MakeCipher(aPassword : iSecretKey; aUseKey2 : Boolean = False; aLegacyPadding: Boolean = False): iCipher; property algorithm: ObjectIdentifier read get_algorithm write set_algorithm; property parameters: iPkcs12EncryptionAlgorihms read get_parameters;

interfaceiSafeBag

inherits from iASN1CustomStruct

function get_bagAttributes(aIndex: Integer): iPKCS12Attribute; function get_bagAttributesCount: Integer; function get_bagAttributesUnique(aIndex: tPKCS12AttrSetEnum): iPKCS12AttrSet; function get_bagId: ObjectIdentifier; function get_bagValue: iPKCS12BagSet; procedure set_bagId(const aValue: ObjectIdentifier); property bagId: ObjectIdentifier read get_bagId write set_bagId; property bagValue: iPKCS12BagSet read get_bagValue; property bagAttributesCount: Integer read get_bagAttributesCount; property bagAttributes[aIndex: Integer]: iPKCS12Attribute read get_bagAttributes; property bagAttributesUnique[aIndex: tPKCS12AttrSetEnum]: iPKCS12AttrSet read get_bagAttributesUnique;

classtSafeBag

inherits from tASN1CustomStruct

implements iSafeBag

property bagId: ObjectIdentifier read get_bagId write set_bagId; property bagValue: iPKCS12BagSet read get_bagValue; property bagAttributesCount: Integer read get_bagAttributesCount; property bagAttributes[aIndex: Integer]: iPKCS12Attribute read get_bagAttributes; property bagAttributesUnique[aIndex: tPKCS12AttrSetEnum]: iPKCS12AttrSet read get_bagAttributesUnique;

interfaceiSafeContents

inherits from iASN1CustomStruct

function get_Items(aIndex: Integer): iSafeBag; function get_UniqueItems(aIndex: tPKCS12BagSetEnum): iPKCS12BagSet; function ImposeCertificate(aCert : iCertificate; aFriendlyName: string; aLocalKeyID : OctetString) : iSafeBag; function ImposeCRL(aCRL: iCertificateList): iSafeBag; function ImposeRSAPrivateKey(aPrivateKey : iIFPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeDSSPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeDHPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeECPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeMLKEMPrivateKey(aPrivateKey : iMLKEMPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeMLDSAPrivateKey(aPrivateKey : iMLDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeSLHDSAPrivateKey(aPrivateKey : iSLHDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeEdDSAPrivateKey(aPrivateKey : iEdDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeCompositeMLDSAPrivateKey(aPrivateKey : iCompositeMLDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeCompositeMLKEMPrivateKey(aPrivateKey : iCompositeMLKEMPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; property Items[aIndex: Integer]: iSafeBag read get_Items; property UniqueItems[aIndex: tPKCS12BagSetEnum]: iPKCS12BagSet read get_UniqueItems; default;

classtSafeContents

inherits from tASN1CustomOFStruct

implements iSafeContents

function ImposeCertificate(aCert : iCertificate; aFriendlyName: string; aLocalKeyID : OctetString) : iSafeBag; function ImposeCRL(aCRL: iCertificateList): iSafeBag; function ImposeRSAPrivateKey(aPrivateKey : iIFPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeDSSPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeDHPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeECPrivateKey(aPrivateKey : iDLPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeMLKEMPrivateKey(aPrivateKey : iMLKEMPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeMLDSAPrivateKey(aPrivateKey : iMLDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeSLHDSAPrivateKey(aPrivateKey : iSLHDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeEdDSAPrivateKey(aPrivateKey : iEdDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeCompositeMLDSAPrivateKey(aPrivateKey : iCompositeMLDSAPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; function ImposeCompositeMLKEMPrivateKey(aPrivateKey : iCompositeMLKEMPrivateKey; aKeyUsage : tKeyUsage; aPassword : iSecretKey; aFriendlyName: string; aLocalKeyID : OctetString; aProviderName: string; aIter : Integer; aPbeAlg : tPkcs12EncryptionAlgorihmsEnum) : iSafeBag; property Items[aIndex: Integer]: iSafeBag read get_Items; property UniqueItems[aIndex: tPKCS12BagSetEnum]: iPKCS12BagSet read get_UniqueItems; default;

interfaceiSecretBag

inherits from iASN1CustomStruct

function get_secretTypeId: ObjectIdentifier; function get_secretValue: iASN1Base; procedure set_secretTypeId(const aValue: ObjectIdentifier); property secretTypeId: ObjectIdentifier read get_secretTypeId write set_secretTypeId; property secretValue: iASN1Base read get_secretValue;

classtSecretBag

inherits from tASN1CustomStruct

implements iSecretBag

property secretTypeId: ObjectIdentifier read get_secretTypeId write set_secretTypeId; property secretValue: iASN1Base read get_secretValue;

interfaceiCertTypes

inherits from iASN1CustomInstance

function get_AsSdsiCertificate: string; function get_AsX509Certificate: iCertificate; function get_Choice: tCertTypesEnum; procedure set_AsSdsiCertificate(const aValue: string); procedure set_Choice(const aValue: tCertTypesEnum); property Choice: tCertTypesEnum read get_Choice write set_Choice; property AsX509Certificate: iCertificate read get_AsX509Certificate; property AsSdsiCertificate: string read get_AsSdsiCertificate write set_AsSdsiCertificate;

classtCertTypes

inherits from tASN1CustomInstance

implements iCertTypes

property Choice: tCertTypesEnum read get_Choice write set_Choice; property AsX509Certificate: iCertificate read get_AsX509Certificate; property AsSdsiCertificate: string read get_AsSdsiCertificate write set_AsSdsiCertificate;

classtCertTypesInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiCRLTypes

inherits from iASN1CustomInstance

function get_AsX509Crl: iCertificateList; function get_Choice: tCRLTypesEnum; procedure set_Choice(const aValue: tCRLTypesEnum); property Choice: tCRLTypesEnum read get_Choice write set_Choice; property AsX509Crl: iCertificateList read get_AsX509Crl;

classtCRLTypes

inherits from tASN1CustomInstance

implements iCRLTypes

property Choice: tCRLTypesEnum read get_Choice write set_Choice; property AsX509Crl: iCertificateList read get_AsX509Crl;

classtCRLTypesInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiPKCS12AttrSet

inherits from iASN1CustomInstance

function get_AsPkcs9AtFriendlyName: string; function get_AsPkcs9AtLocalKeyId: iASN1OctetString; function get_AsCryptographicServiceProvider: string; function get_Choice: tPKCS12AttrSetEnum; procedure set_AsPkcs9AtFriendlyName(const aValue: string); procedure set_AsCryptographicServiceProvider(const aValue: string); procedure set_Choice(const aValue: tPKCS12AttrSetEnum); property Choice: tPKCS12AttrSetEnum read get_Choice write set_Choice; property AsPkcs9AtFriendlyName: string read get_AsPkcs9AtFriendlyName write set_AsPkcs9AtFriendlyName; property AsPkcs9AtLocalKeyId: iASN1OctetString read get_AsPkcs9AtLocalKeyId; property AsCryptographicServiceProvider: string read get_AsCryptographicServiceProvider write set_AsCryptographicServiceProvider;

classtPKCS12AttrSet

inherits from tASN1CustomInstance

implements iPKCS12AttrSet

property Choice: tPKCS12AttrSetEnum read get_Choice write set_Choice; property AsPkcs9AtFriendlyName: string read get_AsPkcs9AtFriendlyName write set_AsPkcs9AtFriendlyName; property AsPkcs9AtLocalKeyId: iASN1OctetString read get_AsPkcs9AtLocalKeyId; property AsCryptographicServiceProvider: string read get_AsCryptographicServiceProvider write set_AsCryptographicServiceProvider;

classtPKCS12AttrSetInformationObject

inherits from tASN1TypeIdentifier

(no public members)

classtSetOfPKCS12AttrSet

inherits from tASN1CustomOFStruct

(no public members)

interfaceiPKCS12BagSet

inherits from iASN1CustomInstance

function get_AsCertBag: iCertBag; function get_AsCrlBag: iCRLBag; function get_AsKeyBag: iPrivateKeyInfo; function get_AsPkcs8ShroudedKeyBag: iPKCS12EncryptedPrivateKeyInfo; function get_AsSafeContentsBag: iSafeContents; function get_AsSecretBag: iSecretBag; function get_Choice: tPKCS12BagSetEnum; procedure set_Choice(const aValue: tPKCS12BagSetEnum); property Choice: tPKCS12BagSetEnum read get_Choice write set_Choice; property AsKeyBag: iPrivateKeyInfo read get_AsKeyBag; property AsPkcs8ShroudedKeyBag: iPKCS12EncryptedPrivateKeyInfo read get_AsPkcs8ShroudedKeyBag; property AsCertBag: iCertBag read get_AsCertBag; property AsCrlBag: iCRLBag read get_AsCrlBag; property AsSecretBag: iSecretBag read get_AsSecretBag; property AsSafeContentsBag: iSafeContents read get_AsSafeContentsBag;

classtPKCS12BagSet

property Choice: tPKCS12BagSetEnum read get_Choice write set_Choice; property AsKeyBag: iPrivateKeyInfo read get_AsKeyBag implements iPrivateKeyInfo; property AsPkcs8ShroudedKeyBag: iPKCS12EncryptedPrivateKeyInfo read get_AsPkcs8ShroudedKeyBag implements iPKCS12EncryptedPrivateKeyInfo; property AsCertBag: iCertBag read get_AsCertBag implements iCertBag; property AsCrlBag: iCRLBag read get_AsCrlBag implements iCRLBag; property AsSecretBag: iSecretBag read get_AsSecretBag implements iSecretBag; property AsSafeContentsBag: iSafeContents read get_AsSafeContentsBag implements iSafeContents;

classtPKCS12BagSetInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiPkcs12EncryptionAlgorihms

inherits from iASN1CustomInstance

function get_AsPbeWithShaand128BitRc2Cbc: iPBEParameter; function get_AsPbeWithShaand128BitRc4: iPBEParameter; function get_AsPbeWithShaand2KeyTripleDesCbc: iPBEParameter; function get_AsPbeWithShaand3KeyTripleDesCbc: iPBEParameter; function get_AsPbewithShaand40BitRc2Cbc: iPBEParameter; function get_AsPbeWithShaand40BitRc4: iPBEParameter; function get_AsPbes2: iPBES2Params; function get_Choice: tPkcs12EncryptionAlgorihmsEnum; procedure set_Choice(const aValue: tPkcs12EncryptionAlgorihmsEnum); property Choice: tPkcs12EncryptionAlgorihmsEnum read get_Choice write set_Choice; property AsPbeWithShaand128BitRc4: iPBEParameter read get_AsPbeWithShaand128BitRc4; property AsPbeWithShaand40BitRc4: iPBEParameter read get_AsPbeWithShaand40BitRc4; property AsPbeWithShaand3KeyTripleDesCbc: iPBEParameter read get_AsPbeWithShaand3KeyTripleDesCbc; property AsPbeWithShaand2KeyTripleDesCbc: iPBEParameter read get_AsPbeWithShaand2KeyTripleDesCbc; property AsPbeWithShaand128BitRc2Cbc: iPBEParameter read get_AsPbeWithShaand128BitRc2Cbc; property AsPbewithShaand40BitRc2Cbc: iPBEParameter read get_AsPbewithShaand40BitRc2Cbc; property AsPbes2: iPBES2Params read get_AsPbes2;

classtPkcs12EncryptionAlgorihms

property Choice: tPkcs12EncryptionAlgorihmsEnum read get_Choice write set_Choice; property AsPbeWithShaand128BitRc4: iPBEParameter read get_AsPbeWithShaand128BitRc4 implements iPBEParameter; property AsPbeWithShaand40BitRc4: iPBEParameter read get_AsPbeWithShaand40BitRc4; property AsPbeWithShaand3KeyTripleDesCbc: iPBEParameter read get_AsPbeWithShaand3KeyTripleDesCbc; property AsPbeWithShaand2KeyTripleDesCbc: iPBEParameter read get_AsPbeWithShaand2KeyTripleDesCbc; property AsPbeWithShaand128BitRc2Cbc: iPBEParameter read get_AsPbeWithShaand128BitRc2Cbc; property AsPbewithShaand40BitRc2Cbc: iPBEParameter read get_AsPbewithShaand40BitRc2Cbc; property AsPbes2: iPBES2Params read get_AsPbes2;

classtPkcs12EncryptionAlgorihmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

Types (enumerations, sets, aliases)

enumtPFXVersion

  tPFXVersion = (V3 = 3);

enumtCertTypesEnum

  tCertTypesEnum = (ctUndefined,
                    ctX509Certificate,
                    ctSdsiCertificate);

enumtCRLTypesEnum

  tCRLTypesEnum = (cUndefined,
                   cX509Crl);

enumtPKCS12AttrSetEnum

  tPKCS12AttrSetEnum = (paUndefined,
                        paPkcs9AtFriendlyName,
                        paPkcs9AtLocalKeyId,
                        paCryptographicServiceProvider);

enumtPKCS12BagSetEnum

  tPKCS12BagSetEnum = (pbUndefined,
                       pbKeyBag,
                       pbPkcs8ShroudedKeyBag,
                       pbCertBag,
                       pbCrlBag,
                       pbSecretBag,
                       pbSafeContentsBag);

enumtPkcs12EncryptionAlgorihmsEnum

  tPkcs12EncryptionAlgorihmsEnum = (peUndefined,
                                    pePbeWithShaand128BitRc4,
                                    pePbeWithShaand40BitRc4,
                                    pePbeWithShaand3KeyTripleDesCbc,
                                    pePbeWithShaand2KeyTripleDesCbc,
                                    pePbeWithShaand128BitRc2Cbc,
                                    pePbewithShaand40BitRc2Cbc,
                                    pePbes2);

Routines