Skip to content

Use SHA-512 algorithm for SHA-512 RSA-PSS signing in CNG backend#1409

Open
kloploid wants to merge 1 commit into
open-eid:masterfrom
kloploid:fix-cng-pss-sha512
Open

Use SHA-512 algorithm for SHA-512 RSA-PSS signing in CNG backend#1409
kloploid wants to merge 1 commit into
open-eid:masterfrom
kloploid:fix-cng-pss-sha512

Conversation

@kloploid
Copy link
Copy Markdown

No description provided.

The SHA-512 branch of the PSS padding switch in QCNG::sign() set
pszAlgId to NCRYPT_SHA256_ALGORITHM with salt length 64, which made
CNG sign with MGF1-SHA256 while the advertised XML-DSIG method is
sha512-rsa-MGF1. The PKCS#11 backend correctly uses CKG_MGF1_SHA512
for the same case (QPKCS11.cpp).

Signed-off-by: kloploid <mark.zelinski890@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants