Functions | Variables
evp_ctx.c File Reference
#include <openssl/evp.h>
#include <string.h>
#include <openssl/digest.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "../internal.h"
#include "internal.h"
Include dependency graph for evp_ctx.c:

Go to the source code of this file.

Functions

int EVP_PKEY_CTX_ctrl (EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, int p1, void *p2)
 
EVP_PKEY_CTXEVP_PKEY_CTX_dup (EVP_PKEY_CTX *ctx)
 
void EVP_PKEY_CTX_free (EVP_PKEY_CTX *ctx)
 
EVP_PKEYEVP_PKEY_CTX_get0_pkey (EVP_PKEY_CTX *ctx)
 
EVP_PKEY_CTXEVP_PKEY_CTX_new (EVP_PKEY *pkey, ENGINE *e)
 
static EVP_PKEY_CTXevp_pkey_ctx_new (EVP_PKEY *pkey, ENGINE *e, int id)
 
EVP_PKEY_CTXEVP_PKEY_CTX_new_id (int id, ENGINE *e)
 
int EVP_PKEY_decrypt (EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, const uint8_t *in, size_t inlen)
 
int EVP_PKEY_decrypt_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_derive (EVP_PKEY_CTX *ctx, uint8_t *key, size_t *out_key_len)
 
int EVP_PKEY_derive_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_derive_set_peer (EVP_PKEY_CTX *ctx, EVP_PKEY *peer)
 
int EVP_PKEY_encrypt (EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, const uint8_t *in, size_t inlen)
 
int EVP_PKEY_encrypt_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_keygen (EVP_PKEY_CTX *ctx, EVP_PKEY **out_pkey)
 
int EVP_PKEY_keygen_init (EVP_PKEY_CTX *ctx)
 
static const EVP_PKEY_METHODevp_pkey_meth_find (int type)
 
int EVP_PKEY_paramgen (EVP_PKEY_CTX *ctx, EVP_PKEY **out_pkey)
 
int EVP_PKEY_paramgen_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_sign (EVP_PKEY_CTX *ctx, uint8_t *sig, size_t *sig_len, const uint8_t *digest, size_t digest_len)
 
int EVP_PKEY_sign_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_verify (EVP_PKEY_CTX *ctx, const uint8_t *sig, size_t sig_len, const uint8_t *digest, size_t digest_len)
 
int EVP_PKEY_verify_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_verify_recover (EVP_PKEY_CTX *ctx, uint8_t *out, size_t *out_len, const uint8_t *sig, size_t sig_len)
 
int EVP_PKEY_verify_recover_init (EVP_PKEY_CTX *ctx)
 

Variables

static const EVP_PKEY_METHOD *const evp_methods []
 

Function Documentation

◆ EVP_PKEY_CTX_ctrl()

int EVP_PKEY_CTX_ctrl ( EVP_PKEY_CTX ctx,
int  keytype,
int  optype,
int  cmd,
int  p1,
void *  p2 
)

Definition at line 190 of file evp_ctx.c.

◆ EVP_PKEY_CTX_dup()

EVP_PKEY_CTX* EVP_PKEY_CTX_dup ( EVP_PKEY_CTX ctx)

Definition at line 152 of file evp_ctx.c.

◆ EVP_PKEY_CTX_free()

void EVP_PKEY_CTX_free ( EVP_PKEY_CTX ctx)

Definition at line 140 of file evp_ctx.c.

◆ EVP_PKEY_CTX_get0_pkey()

EVP_PKEY* EVP_PKEY_CTX_get0_pkey ( EVP_PKEY_CTX ctx)

Definition at line 188 of file evp_ctx.c.

◆ EVP_PKEY_CTX_new()

EVP_PKEY_CTX* EVP_PKEY_CTX_new ( EVP_PKEY pkey,
ENGINE e 
)

Definition at line 132 of file evp_ctx.c.

◆ evp_pkey_ctx_new()

static EVP_PKEY_CTX* evp_pkey_ctx_new ( EVP_PKEY pkey,
ENGINE e,
int  id 
)
static

Definition at line 86 of file evp_ctx.c.

◆ EVP_PKEY_CTX_new_id()

EVP_PKEY_CTX* EVP_PKEY_CTX_new_id ( int  id,
ENGINE e 
)

Definition at line 136 of file evp_ctx.c.

◆ EVP_PKEY_decrypt()

int EVP_PKEY_decrypt ( EVP_PKEY_CTX ctx,
uint8_t out,
size_t *  outlen,
const uint8_t in,
size_t  inlen 
)

Definition at line 292 of file evp_ctx.c.

◆ EVP_PKEY_decrypt_init()

int EVP_PKEY_decrypt_init ( EVP_PKEY_CTX ctx)

Definition at line 283 of file evp_ctx.c.

◆ EVP_PKEY_derive()

int EVP_PKEY_derive ( EVP_PKEY_CTX ctx,
uint8_t key,
size_t *  out_key_len 
)

Definition at line 396 of file evp_ctx.c.

◆ EVP_PKEY_derive_init()

int EVP_PKEY_derive_init ( EVP_PKEY_CTX ctx)

Definition at line 327 of file evp_ctx.c.

◆ EVP_PKEY_derive_set_peer()

int EVP_PKEY_derive_set_peer ( EVP_PKEY_CTX ctx,
EVP_PKEY peer 
)

Definition at line 336 of file evp_ctx.c.

◆ EVP_PKEY_encrypt()

int EVP_PKEY_encrypt ( EVP_PKEY_CTX ctx,
uint8_t out,
size_t *  outlen,
const uint8_t in,
size_t  inlen 
)

Definition at line 270 of file evp_ctx.c.

◆ EVP_PKEY_encrypt_init()

int EVP_PKEY_encrypt_init ( EVP_PKEY_CTX ctx)

Definition at line 261 of file evp_ctx.c.

◆ EVP_PKEY_keygen()

int EVP_PKEY_keygen ( EVP_PKEY_CTX ctx,
EVP_PKEY **  out_pkey 
)

Definition at line 417 of file evp_ctx.c.

◆ EVP_PKEY_keygen_init()

int EVP_PKEY_keygen_init ( EVP_PKEY_CTX ctx)

Definition at line 408 of file evp_ctx.c.

◆ evp_pkey_meth_find()

static const EVP_PKEY_METHOD* evp_pkey_meth_find ( int  type)
static

Definition at line 76 of file evp_ctx.c.

◆ EVP_PKEY_paramgen()

int EVP_PKEY_paramgen ( EVP_PKEY_CTX ctx,
EVP_PKEY **  out_pkey 
)

Definition at line 456 of file evp_ctx.c.

◆ EVP_PKEY_paramgen_init()

int EVP_PKEY_paramgen_init ( EVP_PKEY_CTX ctx)

Definition at line 447 of file evp_ctx.c.

◆ EVP_PKEY_sign()

int EVP_PKEY_sign ( EVP_PKEY_CTX ctx,
uint8_t sig,
size_t *  sig_len,
const uint8_t digest,
size_t  digest_len 
)

Definition at line 225 of file evp_ctx.c.

◆ EVP_PKEY_sign_init()

int EVP_PKEY_sign_init ( EVP_PKEY_CTX ctx)

Definition at line 214 of file evp_ctx.c.

◆ EVP_PKEY_verify()

int EVP_PKEY_verify ( EVP_PKEY_CTX ctx,
const uint8_t sig,
size_t  sig_len,
const uint8_t digest,
size_t  digest_len 
)

Definition at line 248 of file evp_ctx.c.

◆ EVP_PKEY_verify_init()

int EVP_PKEY_verify_init ( EVP_PKEY_CTX ctx)

Definition at line 238 of file evp_ctx.c.

◆ EVP_PKEY_verify_recover()

int EVP_PKEY_verify_recover ( EVP_PKEY_CTX ctx,
uint8_t out,
size_t *  out_len,
const uint8_t sig,
size_t  sig_len 
)

Definition at line 314 of file evp_ctx.c.

◆ EVP_PKEY_verify_recover_init()

int EVP_PKEY_verify_recover_init ( EVP_PKEY_CTX ctx)

Definition at line 305 of file evp_ctx.c.

Variable Documentation

◆ evp_methods

const EVP_PKEY_METHOD* const evp_methods[]
static
Initial value:

Definition at line 69 of file evp_ctx.c.

x25519_pkey_meth
#define x25519_pkey_meth
Definition: boringssl_prefix_symbols.h:3449
ec_pkey_meth
#define ec_pkey_meth
Definition: boringssl_prefix_symbols.h:3113
ed25519_pkey_meth
#define ed25519_pkey_meth
Definition: boringssl_prefix_symbols.h:3156
rsa_pkey_meth
#define rsa_pkey_meth
Definition: boringssl_prefix_symbols.h:3362


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:12