FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* create a PKEY contxt and return it */
create a PKEY contxt and return it
create a PKEY contxt and return it
WOLFSSL_EVP_PKEY_CTX *wolfSSL_EVP_PKEY_CTX_new_id(int id, WOLFSSL_ENGINE *e)
{
    WOLFSSL_EVP_PKEY* pkey;
    WOLFSSL_EVP_PKEY_CTX* ctx = NULL;
    WOLFSSL_ENTER("wolfSSL_EVP_PKEY_CTX_new_id");
    pkey = wolfSSL_EVP_PKEY_new_ex(NULL);
    if (pkey) {
        pkey->type = id;
        ctx = wolfSSL_EVP_PKEY_CTX_new(pkey, e);
        if (ctx == NULL) {
            wolfSSL_EVP_PKEY_free(pkey);
        }
    }
    return ctx;
}
WOLFSSL_EVP_PKEY_CTX * wolfSSL_EVP_PKEY_CTX_new_id ( int id , WOLFSSL_ENGINE * e ) { WOLFSSL_EVP_PKEY * pkey ; WOLFSSL_EVP_PKEY_CTX * ctx = NULL ; WOLFSSL_ENTER ( " " ) ; pkey = wolfSSL_EVP_PKEY_new_ex ( NULL ) ; if ( pkey ) { pkey -> type = id ; ctx = wolfSSL_EVP_PKEY_CTX_new ( pkey , e ) ; if ( ctx == NULL ) { wolfSSL_EVP_PKEY_free ( pkey ) ; } } return ctx ; }
create a PKEY contxt and return it
create a PKEY contxt and return it