Skip to content

Commit c25086b

Browse files
committed
Added useful QAT_DEBUG logging for ECC operations.
1 parent b9d0128 commit c25086b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

wolfcrypt/src/port/intel/quickassist.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3444,6 +3444,10 @@ int IntelQaEcdh(WC_ASYNC_DEV* dev, WC_BIGINT* k, WC_BIGINT* xG,
34443444
return BAD_FUNC_ARG;
34453445
}
34463446

3447+
#ifdef QAT_DEBUG
3448+
printf("IntelQaEcdh dev %p\n", dev);
3449+
#endif
3450+
34473451
/* setup operation */
34483452
opData = &dev->qat.op.ecc_ecdh.opData;
34493453
pXk = &dev->qat.op.ecc_ecdh.pXk;
@@ -3610,6 +3614,10 @@ int IntelQaEcdsaSign(WC_ASYNC_DEV* dev,
36103614
return BAD_FUNC_ARG;
36113615
}
36123616

3617+
#ifdef QAT_DEBUG
3618+
printf("IntelQaEcdsaSign dev %p\n", dev);
3619+
#endif
3620+
36133621
/* setup operation */
36143622
opData = &dev->qat.op.ecc_sign.opData;
36153623
pR = &dev->qat.op.ecc_sign.R;
@@ -3742,6 +3750,10 @@ int IntelQaEcdsaVerify(WC_ASYNC_DEV* dev, WC_BIGINT* m,
37423750
return BAD_FUNC_ARG;
37433751
}
37443752

3753+
#ifdef QAT_DEBUG
3754+
printf("IntelQaEcdsaVerify dev %p\n", dev);
3755+
#endif
3756+
37453757
/* setup operation */
37463758
opData = &dev->qat.op.ecc_verify.opData;
37473759

@@ -3871,6 +3883,10 @@ int IntelQaDhKeyGen(WC_ASYNC_DEV* dev, WC_BIGINT* p, WC_BIGINT* g,
38713883
return BAD_FUNC_ARG;
38723884
}
38733885

3886+
#ifdef QAT_DEBUG
3887+
printf("IntelQaDhKeyGen dev %p\n", dev);
3888+
#endif
3889+
38743890
/* setup operation */
38753891
opData = &dev->qat.op.dh_gen.opData;
38763892
pOut = &dev->qat.op.dh_gen.pOut;
@@ -4005,6 +4021,10 @@ int IntelQaDhAgree(WC_ASYNC_DEV* dev, WC_BIGINT* p,
40054021
return BAD_FUNC_ARG;
40064022
}
40074023

4024+
#ifdef QAT_DEBUG
4025+
printf("IntelQaDhAgree dev %p, agreeSz %d\n", dev, *agreeSz);
4026+
#endif
4027+
40084028
/* setup operation */
40094029
opData = &dev->qat.op.dh_agree.opData;
40104030
pOut = &dev->qat.op.dh_agree.pOut;

0 commit comments

Comments
 (0)