add comment that use is blocking and adjust indentation

This commit is contained in:
Jacob Barthelmeh
2021-02-20 02:54:10 +07:00
parent 8d7c61cf10
commit 3079ca4d6a

View File

@ -6497,6 +6497,7 @@ int wc_PKCS7_AddRecipient_KTRI(PKCS7* pkcs7, const byte* cert, word32 certSz,
#ifdef WOLFSSL_ASYNC_CRYPT
/* Currently the call to RSA public encrypt here is blocking @TODO */
do {
ret = wc_AsyncWait(ret, &pubKey->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
if (ret >= 0)
@ -8509,6 +8510,7 @@ static int wc_PKCS7_DecryptKtri(PKCS7* pkcs7, byte* in, word32 inSz,
#endif
if (ret == 0) {
#ifdef WOLFSSL_ASYNC_CRYPT
/* Currently the call to RSA decrypt here is blocking @TODO */
keySz = 0; /* set initial "ret" value to 0 */
do {
keySz = wc_AsyncWait(keySz, &privKey->asyncDev,