FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* Update an EVP_DigestSign/Verify operation.
 * Update a digest for RSA and ECC keys, or HMAC for HMAC key.
 */
Update an EVP_DigestSign/Verify operation.
Update an EVP_DigestSign / Verify operation .
static int wolfssl_evp_digest_pk_update(WOLFSSL_EVP_MD_CTX *ctx,
                                        const void *d, unsigned int cnt)
{
    if (ctx->pctx == NULL) {
        if (!ctx->isHMAC)
            return WOLFSSL_FAILURE;
        if (wc_HmacUpdate(&ctx->hash.hmac, (const byte *)d, cnt) != 0)
            return WOLFSSL_FAILURE;
        return WOLFSSL_SUCCESS;
    }
    else
        return wolfSSL_EVP_DigestUpdate(ctx, d, cnt);
}
static int wolfssl_evp_digest_pk_update ( WOLFSSL_EVP_MD_CTX * ctx , const void * d , unsigned int cnt ) { if ( ctx -> pctx == NULL ) { if ( ! ctx -> isHMAC ) return WOLFSSL_FAILURE ; if ( wc_HmacUpdate ( & ctx -> hash . hmac , ( const byte * ) d , cnt ) != 0 ) return WOLFSSL_FAILURE ; return WOLFSSL_SUCCESS ; } else return wolfSSL_EVP_DigestUpdate ( ctx , d , cnt ) ; }
Update an EVP_DigestSign/Verify operation.
Update an EVP_DigestSign / Verify operation .