Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.Pkcs1

Feature notes: PKIX / CMS implementation notes

Classes, interfaces and records

interfaceiPKCS1Algorithms

(no public members)

interfaceiPKCS1MGFAlgorithms

(no public members)

interfaceiPKCS1PSourceAlgorithms

(no public members)

interfaceiPKCS1V15DigestAlgorithms

(no public members)

interfaceiOAEPPSSDigestAlgorithms

(no public members)

interfaceiDigestAlgorithm

inherits from iASN1CustomStruct

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

classtDigestAlgorithm

inherits from tASN1CustomStruct

implements iDigestAlgorithm

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

interfaceiDigestInfo

inherits from iASN1CustomStruct

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

classtDigestInfo

inherits from tASN1CustomStruct

implements iDigestInfo

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

interfaceiHashAlgorithm

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier;
Getter for algorithm; reads the hash OID from the underlying ASN.1 AlgorithmIdentifier. Rarely called directly; use the algorithm property.
function get_parameters: iOAEPPSSDigestAlgorithms;
Getter for parameters; surfaces the OAEP/PSS digest-algorithm choice that identifies which SHA variant the hash OID selects. Rarely called directly; use the parameters property.
procedure set_algorithm(const aValue: ObjectIdentifier);
Setter for algorithm; writes the hash OID into the ASN.1 content. Rarely called directly; assign via the algorithm property.
property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;
The OID naming the digest used for OAEP encryption or PSS signatures. An app touches this only when hand-building or inspecting RSAES-OAEP / RSASSA-PSS AlgorithmIdentifier parameters (see iRSAESOAEPParams / iRSASSAPSSParams); defaults to id-sha1 when the field is absent.
property parameters: iOAEPPSSDigestAlgorithms read get_parameters;
The digest-algorithm CHOICE object that mirrors the algorithm OID as a strongly typed AsShaNNN selector. Use it when you want to read or set the hash by named variant rather than by raw OID string.

classtPKCS1HashAlgorithm

inherits from tASN1CustomStruct

implements iHashAlgorithm

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

interfaceiMaskGenAlgorithm

inherits from iASN1CustomStruct

function get_algorithm: ObjectIdentifier;
Getter for algorithm; reads the mask-generation-function OID from the underlying ASN.1 AlgorithmIdentifier. Rarely called directly; use the algorithm property.
function get_parameters: iPKCS1MGFAlgorithms;
Getter for parameters; surfaces the MGF parameter CHOICE, whose only arm (AsMgf1) carries the inner hash that MGF1 iterates. Rarely called directly; use the parameters property.
procedure set_algorithm(const aValue: ObjectIdentifier);
Setter for algorithm; writes the MGF OID into the ASN.1 content. Rarely called directly; assign via the algorithm property.
property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;
The OID naming the mask-generation function for OAEP encryption or PSS signatures. An app touches this only when hand-building or inspecting the maskGenAlgorithm field of iRSAESOAEPParams / iRSASSAPSSParams; defaults to id-mgf1 when the field is absent.
property parameters: iPKCS1MGFAlgorithms read get_parameters;
The MGF parameter CHOICE; for id-mgf1 its AsMgf1 arm is itself an iHashAlgorithm naming the digest MGF1 runs internally. Use it to read or set that inner hash by named variant rather than by raw OID string.

classtMaskGenAlgorithm

inherits from tASN1CustomStruct

implements iMaskGenAlgorithm

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

interfaceiOtherPrimeInfo

inherits from iASN1CustomStruct

function get_coefficient: iASN1Integer; function get_exponent: iASN1Integer; function get_prime: iASN1Integer; property prime: iASN1Integer read get_prime; property exponent: iASN1Integer read get_exponent; property coefficient: iASN1Integer read get_coefficient;

classtOtherPrimeInfo

inherits from tASN1CustomStruct

implements iOtherPrimeInfo

property prime: iASN1Integer read get_prime; property exponent: iASN1Integer read get_exponent; property coefficient: iASN1Integer read get_coefficient;

interfaceiOtherPrimeInfos

inherits from iASN1CustomStruct

function get_Items(aIndex: Integer): iOtherPrimeInfo; property Items[aIndex: Integer]: iOtherPrimeInfo read get_Items; default;

classtOtherPrimeInfos

inherits from tASN1CustomOFStruct

implements iOtherPrimeInfos

property Items[aIndex: Integer]: iOtherPrimeInfo read get_Items; default;

interfaceiPSourceAlgorithm

inherits from iASN1CustomStruct

The RSAES-OAEP pSourceAlgorithm AlgorithmIdentifier (PKCS#1 v2.x, RFC 8017) that names how the OAEP encoding-parameters (label) P are supplied. Its only defined algorithm is id-pSpecified, whose parameters carry the label octet string directly. An application touches this only when hand-building or inspecting the pSourceAlgorithm field of iRSAESOAEPParams to set a non-empty OAEP label; the same encoded label must be used by the encrypting and decrypting sides or OAEP decoding fails.

function get_algorithm: ObjectIdentifier;
Getter for algorithm; reads the pSource OID from the underlying ASN.1 AlgorithmIdentifier. Rarely called directly; use the algorithm property.
function get_parameters: iPKCS1PSourceAlgorithms;
Getter for parameters; surfaces the pSource parameter CHOICE, whose AsPspecified arm holds the OAEP label octet string. Rarely called directly; use the parameters property.
procedure set_algorithm(const aValue: ObjectIdentifier);
Setter for algorithm; writes the pSource OID into the ASN.1 content. Rarely called directly; assign via the algorithm property.
property algorithm: ObjectIdentifier read get_algorithm write set_algorithm;
The OID naming how the OAEP label is supplied. An app touches this only when hand-building or inspecting an iRSAESOAEPParams; defaults to id-pSpecified (an explicit label octet string) when the field is absent.
property parameters: iPKCS1PSourceAlgorithms read get_parameters;
The pSource parameter CHOICE; for id-pSpecified its AsPspecified arm is the OAEP label L as an octet string (empty by default). Use it to read or set the label rather than editing the raw ASN.1 by hand.

classtPSourceAlgorithm

inherits from tASN1CustomStruct

implements iPSourceAlgorithm

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

interfaceiRSAESAlgorithmIdentifier

inherits from iASN1CustomStruct

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

classtRSAESAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iRSAESAlgorithmIdentifier

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

interfaceiRSAESOAEPParams

inherits from iASN1CustomStruct

The RSAES-OAEP-params SEQUENCE (PKCS#1 v2.x, RFC 8017) carried as the parameters of an rsaesOaep AlgorithmIdentifier: the OAEP hash, its mask generation function (MGF1) and the label source. An application reaches this when it needs OAEP with a non-default digest (the SHA-1 defaults are omitted on the wire) or a custom label, e.g. building a key-transport recipient or reading such parameters off a certificate/key; both peers must agree on all three fields for decryption to succeed.

function get_hashAlgorithm: iHashAlgorithm;
Getter for hashAlgorithm; returns the OAEP hash AlgorithmIdentifier. Rarely called directly; use the hashAlgorithm property.
function get_maskGenAlgorithm: iMaskGenAlgorithm;
Getter for maskGenAlgorithm; returns the MGF AlgorithmIdentifier. Rarely called directly; use the maskGenAlgorithm property.
function get_pSourceAlgorithm: iPSourceAlgorithm;
Getter for pSourceAlgorithm; returns the label-source AlgorithmIdentifier. Rarely called directly; use the pSourceAlgorithm property.
property hashAlgorithm: iHashAlgorithm read get_hashAlgorithm;
The digest used by OAEP itself. Read or set it to pick the OAEP hash; defaults to id-sha1 when the field is absent on the wire.
property maskGenAlgorithm: iMaskGenAlgorithm read get_maskGenAlgorithm;
The mask-generation function (MGF1) and its inner hash. Read or set it to control MGF1; defaults to mgf1 over SHA-1 when the field is absent.
property pSourceAlgorithm: iPSourceAlgorithm read get_pSourceAlgorithm;
The source of the OAEP label L. Use it to set an explicit label via its id-pSpecified octet string; defaults to an empty label when absent.

classtRSAESOAEPParams

inherits from tASN1CustomStruct

implements iRSAESOAEPParams

property hashAlgorithm: iHashAlgorithm read get_hashAlgorithm; property maskGenAlgorithm: iMaskGenAlgorithm read get_maskGenAlgorithm; property pSourceAlgorithm: iPSourceAlgorithm read get_pSourceAlgorithm;

classtVersionEnum

inherits from tASN1NamedInteger

(no public members)

interfaceiRSAPrivateKey

inherits from iASN1CustomStruct

function get_coefficient: iASN1Integer; function get_exponent1: iASN1Integer; function get_exponent2: iASN1Integer; function get_modulus: iASN1Integer; function get_otherPrimeInfos: iOtherPrimeInfos; function get_prime1: iASN1Integer; function get_prime2: iASN1Integer; function get_privateExponent: iASN1Integer; function get_publicExponent: iASN1Integer; function get_version: tVersion; function get_versionAsInteger: Integer; procedure set_version(const aValue: tVersion); procedure set_versionAsInteger(const aValue: Integer); property version: tVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property modulus: iASN1Integer read get_modulus; property publicExponent: iASN1Integer read get_publicExponent; property privateExponent: iASN1Integer read get_privateExponent; property prime1: iASN1Integer read get_prime1; property prime2: iASN1Integer read get_prime2; property exponent1: iASN1Integer read get_exponent1; property exponent2: iASN1Integer read get_exponent2; property coefficient: iASN1Integer read get_coefficient; property otherPrimeInfos: iOtherPrimeInfos read get_otherPrimeInfos;

classtRSAPrivateKey

property version: tVersion read get_version write set_version; property versionAsInteger: Integer read get_versionAsInteger write set_versionAsInteger; property modulus: iASN1Integer read get_modulus; property publicExponent: iASN1Integer read get_publicExponent; property privateExponent: iASN1Integer read get_privateExponent; property prime1: iASN1Integer read get_prime1; property prime2: iASN1Integer read get_prime2; property exponent1: iASN1Integer read get_exponent1; property exponent2: iASN1Integer read get_exponent2; property coefficient: iASN1Integer read get_coefficient; property otherPrimeInfos: iOtherPrimeInfos read get_otherPrimeInfos;

interfaceiRSAPublicKey

inherits from iASN1CustomStruct

function get_modulus: iASN1Integer; function get_publicExponent: iASN1Integer; property modulus: iASN1Integer read get_modulus; property publicExponent: iASN1Integer read get_publicExponent;

classtRSAPublicKey

inherits from tASN1CustomStruct

implements iRSAPublicKey, iIFPublicKey

property modulus: iASN1Integer read get_modulus; property publicExponent: iASN1Integer read get_publicExponent;

interfaceiRSASSAAlgorithmIdentifier

inherits from iASN1CustomStruct

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

classtRSASSAAlgorithmIdentifier

inherits from tASN1CustomStruct

implements iRSASSAAlgorithmIdentifier

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

classtTrailerFieldEnum

inherits from tASN1NamedInteger

(no public members)

interfaceiRSASSAPSSParams

inherits from iASN1CustomStruct

The RSASSA-PSS-params SEQUENCE (PKCS#1 v2.x, RFC 8017; also RFC 4055) carried as the parameters of an id-RSASSA-PSS (or id-RW) AlgorithmIdentifier: the PSS hash, its mask generation function (MGF1) and inner hash, the salt length and the trailer field. An application reaches this mainly indirectly through the higher-level PKIX layers: StreamSec.DSI.PkixCert populates these fields when signing a certificate with RSA-PSS (from the signer's SignatureDigestAlg / MGFHashAlg / saltLength) and reads them back when validating a PSS signature (mapping the hash and MGF-hash OIDs to internal hash algorithms and driving SignEncoding := seEMSA4). A verifier and a signer must agree on all four fields or the signature check fails; touch this record directly only when hand-building or inspecting such parameters.

function get_hashAlgorithm: iHashAlgorithm;
Getter for hashAlgorithm; returns the PSS hash AlgorithmIdentifier. Rarely called directly; use the hashAlgorithm property.
function get_maskGenAlgorithm: iMaskGenAlgorithm;
Getter for maskGenAlgorithm; returns the MGF AlgorithmIdentifier. Rarely called directly; use the maskGenAlgorithm property.
function get_saltLength: iASN1Integer;
Getter for saltLength; returns the salt-length INTEGER. Rarely called directly; use the saltLength property.
function get_trailerField: tTrailerField;
Getter for trailerField; returns the trailer-field enum. Rarely called directly; use the trailerField property.
function get_trailerFieldAsInteger: Integer;
Getter for trailerFieldAsInteger; returns the trailer-field as its raw integer content. Rarely called directly; use the trailerFieldAsInteger property.
procedure set_trailerField(const aValue: tTrailerField);
Setter for trailerField; writes the trailer-field enum into the ASN.1 content. Rarely called directly; assign via the trailerField property.
procedure set_trailerFieldAsInteger(const aValue: Integer);
Setter for trailerFieldAsInteger; writes the trailer field as a raw integer. Rarely called directly; assign via the trailerFieldAsInteger property.
property hashAlgorithm: iHashAlgorithm read get_hashAlgorithm;
The digest EMSA-PSS applies to the message (mHash) and to the encoded output. Read it during verification to learn which SHA variant a PSS signature used, or set it when building signature parameters; defaults to id-sha1 when the field is absent on the wire.
property maskGenAlgorithm: iMaskGenAlgorithm read get_maskGenAlgorithm;
The mask-generation function (MGF1) and its inner hash. Read or set it to control MGF1; PKIX code typically sets both this inner hash and the PSS hashAlgorithm to the same digest. Defaults to mgf1 over SHA-1 when absent.
property saltLength: iASN1Integer read get_saltLength;
The PSS salt length in bytes, as an ASN.1 INTEGER (edit its content to set it). Both signer and verifier must use the same value; defaults to 20 (the SHA-1 digest length) when the field is absent.
property trailerField: tTrailerField read get_trailerField write set_trailerField;
The PSS trailer field. Only one value (TrailerFieldBC, the 0xBC trailer of RFC 8017) is defined and it is the default when absent, so an app rarely changes this.
property trailerFieldAsInteger: Integer read get_trailerFieldAsInteger write set_trailerFieldAsInteger;
The same trailer field exposed as its raw integer value; use it when you need to read or write the encoded number rather than the tTrailerField enum. Legal values follow RFC 8017 (1 = the 0xBC trailer).

classtRSASSAPSSParams

inherits from tASN1CustomStruct

implements iRSASSAPSSParams

property hashAlgorithm: iHashAlgorithm read get_hashAlgorithm; property maskGenAlgorithm: iMaskGenAlgorithm read get_maskGenAlgorithm; property saltLength: iASN1Integer read get_saltLength; property trailerField: tTrailerField read get_trailerField write set_trailerField; property trailerFieldAsInteger: Integer read get_trailerFieldAsInteger write set_trailerFieldAsInteger;

interfaceiPKCS1Algorithms

inherits from iASN1CustomInstance

function get_AsMd2WithRsaencryption: iASN1Base; function get_AsMd5WithRsaencryption: iASN1Base; function get_AsPspecified: iASN1Base; function get_AsRsaEncryption: iASN1Base; function get_AsRsaesOaep: iRSAESOAEPParams; function get_AsRsassaPss: iRSASSAPSSParams; function get_AsSha1WithRsaencryption: iASN1Base; function get_AsSha256WithRsaencryption: iASN1Base; function get_AsSha384WithRsaencryption: iASN1Base; function get_AsSha512WithRsaencryption: iASN1Base; function get_Choice: tPKCS1AlgorithmsEnum; procedure set_Choice(const aValue: tPKCS1AlgorithmsEnum); property Choice: tPKCS1AlgorithmsEnum read get_Choice write set_Choice; property AsRsaEncryption: iASN1Base read get_AsRsaEncryption; property AsMd2WithRsaencryption: iASN1Base read get_AsMd2WithRsaencryption; property AsMd5WithRsaencryption: iASN1Base read get_AsMd5WithRsaencryption; property AsSha1WithRsaencryption: iASN1Base read get_AsSha1WithRsaencryption; property AsSha256WithRsaencryption: iASN1Base read get_AsSha256WithRsaencryption; property AsSha384WithRsaencryption: iASN1Base read get_AsSha384WithRsaencryption; property AsSha512WithRsaencryption: iASN1Base read get_AsSha512WithRsaencryption; property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep; property AsPspecified: iASN1Base read get_AsPspecified; property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss;

classtPKCS1Algorithms

property Choice: tPKCS1AlgorithmsEnum read get_Choice write set_Choice; property AsRsaEncryption: iASN1Base read get_AsRsaEncryption; property AsMd2WithRsaencryption: iASN1Base read get_AsMd2WithRsaencryption; property AsMd5WithRsaencryption: iASN1Base read get_AsMd5WithRsaencryption; property AsSha1WithRsaencryption: iASN1Base read get_AsSha1WithRsaencryption; property AsSha256WithRsaencryption: iASN1Base read get_AsSha256WithRsaencryption; property AsSha384WithRsaencryption: iASN1Base read get_AsSha384WithRsaencryption; property AsSha512WithRsaencryption: iASN1Base read get_AsSha512WithRsaencryption; property AsRsaesOaep: iRSAESOAEPParams read get_AsRsaesOaep implements iRSAESOAEPParams; property AsPspecified: iASN1Base read get_AsPspecified; property AsRsassaPss: iRSASSAPSSParams read get_AsRsassaPss implements iRSASSAPSSParams;

classtPKCS1AlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiPKCS1MGFAlgorithms

inherits from iASN1CustomInstance

ASN.1 CHOICE holding the parameters of a mask-generation-function AlgorithmIdentifier used inside RSAES-OAEP and RSASSA-PSS parameter structures (PKCS#1 v2.x, RFC 8017). MGF1 is the only defined alternative, and its own parameter is the inner hash. Applications building or reading RSA-OAEP/PSS AlgorithmIdentifiers touch this only when they need to override the default MGF hash; most code lets the defaults stand.

function get_AsMgf1: iHashAlgorithm;
Getter for AsMgf1; selects the MGF1 CHOICE alternative and returns its inner hash-algorithm parameter. Rarely called directly; use the AsMgf1 property.
function get_Choice: tPKCS1MGFAlgorithmsEnum;
Getter for Choice; reports which CHOICE alternative is currently active (pmUndefined or pmMgf1). Rarely called directly; use the Choice property.
procedure set_Choice(const aValue: tPKCS1MGFAlgorithmsEnum);
Setter for Choice; switches the active CHOICE alternative, materializing the corresponding ASN.1 content. Rarely called directly; assign via the Choice property.
property Choice: tPKCS1MGFAlgorithmsEnum read get_Choice write set_Choice;
Which mask-generation alternative is selected. In practice this is always pmMgf1 for RSA-OAEP/PSS; set it before reading AsMgf1 when constructing a new parameter block.
property AsMgf1: iHashAlgorithm read get_AsMgf1;
The MGF1 branch, exposing the inner hash-algorithm used to drive the mask generator. Read or assign its hash OID to specify (e.g.) MGF1-SHA256. Selecting this property also switches the CHOICE to pmMgf1.

classtPKCS1MGFAlgorithms

property Choice: tPKCS1MGFAlgorithmsEnum read get_Choice write set_Choice; property AsMgf1: iHashAlgorithm read get_AsMgf1 implements iHashAlgorithm;

classtPKCS1MGFAlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiPKCS1PSourceAlgorithms

inherits from iASN1CustomInstance

ASN.1 CHOICE holding the parameters of the RSAES-OAEP pSourceAlgorithm (PKCS#1 v2.x, RFC 8017). Its single arm, id-pSpecified, is the OAEP label L as an octet string. This is the plumbing behind iPSourceAlgorithm.parameters; an application uses it only to read or force the exact OAEP label, and the same label bytes must be configured on both the encrypting and decrypting peers.

function get_AsPspecified: iASN1OctetString;
Getter for AsPspecified; selects the id-pSpecified CHOICE arm and returns its octet-string node. Rarely called directly; use the AsPspecified property.
function get_Choice: tPKCS1PSourceAlgorithmsEnum;
Getter for Choice; reports which CHOICE arm is active. Rarely called directly; use the Choice property.
procedure set_Choice(const aValue: tPKCS1PSourceAlgorithmsEnum);
Setter for Choice; selects the active CHOICE arm. Rarely called directly; assign via the Choice property.
property Choice: tPKCS1PSourceAlgorithmsEnum read get_Choice write set_Choice;
Which pSource alternative is present (only ppPSpecified is defined). Read it to detect the label form, or set it before assigning AsPspecified.
property AsPspecified: iASN1OctetString read get_AsPspecified;
The OAEP label L as an octet string (the id-pSpecified value). Read or set it to inspect or supply an explicit OAEP label; empty by default.

classtPKCS1PSourceAlgorithms

inherits from tASN1CustomInstance

implements iPKCS1PSourceAlgorithms

property Choice: tPKCS1PSourceAlgorithmsEnum read get_Choice write set_Choice; property AsPspecified: iASN1OctetString read get_AsPspecified;

interfaceiPKCS1V15DigestAlgorithms

inherits from iASN1CustomInstance

function get_AsMd2: iASN1Base; function get_AsMd5: iASN1Base; function get_AsSha1: iASN1Base; function get_AsSha224: iASN1Base; function get_AsSha256: iASN1Base; function get_AsSha384: iASN1Base; function get_AsSha512: iASN1Base; function get_Choice: tPKCS1V15DigestAlgorithmsEnum; procedure set_Choice(const aValue: tPKCS1V15DigestAlgorithmsEnum); property Choice: tPKCS1V15DigestAlgorithmsEnum read get_Choice write set_Choice; property AsMd2: iASN1Base read get_AsMd2; property AsMd5: iASN1Base read get_AsMd5; property AsSha1: iASN1Base read get_AsSha1; property AsSha256: iASN1Base read get_AsSha256; property AsSha384: iASN1Base read get_AsSha384; property AsSha512: iASN1Base read get_AsSha512; property AsSha224: iASN1Base read get_AsSha224;

classtPKCS1V15DigestAlgorithms

inherits from tASN1CustomInstance

implements iPKCS1V15DigestAlgorithms

property Choice: tPKCS1V15DigestAlgorithmsEnum read get_Choice write set_Choice; property AsMd2: iASN1Base read get_AsMd2; property AsMd5: iASN1Base read get_AsMd5; property AsSha1: iASN1Base read get_AsSha1; property AsSha256: iASN1Base read get_AsSha256; property AsSha384: iASN1Base read get_AsSha384; property AsSha512: iASN1Base read get_AsSha512; property AsSha224: iASN1Base read get_AsSha224;

classtPKCS1V15DigestAlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

interfaceiOAEPPSSDigestAlgorithms

inherits from iASN1CustomInstance

ASN.1 CHOICE naming the hash digest carried inside an RSAES-OAEP or RSASSA-PSS hashAlgorithm/maskGenAlgorithm AlgorithmIdentifier (PKCS#1 v2.x, RFC 8017). Each alternative corresponds to one SHA variant OID. This is ASN.1 plumbing behind the iRSAESOAEPParams / iRSASSAPSSParams surfaces; an application uses it only when it needs to inspect or force the exact OAEP/PSS digest, and normally lets the higher-level parameter objects pick it.

function get_AsSha1: iASN1Base;
Getter for AsSha1; selects the SHA-1 CHOICE alternative and returns its ASN.1 node. Rarely called directly; use the AsSha1 property.
function get_AsSha224: iASN1Base;
Getter for AsSha224; selects the SHA-224 CHOICE alternative and returns its ASN.1 node. Rarely called directly; use the AsSha224 property.
function get_AsSha256: iASN1Base;
Getter for AsSha256; selects the SHA-256 CHOICE alternative and returns its ASN.1 node. Rarely called directly; use the AsSha256 property.
function get_AsSha384: iASN1Base;
Getter for AsSha384; selects the SHA-384 CHOICE alternative and returns its ASN.1 node. Rarely called directly; use the AsSha384 property.
function get_AsSha512: iASN1Base;
Getter for AsSha512; selects the SHA-512 CHOICE alternative and returns its ASN.1 node. Rarely called directly; use the AsSha512 property.
function get_Choice: tOAEPPSSDigestAlgorithmsEnum;
Getter for Choice; reports which SHA alternative is currently active. Rarely called directly; use the Choice property.
procedure set_Choice(const aValue: tOAEPPSSDigestAlgorithmsEnum);
Setter for Choice; switches the active SHA alternative, materializing the matching ASN.1 content. Rarely called directly; assign via the Choice property.
property Choice: tOAEPPSSDigestAlgorithmsEnum read get_Choice write set_Choice;
Which SHA digest alternative is selected (opUndefined, opSha1, opSha256, opSha384, opSha512, opSha224). Read it to learn the negotiated/parsed OAEP or PSS digest; assign it to force one when composing parameters.
property AsSha1: iASN1Base read get_AsSha1;
The SHA-1 branch of the CHOICE; reading it also selects SHA-1. Use only when an application must pin the OAEP/PSS digest to SHA-1 for legacy interoperability.
property AsSha256: iASN1Base read get_AsSha256;
The SHA-256 branch of the CHOICE; reading it also selects SHA-256. This is the common modern OAEP/PSS digest.
property AsSha384: iASN1Base read get_AsSha384;
The SHA-384 branch of the CHOICE; reading it also selects SHA-384.
property AsSha512: iASN1Base read get_AsSha512;
The SHA-512 branch of the CHOICE; reading it also selects SHA-512.
property AsSha224: iASN1Base read get_AsSha224;
The SHA-224 branch of the CHOICE; reading it also selects SHA-224.

classtOAEPPSSDigestAlgorithms

inherits from tASN1CustomInstance

implements iOAEPPSSDigestAlgorithms

property Choice: tOAEPPSSDigestAlgorithmsEnum read get_Choice write set_Choice; property AsSha1: iASN1Base read get_AsSha1; property AsSha256: iASN1Base read get_AsSha256; property AsSha384: iASN1Base read get_AsSha384; property AsSha512: iASN1Base read get_AsSha512; property AsSha224: iASN1Base read get_AsSha224;

classtOAEPPSSDigestAlgorithmsInformationObject

inherits from tASN1TypeIdentifier

(no public members)

Types (enumerations, sets, aliases)

enumtVersion

  tVersion = (TwoPrime,
              Multi);

enumtTrailerField

  tTrailerField = (tfUndefined, TrailerFieldBC);

enumtPKCS1AlgorithmsEnum

  tPKCS1AlgorithmsEnum = (paUndefined,
                          paRsaEncryption,
                          paMd2WithRsaencryption,
                          paMd5WithRsaencryption,
                          paSha1WithRsaencryption,
                          paSha256WithRsaencryption,
                          paSha384WithRsaencryption,
                          paSha512WithRsaencryption,
                          paRsaesOaep,
                          paPSpecified,
                          paRsassaPss);

enumtPKCS1MGFAlgorithmsEnum

  tPKCS1MGFAlgorithmsEnum = (pmUndefined,
                             pmMgf1);

enumtPKCS1PSourceAlgorithmsEnum

  tPKCS1PSourceAlgorithmsEnum = (ppUndefined,
                                 ppPSpecified);

enumtPKCS1V15DigestAlgorithmsEnum

  tPKCS1V15DigestAlgorithmsEnum = (pdUndefined,
                                   pdMd2,
                                   pdMd5,
                                   pdSha1,
                                   pdSha256,
                                   pdSha384,
                                   pdSha512,
                                   pdSha224);

enumtOAEPPSSDigestAlgorithmsEnum

  tOAEPPSSDigestAlgorithmsEnum = (opUndefined,
                                  opSha1,
                                  opSha256,
                                  opSha384,
                                  opSha512,
                                  opSha224);

Routines