FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* copies structure in to the structure out
     *
     * returns WOLFSSL_SUCCESS on success */
copies structure in to the structure out
returns WOLFSSL_SUCCESS on success
copies structure in to the structure out returns WOLFSSL_SUCCESS on success
int wolfSSL_EVP_MD_CTX_copy_ex(WOLFSSL_EVP_MD_CTX *out, const WOLFSSL_EVP_MD_CTX *in)
    {
        if ((out == NULL) || (in == NULL)) return WOLFSSL_FAILURE;
        WOLFSSL_ENTER("EVP_CIPHER_MD_CTX_copy_ex");
        XMEMCPY(out, in, sizeof(WOLFSSL_EVP_MD_CTX));
        if (in->pctx != NULL) {
            out->pctx = wolfSSL_EVP_PKEY_CTX_new(in->pctx->pkey, NULL);
            if (out->pctx == NULL)
                return WOLFSSL_FAILURE;
        }
        return wolfSSL_EVP_MD_Copy_Hasher(out, (WOLFSSL_EVP_MD_CTX*)in);
    }
int wolfSSL_EVP_MD_CTX_copy_ex ( WOLFSSL_EVP_MD_CTX * out , const WOLFSSL_EVP_MD_CTX * in ) { if ( ( out == NULL ) || ( in == NULL ) ) return WOLFSSL_FAILURE ; WOLFSSL_ENTER ( " " ) ; XMEMCPY ( out , in , sizeof ( WOLFSSL_EVP_MD_CTX ) ) ; if ( in -> pctx != NULL ) { out -> pctx = wolfSSL_EVP_PKEY_CTX_new ( in -> pctx -> pkey , NULL ) ; if ( out -> pctx == NULL ) return WOLFSSL_FAILURE ; } return wolfSSL_EVP_MD_Copy_Hasher ( out , ( WOLFSSL_EVP_MD_CTX * ) in ) ; }
copies structure in to the structure out
 returns WOLFSSL_SUCCESS on success
copies structure in to the structure out returns WOLFSSL_SUCCESS on success