FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/des3.c
/* Initialize Des3 for use with async device */
Initialize Des3 for use with async device
Initialize Des3 for use with async device
int wc_Des3Init(Des3* des3, void* heap, int devId)
{
    int ret = 0;
    if (des3 == NULL)
        return BAD_FUNC_ARG;
    des3->heap = heap;
#ifdef WOLF_CRYPTO_CB
    des3->devId = devId;
    des3->devCtx = NULL;
#else
    (void)devId;
#endif
#if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_3DES)
    ret = wolfAsync_DevCtxInit(&des3->asyncDev, WOLFSSL_ASYNC_MARKER_3DES,
                                                        des3->heap, devId);
#endif
    return ret;
}
int wc_Des3Init ( Des3 * des3 , void * heap , int devId ) { int ret = 0 ; if ( des3 == NULL ) return BAD_FUNC_ARG ; des3 -> heap = heap ; #ifdef WOLF_CRYPTO_CB des3 -> devId = devId ; des3 -> devCtx = NULL ; #else ( void ) devId ; #endif #if defined ( WOLFSSL_ASYNC_CRYPT ) && defined ( WC_ASYNC_ENABLE_3DES ) ret = wolfAsync_DevCtxInit ( & des3 -> asyncDev , WOLFSSL_ASYNC_MARKER_3DES , des3 -> heap , devId ) ; #endif return ret ; }
Initialize Des3 for use with async device
Initialize Des3 for use with async device