FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* returns cipher using provided ctx type */
returns cipher using provided ctx type
returns cipher using provided ctx type
const WOLFSSL_EVP_CIPHER *wolfSSL_EVP_CIPHER_CTX_cipher(
    const WOLFSSL_EVP_CIPHER_CTX *ctx)
{
    const struct cipher* c;
    if (!ctx || !ctx->cipherType) {
        return NULL;
    }
    for (c = cipher_tbl; c->type != 0; c++) {
        if (ctx->cipherType == c->type) {
            return wolfSSL_EVP_get_cipherbyname(c->name);
        }
    }
    return NULL;
}
const WOLFSSL_EVP_CIPHER * wolfSSL_EVP_CIPHER_CTX_cipher ( const WOLFSSL_EVP_CIPHER_CTX * ctx ) { const struct cipher * c ; if ( ! ctx || ! ctx -> cipherType ) { return NULL ; } for ( c = cipher_tbl ; c -> type != 0 ; c ++ ) { if ( ctx -> cipherType == c -> type ) { return wolfSSL_EVP_get_cipherbyname ( c -> name ) ; } } return NULL ; }
returns cipher using provided ctx type
returns cipher using provided ctx type