FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* Initialize a WOLFSSL_EVP_PKEY_CTX structure to encrypt data
 *
 * ctx    WOLFSSL_EVP_PKEY_CTX structure to use with encryption
 *
 * Returns WOLFSSL_FAILURE on failure and WOLFSSL_SUCCESS on success
 */
Initialize a WOLFSSL_EVP_PKEY_CTX structure to encrypt data
ctx    WOLFSSL_EVP_PKEY_CTX structure to use with encryption

Returns WOLFSSL_FAILURE on failure and WOLFSSL_SUCCESS on success
Initialize a WOLFSSL_EVP_PKEY_CTX structure to encrypt data ctx WOLFSSL_EVP_PKEY_CTX structure to use with encryption Returns WOLFSSL_FAILURE on failure and WOLFSSL_SUCCESS on success
int wolfSSL_EVP_PKEY_encrypt_init(WOLFSSL_EVP_PKEY_CTX *ctx)
{
    if (ctx == NULL) return WOLFSSL_FAILURE;
    WOLFSSL_ENTER("EVP_PKEY_encrypt_init");
    switch (ctx->pkey->type) {
    case EVP_PKEY_RSA:
        ctx->op = EVP_PKEY_OP_ENCRYPT;
        return WOLFSSL_SUCCESS;
    case EVP_PKEY_EC:
        WOLFSSL_MSG("not implemented");
        FALL_THROUGH;
    default:
        break;
    }
    return WOLFSSL_FAILURE;
}
int wolfSSL_EVP_PKEY_encrypt_init ( WOLFSSL_EVP_PKEY_CTX * ctx ) { if ( ctx == NULL ) return WOLFSSL_FAILURE ; WOLFSSL_ENTER ( " " ) ; switch ( ctx -> pkey -> type ) { case EVP_PKEY_RSA : ctx -> op = EVP_PKEY_OP_ENCRYPT ; return WOLFSSL_SUCCESS ; case EVP_PKEY_EC : WOLFSSL_MSG ( " " ) ; FALL_THROUGH ; default : break ; } return WOLFSSL_FAILURE ; }
Initialize a WOLFSSL_EVP_PKEY_CTX structure to encrypt data
 ctx    WOLFSSL_EVP_PKEY_CTX structure to use with encryption
Initialize a WOLFSSL_EVP_PKEY_CTX structure to encrypt data ctx WOLFSSL_EVP_PKEY_CTX structure to use with encryption