Outdated corePKCS11 Integration Test code?

Greetings,

After updating from FreeRTOS 202210.00 LTS to 202406.01 LTS, corePKCS11 library is updated to v3.6.3.

After applying corePKCS11 v3.6.3, I tried to run FreeRTOS-Libraries-Integration-Testsas verification.
I encountered 2 failed test cases:

  • PKCS11_RSA_GetAttributeValue
  • PKCS11_RSA_GetAttributeValueMultiThread

I believe these test cases failed due to outdated core_pkcs11_test.c.
I managed to PASS these test cases by replacing CKA_PRIVATE_EXPONENT with CKA_VALUE in core_pkcs11_test.c#L1681 and core_pkcs11_test.c#L1835.

This solution is based on corePKCS11 changes in mbedtls_integration_test.c from merge request#202 @ commit#470ccc3.

Request: Please advise whether this approach is acceptable?

Thank you.

Yes, that looks correct. Would you please raise a PR?

Thanks for the confirmation, @aggarg.
I’ve raised a PR to fix this issue: Pull Request #74

Thank you for your contribution!

1 Like