SetSignProcessRSAPSSPadding
Security and signatures
Description
Selects RSASSA-PSS padding for the RSA detached signature built by a signing process
Syntax
Delphi
Function SetSignProcessRSAPSSPadding(SignProcessID: Integer; Enable: Boolean): Integer;Parameters
| SignProcessID | Value returned by a NewSignProcessFrom* function |
|---|---|
| Enable | True to sign with RSASSA-PSS, false to keep PKCS#1 v1.5 padding (the default) |
Return values
1 when the setting was stored, 0 for an invalid process id
Remarks
The setting applies to the adbe.pkcs7.detached and ETSI.CAdES.detached subfilters
On Windows, it requires a CNG-backed RSA private key; signatures made with legacy CryptoAPI keys stay PKCS#1 v1.5 padded
On native non-Windows targets, the default OpenSSL PFX provider supports compatible RSA keys and parameter-constrained RSA-PSS keys; incompatible digests, insufficient key capacity and unavailable PSS controls fail explicitly
The native path supports the existing SHA-1, SHA-2 and SHA-3 digest selectors, preserves PSS parameters when signing PAdES attributes, and rejects attached legacy CMS profiles when PSS is selected
Disabling this setting restores the ordinary RSA key default; an RSA-PSS-only key retains its required PSS scheme and parameter constraints
SHA-3 digest AlgorithmIdentifier parameters are absent in both the signature hash and MGF1 hash identifiers; verification rejects nonconforming NULL parameters
The CMS carries full RFC 4055 parameters: the digest from SetSignProcessDigestAlgorithm, MGF1 driven by the same digest and a salt length equal to the digest length