|
|
|
@ -89,42 +89,47 @@ int EVP_default_properties_enable_fips(OPENSSL_CTX *libctx, int enable);
|
|
|
|
|
# define EVP_PKEY_MO_DECRYPT 0x0008
|
|
|
|
|
|
|
|
|
|
# ifndef EVP_MD
|
|
|
|
|
EVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);
|
|
|
|
|
EVP_MD *EVP_MD_meth_dup(const EVP_MD *md);
|
|
|
|
|
void EVP_MD_meth_free(EVP_MD *md);
|
|
|
|
|
|
|
|
|
|
int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);
|
|
|
|
|
int EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize);
|
|
|
|
|
int EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize);
|
|
|
|
|
int EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags);
|
|
|
|
|
int EVP_MD_meth_set_init(EVP_MD *md, int (*init)(EVP_MD_CTX *ctx));
|
|
|
|
|
int EVP_MD_meth_set_update(EVP_MD *md, int (*update)(EVP_MD_CTX *ctx,
|
|
|
|
|
const void *data,
|
|
|
|
|
size_t count));
|
|
|
|
|
int EVP_MD_meth_set_final(EVP_MD *md, int (*final)(EVP_MD_CTX *ctx,
|
|
|
|
|
unsigned char *md));
|
|
|
|
|
int EVP_MD_meth_set_copy(EVP_MD *md, int (*copy)(EVP_MD_CTX *to,
|
|
|
|
|
const EVP_MD_CTX *from));
|
|
|
|
|
int EVP_MD_meth_set_cleanup(EVP_MD *md, int (*cleanup)(EVP_MD_CTX *ctx));
|
|
|
|
|
int EVP_MD_meth_set_ctrl(EVP_MD *md, int (*ctrl)(EVP_MD_CTX *ctx, int cmd,
|
|
|
|
|
int p1, void *p2));
|
|
|
|
|
|
|
|
|
|
int EVP_MD_meth_get_input_blocksize(const EVP_MD *md);
|
|
|
|
|
int EVP_MD_meth_get_result_size(const EVP_MD *md);
|
|
|
|
|
int EVP_MD_meth_get_app_datasize(const EVP_MD *md);
|
|
|
|
|
unsigned long EVP_MD_meth_get_flags(const EVP_MD *md);
|
|
|
|
|
int (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx);
|
|
|
|
|
int (*EVP_MD_meth_get_update(const EVP_MD *md))(EVP_MD_CTX *ctx,
|
|
|
|
|
const void *data,
|
|
|
|
|
size_t count);
|
|
|
|
|
int (*EVP_MD_meth_get_final(const EVP_MD *md))(EVP_MD_CTX *ctx,
|
|
|
|
|
unsigned char *md);
|
|
|
|
|
int (*EVP_MD_meth_get_copy(const EVP_MD *md))(EVP_MD_CTX *to,
|
|
|
|
|
const EVP_MD_CTX *from);
|
|
|
|
|
int (*EVP_MD_meth_get_cleanup(const EVP_MD *md))(EVP_MD_CTX *ctx);
|
|
|
|
|
int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
|
|
|
|
|
int p1, void *p2);
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(EVP_MD *EVP_MD_meth_new(int md_type, int pkey_type))
|
|
|
|
|
DEPRECATEDIN_3_0(EVP_MD *EVP_MD_meth_dup(const EVP_MD *md))
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_MD_meth_free(EVP_MD *md))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_init(EVP_MD *md,
|
|
|
|
|
int (*init)(EVP_MD_CTX *ctx)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_update(EVP_MD *md,
|
|
|
|
|
int (*update)(EVP_MD_CTX *ctx,
|
|
|
|
|
const void *data,
|
|
|
|
|
size_t count)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_final(EVP_MD *md,
|
|
|
|
|
int (*final)(EVP_MD_CTX *ctx,
|
|
|
|
|
unsigned char *md)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_copy(EVP_MD *md,
|
|
|
|
|
int (*copy)(EVP_MD_CTX *to,
|
|
|
|
|
const EVP_MD_CTX *from)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_cleanup(EVP_MD *md,
|
|
|
|
|
int (*cleanup)(EVP_MD_CTX *ctx)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_set_ctrl(EVP_MD *md,
|
|
|
|
|
int (*ctrl)(EVP_MD_CTX *ctx, int cmd,
|
|
|
|
|
int p1, void *p2)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_get_input_blocksize(const EVP_MD *md))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_get_result_size(const EVP_MD *md))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_MD_meth_get_app_datasize(const EVP_MD *md))
|
|
|
|
|
DEPRECATEDIN_3_0(unsigned long EVP_MD_meth_get_flags(const EVP_MD *md))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_update(const EVP_MD *md))
|
|
|
|
|
(EVP_MD_CTX *ctx, const void *data, size_t count))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_final(const EVP_MD *md))
|
|
|
|
|
(EVP_MD_CTX *ctx, unsigned char *md))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_copy(const EVP_MD *md))
|
|
|
|
|
(EVP_MD_CTX *to, const EVP_MD_CTX *from))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_cleanup(const EVP_MD *md))
|
|
|
|
|
(EVP_MD_CTX *ctx))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))
|
|
|
|
|
(EVP_MD_CTX *ctx, int cmd, int p1, void *p2))
|
|
|
|
|
/* digest can only handle a single block */
|
|
|
|
|
# define EVP_MD_FLAG_ONESHOT 0x0001
|
|
|
|
|
|
|
|
|
@ -199,51 +204,53 @@ int (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,
|
|
|
|
|
# define EVP_MD_CTX_FLAG_FINALISE 0x0200
|
|
|
|
|
/* NOTE: 0x0400 is reserved for internal usage */
|
|
|
|
|
|
|
|
|
|
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);
|
|
|
|
|
EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);
|
|
|
|
|
void EVP_CIPHER_meth_free(EVP_CIPHER *cipher);
|
|
|
|
|
|
|
|
|
|
int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);
|
|
|
|
|
int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);
|
|
|
|
|
int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);
|
|
|
|
|
int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
|
|
|
|
|
DEPRECATEDIN_3_0(EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type,
|
|
|
|
|
int block_size, int key_len))
|
|
|
|
|
DEPRECATEDIN_3_0(EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher))
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_CIPHER_meth_free(EVP_CIPHER *cipher))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher,
|
|
|
|
|
int iv_len))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher,
|
|
|
|
|
unsigned long flags))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher,
|
|
|
|
|
int ctx_size))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,
|
|
|
|
|
int (*init) (EVP_CIPHER_CTX *ctx,
|
|
|
|
|
const unsigned char *key,
|
|
|
|
|
const unsigned char *iv,
|
|
|
|
|
int enc));
|
|
|
|
|
int EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,
|
|
|
|
|
int (*do_cipher) (EVP_CIPHER_CTX *ctx,
|
|
|
|
|
unsigned char *out,
|
|
|
|
|
const unsigned char *in,
|
|
|
|
|
size_t inl));
|
|
|
|
|
int EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,
|
|
|
|
|
int (*cleanup) (EVP_CIPHER_CTX *));
|
|
|
|
|
int EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,
|
|
|
|
|
int (*set_asn1_parameters) (EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *));
|
|
|
|
|
int EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,
|
|
|
|
|
int (*get_asn1_parameters) (EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *));
|
|
|
|
|
int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,
|
|
|
|
|
int (*ctrl) (EVP_CIPHER_CTX *, int type,
|
|
|
|
|
int arg, void *ptr));
|
|
|
|
|
|
|
|
|
|
int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
|
|
|
|
|
const unsigned char *key,
|
|
|
|
|
const unsigned char *iv,
|
|
|
|
|
int enc);
|
|
|
|
|
int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,
|
|
|
|
|
unsigned char *out,
|
|
|
|
|
const unsigned char *in,
|
|
|
|
|
size_t inl);
|
|
|
|
|
int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *);
|
|
|
|
|
int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *);
|
|
|
|
|
int (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *);
|
|
|
|
|
int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,
|
|
|
|
|
int type, int arg,
|
|
|
|
|
void *ptr);
|
|
|
|
|
int enc)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_do_cipher
|
|
|
|
|
(EVP_CIPHER *cipher, int (*do_cipher) (EVP_CIPHER_CTX *ctx,
|
|
|
|
|
unsigned char *out,
|
|
|
|
|
const unsigned char *in,
|
|
|
|
|
size_t inl)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_cleanup
|
|
|
|
|
(EVP_CIPHER *cipher, int (*cleanup) (EVP_CIPHER_CTX *)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_set_asn1_params
|
|
|
|
|
(EVP_CIPHER *cipher, int (*set_asn1_parameters) (EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_get_asn1_params
|
|
|
|
|
(EVP_CIPHER *cipher, int (*get_asn1_parameters) (EVP_CIPHER_CTX *,
|
|
|
|
|
ASN1_TYPE *)))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_CIPHER_meth_set_ctrl
|
|
|
|
|
(EVP_CIPHER *cipher, int (*ctrl) (EVP_CIPHER_CTX *, int type, int arg,
|
|
|
|
|
void *ptr)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_init
|
|
|
|
|
(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, const unsigned char *key,
|
|
|
|
|
const unsigned char *iv, int enc))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))
|
|
|
|
|
(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in,
|
|
|
|
|
size_t inl))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))
|
|
|
|
|
(EVP_CIPHER_CTX *))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))
|
|
|
|
|
(EVP_CIPHER_CTX *, ASN1_TYPE *))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))
|
|
|
|
|
(EVP_CIPHER_CTX *, ASN1_TYPE *))
|
|
|
|
|
DEPRECATEDIN_3_0(int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))
|
|
|
|
|
(EVP_CIPHER_CTX *, int type, int arg, void *ptr))
|
|
|
|
|
|
|
|
|
|
/* Values for cipher flags */
|
|
|
|
|
|
|
|
|
@ -1528,16 +1535,17 @@ int EVP_PKEY_CTX_set_signature_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
|
|
|
|
|
*/
|
|
|
|
|
# define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4
|
|
|
|
|
|
|
|
|
|
const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type);
|
|
|
|
|
EVP_PKEY_METHOD *EVP_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);
|
|
|
|
|
int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);
|
|
|
|
|
int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);
|
|
|
|
|
size_t EVP_PKEY_meth_get_count(void);
|
|
|
|
|
const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);
|
|
|
|
|
DEPRECATEDIN_3_0(const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type))
|
|
|
|
|
DEPRECATEDIN_3_0(EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags))
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,
|
|
|
|
|
const EVP_PKEY_METHOD *meth))
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst,
|
|
|
|
|
const EVP_PKEY_METHOD *src))
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth))
|
|
|
|
|
DEPRECATEDIN_3_0(int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth))
|
|
|
|
|
DEPRECATEDIN_3_0(size_t EVP_PKEY_meth_get_count(void))
|
|
|
|
|
DEPRECATEDIN_3_0(const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx))
|
|
|
|
|
|
|
|
|
|
EVP_KEYMGMT *EVP_KEYMGMT_fetch(OPENSSL_CTX *ctx, const char *algorithm,
|
|
|
|
|
const char *properties);
|
|
|
|
@ -1710,243 +1718,185 @@ EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);
|
|
|
|
|
|
|
|
|
|
int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);
|
|
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
const 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,
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*init) (EVP_PKEY_CTX *ctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_copy
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst,
|
|
|
|
|
const EVP_PKEY_CTX *src)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_cleanup
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, void (*cleanup) (EVP_PKEY_CTX *ctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_verifyctx
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*verifyctx_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));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*digestsign) (EVP_MD_CTX *ctx,
|
|
|
|
|
unsigned char *sig,
|
|
|
|
|
size_t *siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*digestverify) (EVP_MD_CTX *ctx,
|
|
|
|
|
const unsigned char *sig,
|
|
|
|
|
size_t siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*check) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*check) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*check) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_set_digest_custom(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*digest_custom) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_MD_CTX *mctx));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_init(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pinit) (EVP_PKEY_CTX *ctx));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_copy(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pcopy) (EVP_PKEY_CTX *dst,
|
|
|
|
|
const EVP_PKEY_CTX *src));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_cleanup(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
void (**pcleanup) (EVP_PKEY_CTX *ctx));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pparamgen_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pparamgen) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pkeygen_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pkeygen) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_sign(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**psign_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**psign) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
unsigned char *sig, size_t *siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_verify(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pverify_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pverify) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
const unsigned char *sig,
|
|
|
|
|
size_t siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_verify_recover(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pverify_recover_init) (EVP_PKEY_CTX
|
|
|
|
|
*ctx),
|
|
|
|
|
int (**pverify_recover) (EVP_PKEY_CTX
|
|
|
|
|
*ctx,
|
|
|
|
|
unsigned char
|
|
|
|
|
*sig,
|
|
|
|
|
size_t *siglen,
|
|
|
|
|
const unsigned
|
|
|
|
|
char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_signctx(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**psignctx_init) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_MD_CTX *mctx),
|
|
|
|
|
int (**psignctx) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
unsigned char *sig,
|
|
|
|
|
size_t *siglen,
|
|
|
|
|
EVP_MD_CTX *mctx));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_verifyctx(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pverifyctx_init) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_MD_CTX *mctx),
|
|
|
|
|
int (**pverifyctx) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
const unsigned char *sig,
|
|
|
|
|
int siglen,
|
|
|
|
|
EVP_MD_CTX *mctx));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_encrypt(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pencrypt_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pencryptfn) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
unsigned char *out,
|
|
|
|
|
size_t *outlen,
|
|
|
|
|
const unsigned char *in,
|
|
|
|
|
size_t inlen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_decrypt(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pdecrypt) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
unsigned char *out,
|
|
|
|
|
size_t *outlen,
|
|
|
|
|
const unsigned char *in,
|
|
|
|
|
size_t inlen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_derive(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pderive_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pderive) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
unsigned char *key,
|
|
|
|
|
size_t *keylen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1,
|
|
|
|
|
void *p2),
|
|
|
|
|
int (**pctrl_str) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
const char *type,
|
|
|
|
|
const char *value));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**digestsign) (EVP_MD_CTX *ctx,
|
|
|
|
|
unsigned char *sig,
|
|
|
|
|
size_t *siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**digestverify) (EVP_MD_CTX *ctx,
|
|
|
|
|
const unsigned char *sig,
|
|
|
|
|
size_t siglen,
|
|
|
|
|
const unsigned char *tbs,
|
|
|
|
|
size_t tbslen));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pcheck) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pcheck) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pcheck) (EVP_PKEY *pkey));
|
|
|
|
|
|
|
|
|
|
void EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pdigest_custom) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_MD_CTX *mctx));
|
|
|
|
|
int (*verifyctx) (EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen,
|
|
|
|
|
EVP_MD_CTX *mctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(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)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_digestsign
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*digestsign) (EVP_MD_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|
|
|
|
const unsigned char *tbs, size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_digestverify
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (*digestverify) (EVP_MD_CTX *ctx, const unsigned char *sig,
|
|
|
|
|
size_t siglen, const unsigned char *tbs,
|
|
|
|
|
size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_check
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_public_check
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_param_check
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_set_digest_custom
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth, int (*digest_custom) (EVP_PKEY_CTX *ctx,
|
|
|
|
|
EVP_MD_CTX *mctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_init
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pinit) (EVP_PKEY_CTX *ctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_copy
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pcopy) (EVP_PKEY_CTX *dst,
|
|
|
|
|
const EVP_PKEY_CTX *src)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_cleanup
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, void (**pcleanup) (EVP_PKEY_CTX *ctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_paramgen
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pparamgen_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pparamgen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_keygen
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pkeygen_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pkeygen) (EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_sign
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**psign_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**psign) (EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|
|
|
|
const unsigned char *tbs, size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_verify
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pverify_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pverify) (EVP_PKEY_CTX *ctx, const unsigned char *sig,
|
|
|
|
|
size_t siglen, const unsigned char *tbs, size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_verify_recover
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pverify_recover_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pverify_recover) (EVP_PKEY_CTX *ctx, unsigned char *sig,
|
|
|
|
|
size_t *siglen, const unsigned char *tbs,
|
|
|
|
|
size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_signctx
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**psignctx_init) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx),
|
|
|
|
|
int (**psignctx) (EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|
|
|
|
EVP_MD_CTX *mctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_verifyctx
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pverifyctx_init) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx),
|
|
|
|
|
int (**pverifyctx) (EVP_PKEY_CTX *ctx, const unsigned char *sig,
|
|
|
|
|
int siglen, EVP_MD_CTX *mctx)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_encrypt
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pencrypt_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pencryptfn) (EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
|
|
|
|
|
const unsigned char *in, size_t inlen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_decrypt
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pdecrypt) (EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
|
|
|
|
|
const unsigned char *in, size_t inlen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_derive
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pderive_init) (EVP_PKEY_CTX *ctx),
|
|
|
|
|
int (**pderive) (EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_ctrl
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1, void *p2),
|
|
|
|
|
int (**pctrl_str) (EVP_PKEY_CTX *ctx, const char *type,
|
|
|
|
|
const char *value)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_digestsign
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**digestsign) (EVP_MD_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|
|
|
|
const unsigned char *tbs, size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_digestverify
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**digestverify) (EVP_MD_CTX *ctx, const unsigned char *sig,
|
|
|
|
|
size_t siglen, const unsigned char *tbs,
|
|
|
|
|
size_t tbslen)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_check
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_public_check
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_param_check
|
|
|
|
|
(const EVP_PKEY_METHOD *pmeth, int (**pcheck) (EVP_PKEY *pkey)))
|
|
|
|
|
|
|
|
|
|
DEPRECATEDIN_3_0(void EVP_PKEY_meth_get_digest_custom
|
|
|
|
|
(EVP_PKEY_METHOD *pmeth,
|
|
|
|
|
int (**pdigest_custom) (EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx)))
|
|
|
|
|
|
|
|
|
|
void EVP_KEYEXCH_free(EVP_KEYEXCH *exchange);
|
|
|
|
|
int EVP_KEYEXCH_up_ref(EVP_KEYEXCH *exchange);
|
|
|
|
|