FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/sha3.c
/* Copy the state of the SHA3 operation.
 *
 * src  wc_Sha3 object holding state top copy.
 * dst  wc_Sha3 object to copy into.
 * returns 0 on success.
 */
Copy the state of the SHA3 operation.
src  wc_Sha3 object holding state top copy.
dst  wc_Sha3 object to copy into.
returns 0 on success.
Copy the state of the SHA3 operation . src wc_Sha3 object holding state top copy . dst wc_Sha3 object to copy into . returns 0 on success .
static int wc_Sha3Copy(wc_Sha3* src, wc_Sha3* dst)
{
    int ret = 0;
    if (src == NULL || dst == NULL)
        return BAD_FUNC_ARG;
    XMEMCPY(dst, src, sizeof(wc_Sha3));
#ifdef WOLFSSL_ASYNC_CRYPT
    ret = wolfAsync_DevCopy(&src->asyncDev, &dst->asyncDev);
#endif
#if defined(WOLFSSL_HASH_FLAGS) || defined(WOLF_CRYPTO_CB)
     dst->flags |= WC_HASH_FLAG_ISCOPY;
#endif
    return ret;
}
static int wc_Sha3Copy ( wc_Sha3 * src , wc_Sha3 * dst ) { int ret = 0 ; if ( src == NULL || dst == NULL ) return BAD_FUNC_ARG ; XMEMCPY ( dst , src , sizeof ( wc_Sha3 ) ) ; #ifdef WOLFSSL_ASYNC_CRYPT ret = wolfAsync_DevCopy ( & src -> asyncDev , & dst -> asyncDev ) ; #endif #if defined ( WOLFSSL_HASH_FLAGS ) || defined ( WOLF_CRYPTO_CB ) dst -> flags |= WC_HASH_FLAG_ISCOPY ; #endif return ret ; }
Copy the state of the SHA3 operation.
Copy the state of the SHA3 operation .