Skip to content

Commit 6ae925d

Browse files
space88manmtrojnar
authored andcommitted
Fix OAEP source param
The only supported value is 1UL CKZ_DATA_SPECIFIED
1 parent 066ad4f commit 6ae925d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/p11_pkey.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ static int pkcs11_params_oaep(CK_RSA_PKCS_OAEP_PARAMS *oaep,
301301
if (!oaep->hashAlg || !oaep->mgf)
302302
return -1;
303303
/* we do not support the OAEP "label" parameter yet... */
304-
oaep->source = 0UL; /* empty parameter (label) */
305-
oaep->pSourceData = NULL;
304+
oaep->source = CKZ_DATA_SPECIFIED;
305+
oaep->pSourceData = NULL; /* empty parameter (label) */
306306
oaep->ulSourceDataLen = 0;
307307
return 0;
308308
}

0 commit comments

Comments
 (0)