OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Typedefs | Functions
pmeth_lib.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
#include "asn1_locl.h"
#include "evp_locl.h"

Go to the source code of this file.

Typedefs

typedef int sk_cmp_fn_type (const char *const *a, const char *const *b)
 

Functions

 STACK_OF (EVP_PKEY_METHOD)
 
 DECLARE_OBJ_BSEARCH_CMP_FN (const EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, pmeth)
 
 IMPLEMENT_OBJ_BSEARCH_CMP_FN (const EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *, pmeth)
 
const EVP_PKEY_METHODEVP_PKEY_meth_find (int type)
 
EVP_PKEY_METHODEVP_PKEY_meth_new (int id, int flags)
 
void EVP_PKEY_meth_get0_info (int *ppkey_id, int *pflags, const EVP_PKEY_METHOD *meth)
 
void EVP_PKEY_meth_copy (EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src)
 
void EVP_PKEY_meth_free (EVP_PKEY_METHOD *pmeth)
 
EVP_PKEY_CTXEVP_PKEY_CTX_new (EVP_PKEY *pkey, ENGINE *e)
 
EVP_PKEY_CTXEVP_PKEY_CTX_new_id (int id, ENGINE *e)
 
EVP_PKEY_CTXEVP_PKEY_CTX_dup (EVP_PKEY_CTX *pctx)
 
int EVP_PKEY_meth_add0 (const EVP_PKEY_METHOD *pmeth)
 
void EVP_PKEY_CTX_free (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_CTX_ctrl (EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, int p1, void *p2)
 
int EVP_PKEY_CTX_ctrl_str (EVP_PKEY_CTX *ctx, const char *name, const char *value)
 
int EVP_PKEY_CTX_get_operation (EVP_PKEY_CTX *ctx)
 
void EVP_PKEY_CTX_set0_keygen_info (EVP_PKEY_CTX *ctx, int *dat, int datlen)
 
void EVP_PKEY_CTX_set_data (EVP_PKEY_CTX *ctx, void *data)
 
voidEVP_PKEY_CTX_get_data (EVP_PKEY_CTX *ctx)
 
EVP_PKEYEVP_PKEY_CTX_get0_pkey (EVP_PKEY_CTX *ctx)
 
EVP_PKEYEVP_PKEY_CTX_get0_peerkey (EVP_PKEY_CTX *ctx)
 
void EVP_PKEY_CTX_set_app_data (EVP_PKEY_CTX *ctx, void *data)
 
voidEVP_PKEY_CTX_get_app_data (EVP_PKEY_CTX *ctx)
 
void EVP_PKEY_meth_set_init (EVP_PKEY_METHOD *pmeth, int(*init)(EVP_PKEY_CTX *ctx))
 
void EVP_PKEY_meth_set_copy (EVP_PKEY_METHOD *pmeth, int(*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src))
 
void EVP_PKEY_meth_set_cleanup (EVP_PKEY_METHOD *pmeth, void(*cleanup)(EVP_PKEY_CTX *ctx))
 
void EVP_PKEY_meth_set_paramgen (EVP_PKEY_METHOD *pmeth, int(*paramgen_init)(EVP_PKEY_CTX *ctx), int(*paramgen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey))
 
void EVP_PKEY_meth_set_keygen (EVP_PKEY_METHOD *pmeth, int(*keygen_init)(EVP_PKEY_CTX *ctx), int(*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey))
 
void EVP_PKEY_meth_set_sign (EVP_PKEY_METHOD *pmeth, int(*sign_init)(EVP_PKEY_CTX *ctx), int(*sign)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen))
 
void EVP_PKEY_meth_set_verify (EVP_PKEY_METHOD *pmeth, int(*verify_init)(EVP_PKEY_CTX *ctx), int(*verify)(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, const unsigned char *tbs, size_t tbslen))
 
void EVP_PKEY_meth_set_verify_recover (EVP_PKEY_METHOD *pmeth, int(*verify_recover_init)(EVP_PKEY_CTX *ctx), int(*verify_recover)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen))
 
void EVP_PKEY_meth_set_signctx (EVP_PKEY_METHOD *pmeth, int(*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), int(*signctx)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, EVP_MD_CTX *mctx))
 
void EVP_PKEY_meth_set_verifyctx (EVP_PKEY_METHOD *pmeth, int(*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), int(*verifyctx)(EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen, EVP_MD_CTX *mctx))
 
void EVP_PKEY_meth_set_encrypt (EVP_PKEY_METHOD *pmeth, int(*encrypt_init)(EVP_PKEY_CTX *ctx), int(*encryptfn)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen))
 
void EVP_PKEY_meth_set_decrypt (EVP_PKEY_METHOD *pmeth, int(*decrypt_init)(EVP_PKEY_CTX *ctx), int(*decrypt)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen))
 
void EVP_PKEY_meth_set_derive (EVP_PKEY_METHOD *pmeth, int(*derive_init)(EVP_PKEY_CTX *ctx), int(*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen))
 
void EVP_PKEY_meth_set_ctrl (EVP_PKEY_METHOD *pmeth, int(*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2), int(*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value))
 

Typedef Documentation

typedef int sk_cmp_fn_type(const char *const *a, const char *const *b)

Definition at line 70 of file pmeth_lib.c.

Function Documentation

DECLARE_OBJ_BSEARCH_CMP_FN ( const EVP_PKEY_METHOD ,
const EVP_PKEY_METHOD ,
pmeth   
)
int EVP_PKEY_CTX_ctrl ( EVP_PKEY_CTX ctx,
int  keytype,
int  optype,
int  cmd,
int  p1,
void p2 
)

Definition at line 384 of file pmeth_lib.c.

int EVP_PKEY_CTX_ctrl_str ( EVP_PKEY_CTX ctx,
const char *  name,
const char *  value 
)

Definition at line 417 of file pmeth_lib.c.

EVP_PKEY_CTX* EVP_PKEY_CTX_dup ( EVP_PKEY_CTX pctx)

Definition at line 307 of file pmeth_lib.c.

void EVP_PKEY_CTX_free ( EVP_PKEY_CTX ctx)

Definition at line 365 of file pmeth_lib.c.

EVP_PKEY* EVP_PKEY_CTX_get0_peerkey ( EVP_PKEY_CTX ctx)

Definition at line 466 of file pmeth_lib.c.

EVP_PKEY* EVP_PKEY_CTX_get0_pkey ( EVP_PKEY_CTX ctx)

Definition at line 461 of file pmeth_lib.c.

void* EVP_PKEY_CTX_get_app_data ( EVP_PKEY_CTX ctx)

Definition at line 476 of file pmeth_lib.c.

void* EVP_PKEY_CTX_get_data ( EVP_PKEY_CTX ctx)

Definition at line 456 of file pmeth_lib.c.

int EVP_PKEY_CTX_get_operation ( EVP_PKEY_CTX ctx)

Definition at line 440 of file pmeth_lib.c.

EVP_PKEY_CTX* EVP_PKEY_CTX_new ( EVP_PKEY pkey,
ENGINE e 
)

Definition at line 297 of file pmeth_lib.c.

EVP_PKEY_CTX* EVP_PKEY_CTX_new_id ( int  id,
ENGINE e 
)

Definition at line 302 of file pmeth_lib.c.

void EVP_PKEY_CTX_set0_keygen_info ( EVP_PKEY_CTX ctx,
int *  dat,
int  datlen 
)

Definition at line 445 of file pmeth_lib.c.

void EVP_PKEY_CTX_set_app_data ( EVP_PKEY_CTX ctx,
void data 
)

Definition at line 471 of file pmeth_lib.c.

void EVP_PKEY_CTX_set_data ( EVP_PKEY_CTX ctx,
void data 
)

Definition at line 451 of file pmeth_lib.c.

int EVP_PKEY_meth_add0 ( const EVP_PKEY_METHOD pmeth)

Definition at line 351 of file pmeth_lib.c.

void EVP_PKEY_meth_copy ( EVP_PKEY_METHOD dst,
const EVP_PKEY_METHOD src 
)

Definition at line 250 of file pmeth_lib.c.

const EVP_PKEY_METHOD* EVP_PKEY_meth_find ( int  type)

Definition at line 108 of file pmeth_lib.c.

void EVP_PKEY_meth_free ( EVP_PKEY_METHOD pmeth)

Definition at line 291 of file pmeth_lib.c.

void EVP_PKEY_meth_get0_info ( int *  ppkey_id,
int *  pflags,
const EVP_PKEY_METHOD meth 
)

Definition at line 241 of file pmeth_lib.c.

EVP_PKEY_METHOD* EVP_PKEY_meth_new ( int  id,
int  flags 
)

Definition at line 200 of file pmeth_lib.c.

void EVP_PKEY_meth_set_cleanup ( EVP_PKEY_METHOD pmeth,
void(*)(EVP_PKEY_CTX *ctx)  cleanup 
)

Definition at line 493 of file pmeth_lib.c.

void EVP_PKEY_meth_set_copy ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src)  copy 
)

Definition at line 487 of file pmeth_lib.c.

void EVP_PKEY_meth_set_ctrl ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)  ctrl,
int(*)(EVP_PKEY_CTX *ctx, const char *type, const char *value)  ctrl_str 
)

Definition at line 587 of file pmeth_lib.c.

void EVP_PKEY_meth_set_decrypt ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  decrypt_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)  decrypt 
)

Definition at line 570 of file pmeth_lib.c.

void EVP_PKEY_meth_set_derive ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  derive_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)  derive 
)

Definition at line 579 of file pmeth_lib.c.

void EVP_PKEY_meth_set_encrypt ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  encrypt_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)  encryptfn 
)

Definition at line 561 of file pmeth_lib.c.

void EVP_PKEY_meth_set_init ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  init 
)

Definition at line 481 of file pmeth_lib.c.

void EVP_PKEY_meth_set_keygen ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  keygen_init,
int(*)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)  keygen 
)

Definition at line 507 of file pmeth_lib.c.

void EVP_PKEY_meth_set_paramgen ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  paramgen_init,
int(*)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)  paramgen 
)

Definition at line 499 of file pmeth_lib.c.

void EVP_PKEY_meth_set_sign ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  sign_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen)  sign 
)

Definition at line 515 of file pmeth_lib.c.

void EVP_PKEY_meth_set_signctx ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx)  signctx_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, EVP_MD_CTX *mctx)  signctx 
)

Definition at line 543 of file pmeth_lib.c.

void EVP_PKEY_meth_set_verify ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  verify_init,
int(*)(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, const unsigned char *tbs, size_t tbslen)  verify 
)

Definition at line 524 of file pmeth_lib.c.

void EVP_PKEY_meth_set_verify_recover ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx)  verify_recover_init,
int(*)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen)  verify_recover 
)

Definition at line 533 of file pmeth_lib.c.

void EVP_PKEY_meth_set_verifyctx ( EVP_PKEY_METHOD pmeth,
int(*)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx)  verifyctx_init,
int(*)(EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen, EVP_MD_CTX *mctx)  verifyctx 
)

Definition at line 552 of file pmeth_lib.c.

IMPLEMENT_OBJ_BSEARCH_CMP_FN ( const EVP_PKEY_METHOD ,
const EVP_PKEY_METHOD ,
pmeth   
)
STACK_OF ( EVP_PKEY_METHOD  )

Definition at line 73 of file pmeth_lib.c.