Check return value of EVP_PKEY_new