Skip to content

Conversation

@llogar
Copy link
Contributor

@llogar llogar commented Nov 9, 2023

According to CardSignData docs, if pszAlgId is NULL, OID should not be added to signature, but minidriver erroneously selects SC_ALGORITHM_RSA_HASH_MD5_SHA1.

See: BCRYPT_PKCS1_PADDING_INFO structure description

Checklist
  • Documentation is added or updated
  • New files have a LGPL 2.1 license statement
  • PKCS#11 module is tested
  • Windows minidriver is tested
  • macOS tokend is tested

According to CardSignData docs, if pszAlgId is NULL, OID should not be added to signature,
but minidriver erroneously selects SC_ALGORITHM_RSA_HASH_MD5_SHA1.

See:
https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/ns-bcrypt-bcrypt_pkcs1_padding_info
@frankmorgner frankmorgner merged commit 3d725ed into OpenSC:master Feb 13, 2024
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