FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/des3.c
/* Free Des3 from use with async device */
Free Des3 from use with async device
Free Des3 from use with async device
void wc_Des3Free(Des3* des3)
{
    if (des3 == NULL)
        return;
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_3DES)
    wolfAsync_DevCtxFree(&des3->asyncDev, WOLFSSL_ASYNC_MARKER_3DES);
#endif 
#if defined(WOLF_CRYPTO_CB) || \
        (defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_3DES))
    ForceZero(des3->devKey, sizeof(des3->devKey));
#endif
}
void wc_Des3Free ( Des3 * des3 ) { if ( des3 == NULL ) return ; #if defined ( WOLFSSL_ASYNC_CRYPT ) && defined ( WC_ASYNC_ENABLE_3DES ) wolfAsync_DevCtxFree ( & des3 -> asyncDev , WOLFSSL_ASYNC_MARKER_3DES ) ; #endif #if defined ( WOLF_CRYPTO_CB ) || ( defined ( WOLFSSL_ASYNC_CRYPT ) && defined ( WC_ASYNC_ENABLE_3DES ) ) ForceZero ( des3 -> devKey , sizeof ( des3 -> devKey ) ) ; #endif }
Free Des3 from use with async device
Free Des3 from use with async device
/* WOLFSSL_ASYNC_CRYPT */