THPDFCertificateAlgorithmPolicy Record

Configures which certificate key and signature algorithms certificate path validation accepts

Declaration

THPDFCertificateAlgorithmPolicy= record
  MinimumRSAKeyBits: Integer;
  MinimumECDSACurveBits: Integer;
  SHA1SunsetTime: TDateTime;
  RSAPKCS1v15SunsetTime: TDateTime;
  AllowRSAPKCS1v15: boolean;
  AllowRSAPSS: boolean;
  AllowECDSA: boolean;
  AllowEdDSA: boolean;
  RequirePSSSaltAtLeastHashLength: boolean;
  class function Default: THPDFCertificateAlgorithmPolicy; static;
end;

Unit

HPDFSignVerify

Fields

FieldPurpose
MinimumRSAKeyBitsSmallest RSA key size accepted for certificates in the path; 0 disables the check; default 2048
MinimumECDSACurveBitsSmallest ECDSA curve size accepted for certificates in the path; 0 disables the check; default 256
SHA1SunsetTimeEvaluation time at or after which SHA-1 certificate signatures are rejected; 0 disables the sunset; default 2016-01-01
RSAPKCS1v15SunsetTimeEvaluation time at or after which RSA PKCS#1 v1.5 certificate signatures are rejected; 0 disables the sunset; default 0
AllowRSAPKCS1v15Whether RSA PKCS#1 v1.5 certificate signatures are accepted at all; default true
AllowRSAPSSWhether RSA-PSS certificate signatures are accepted at all; default true
AllowECDSAWhether ECDSA certificate keys and signatures are accepted at all; default true
AllowEdDSAWhether Ed25519 and Ed448 certificate keys are accepted at all; default true
RequirePSSSaltAtLeastHashLengthRequires an RSA-PSS salt at least as long as the signature hash output; default true
DefaultClass function returning the policy with the defaults listed above

Usage notes

Related APIs