Skip to content

Commit b9779c7

Browse files
authoredJan 31, 2025··
Merge pull request #46 from anhu/maxq_fixups
minor fixups
2 parents 1281700 + b04e552 commit b9779c7

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed
 

‎src/crypto.c

-6
Original file line numberDiff line numberDiff line change
@@ -2637,12 +2637,6 @@ CK_RV C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism,
26372637
ret = WP11_Object_Find(session, hKey, &obj);
26382638
#ifdef WOLFSSL_MAXQ10XX_CRYPTO
26392639
if ((ret != 0) && (hKey == 0) && (pMechanism->mechanism == CKM_ECDSA)) {
2640-
/* Check for the expected devId because we are not setting the object.
2641-
* If this wasn't MAXQ it would be strange behaviour. */
2642-
if (session->devId != MAXQ_DEVICE_ID) {
2643-
return CKR_MECHANISM_PARAM_INVALID;
2644-
}
2645-
26462640
if (pMechanism->pParameter != NULL || pMechanism->ulParameterLen != 0) {
26472641
return CKR_MECHANISM_PARAM_INVALID;
26482642
}

‎src/internal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ static int wp11_Object_Load_Cert(WP11_Object* object, int tokenId, int objId)
17141714
#include "maxq10xx_key.h"
17151715
#else
17161716
/* TEST KEY. This must be changed for production environments!! */
1717-
static const mxq_u1 KeyPairImport[] = {
1717+
static mxq_u1 KeyPairImport[] = {
17181718
0xd0,0x97,0x31,0xc7,0x63,0xc0,0x9e,0xe3,0x9a,0xb4,0xd0,0xce,0xa7,0x89,0xab,
17191719
0x52,0xc8,0x80,0x3a,0x91,0x77,0x29,0xc3,0xa0,0x79,0x2e,0xe6,0x61,0x8b,0x2d,
17201720
0x53,0x70,0xcc,0xa4,0x62,0xd5,0x4a,0x47,0x74,0xea,0x22,0xfa,0xa9,0xd4,0x95,

0 commit comments

Comments
 (0)
Please sign in to comment.