-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring in support for MAXQ1065 #44
base: master
Are you sure you want to change the base?
Conversation
anhu
commented
Jan 10, 2025
•
edited
Loading
edited
- support for committing certificate into MAXQ
- use the specified devId that is saved in the slot or session
- support for committing certificate into MAXQ - use the specified devId that is saved in the slot or session NOTE: requires wolfpkcs11/port/maxim directory be created and MXQ_API header files be copied in there.
NOTE: requires wolfpkcs11/port/maxim directory be created and MXQ_API header files be copied in there. This would be done by scripts in the MAXQ10xx SDK. |
@@ -2621,7 +2621,7 @@ CK_RV C_DigestFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pDigest, | |||
CK_RV C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, | |||
CK_OBJECT_HANDLE hKey) | |||
{ | |||
int ret; | |||
int ret = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't need this change.
WP11_Session_SetOpInitialized(session, init); | ||
|
||
return CKR_OK; | ||
} else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}
else
if (ret != 0) | ||
#ifdef WOLFSSL_MAXQ10XX_CRYPTO | ||
if ((ret != 0) && (hKey == 0) && (pMechanism->mechanism == CKM_ECDSA)) { | ||
if (pMechanism->pParameter != NULL || pMechanism->ulParameterLen != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check for devId being set?