forked from wolfSSL/wolfssl
add comment that use is blocking and adjust indentation
This commit is contained in:
@@ -6497,6 +6497,7 @@ int wc_PKCS7_AddRecipient_KTRI(PKCS7* pkcs7, const byte* cert, word32 certSz,
|
|||||||
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
|
/* Currently the call to RSA public encrypt here is blocking @TODO */
|
||||||
do {
|
do {
|
||||||
ret = wc_AsyncWait(ret, &pubKey->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
ret = wc_AsyncWait(ret, &pubKey->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
@@ -8509,6 +8510,7 @@ static int wc_PKCS7_DecryptKtri(PKCS7* pkcs7, byte* in, word32 inSz,
|
|||||||
#endif
|
#endif
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
|
/* Currently the call to RSA decrypt here is blocking @TODO */
|
||||||
keySz = 0; /* set initial "ret" value to 0 */
|
keySz = 0; /* set initial "ret" value to 0 */
|
||||||
do {
|
do {
|
||||||
keySz = wc_AsyncWait(keySz, &privKey->asyncDev,
|
keySz = wc_AsyncWait(keySz, &privKey->asyncDev,
|
||||||
|
Reference in New Issue
Block a user