SetSignProcessRSAPSSPadding

安全和签名

描述

为签名过程生成的 RSA 分离签名选择 RSASSA-PSS 填充

语法

Delphi

Function SetSignProcessRSAPSSPadding(SignProcessID: Integer; Enable: Boolean): Integer;

参数

SignProcessIDNewSignProcessFrom* 函数返回的值
EnableTrue 表示使用 RSASSA-PSS 签名,false 表示保持 PKCS#1 v1.5 填充(默认值)

返回值

设置已存储时为 1,进程 ID 无效时为 0

备注

该设置适用于 adbe.pkcs7.detachedETSI.CAdES.detached 子过滤器,并要求使用由 CNG 支持的 RSA 私钥;使用旧版 CryptoAPI 密钥创建的签名仍采用 PKCS#1 v1.5 填充

CMS 携带完整 RFC 4055 参数:来自 SetSignProcessDigestAlgorithm 的摘要、由相同摘要驱动的 MGF1,以及等于摘要长度的盐长度

另请参阅

SetSignProcessDigestAlgorithm, SetSignProcessSubFilter