Skip to content

Commit f4c96fd

Browse files
committed
Fix OAEP source param
The only supported value is 1UL CKZ_DATA_SPECIFIED
1 parent 066ad4f commit f4c96fd

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
@@ -300,9 +300,9 @@ static int pkcs11_params_oaep(CK_RSA_PKCS_OAEP_PARAMS *oaep,
300300
oaep->mgf = pkcs11_md2ckg(mgf1_md);
301301
if (!oaep->hashAlg || !oaep->mgf)
302302
return -1;
303+
oaep->source = CKZ_DATA_SPECIFIED; /* always 1UL */
303304
/* we do not support the OAEP "label" parameter yet... */
304-
oaep->source = 0UL; /* empty parameter (label) */
305-
oaep->pSourceData = NULL;
305+
oaep->pSourceData = NULL; /* empty parameter (label) */
306306
oaep->ulSourceDataLen = 0;
307307
return 0;
308308
}

0 commit comments

Comments
 (0)