FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* returns the NID of message digest used by the ctx */
returns the NID of message digest used by the ctx
returns the NID of message digest used by the ctx
int wolfSSL_EVP_MD_CTX_type(const WOLFSSL_EVP_MD_CTX *ctx)
    {
        const struct s_ent *ent;
        WOLFSSL_ENTER("EVP_MD_CTX_type");
        if (ctx) {
            if (ctx->isHMAC) {
                return NID_hmac;
            }
            for(ent = md_tbl; ent->name != NULL; ent++) {
                if (ctx->macType == ent->macType) {
                    return ent->nid;
                }
            }
            return ctx->macType;
        }
        return 0;
    }
int wolfSSL_EVP_MD_CTX_type ( const WOLFSSL_EVP_MD_CTX * ctx ) { const struct s_ent * ent ; WOLFSSL_ENTER ( " " ) ; if ( ctx ) { if ( ctx -> isHMAC ) { return NID_hmac ; } for ( ent = md_tbl ; ent -> name != NULL ; ent ++ ) { if ( ctx -> macType == ent -> macType ) { return ent -> nid ; } } return ctx -> macType ; } return 0 ; }
returns the NID of message digest used by the ctx
returns the NID of message digest used by the ctx
/* Return whatever we got */