/openbsd/lib/libcrypto/evp/ |
H A D | pmeth_lib.c | 116 static EVP_PKEY_CTX * 119 EVP_PKEY_CTX *pkey_ctx = NULL; in evp_pkey_ctx_new() 155 EVP_PKEY_CTX * 162 EVP_PKEY_CTX * 169 EVP_PKEY_CTX * 170 EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) in EVP_PKEY_CTX_dup() 172 EVP_PKEY_CTX *rctx = NULL; in EVP_PKEY_CTX_dup() 202 EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) in EVP_PKEY_CTX_free() 329 EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx) in EVP_PKEY_CTX_get_data() 336 EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) in EVP_PKEY_CTX_get0_pkey() [all …]
|
H A D | evp_local.h | 201 EVP_PKEY_CTX *pctx; 280 int (*init)(EVP_PKEY_CTX *ctx); 281 int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src); 282 void (*cleanup)(EVP_PKEY_CTX *ctx); 284 int (*paramgen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey); 286 int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey); 288 int (*sign_init)(EVP_PKEY_CTX *ctx); 292 int (*verify_init)(EVP_PKEY_CTX *ctx); 293 int (*verify)(EVP_PKEY_CTX *ctx, 297 int (*verify_recover)(EVP_PKEY_CTX *ctx, [all …]
|
H A D | pmeth_gn.c | 72 EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_paramgen_init() 86 EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) in EVP_PKEY_paramgen() 118 EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_keygen_init() 132 EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) in EVP_PKEY_keygen() 163 EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb) in EVP_PKEY_CTX_set_cb() 170 EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx) in EVP_PKEY_CTX_get_cb() 183 EVP_PKEY_CTX *ctx = gcb->arg; in trans_cb() 190 evp_pkey_set_cb_translate(BN_GENCB *cb, EVP_PKEY_CTX *ctx) in evp_pkey_set_cb_translate() 196 EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx) in EVP_PKEY_CTX_get_keygen_info() 209 EVP_PKEY_CTX *mac_ctx = NULL; in EVP_PKEY_new_mac_key()
|
H A D | pmeth_fn.c | 85 EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_sign_init() 104 EVP_PKEY_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in EVP_PKEY_sign() 121 EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_verify_init() 156 EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_verify_recover_init() 188 EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_encrypt_init() 202 EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in EVP_PKEY_encrypt() 219 EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_decrypt_init() 233 EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in EVP_PKEY_decrypt() 250 EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx) in EVP_PKEY_derive_init() 269 EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer) in EVP_PKEY_derive_set_peer() [all …]
|
H A D | evp.h | 934 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx); 935 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx); 951 void *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx); 959 int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx); 962 int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx); 968 int EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx); 971 int EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx); 975 int EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx); 979 typedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx); 981 int EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx); [all …]
|
H A D | m_sigver.c | 76 do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in do_sigver_init() 126 EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestSignInit() 134 EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, in EVP_DigestVerifyInit() 145 EVP_PKEY_CTX *pctx = ctx->pctx; in evp_digestsignfinal_sigctx_custom() 146 EVP_PKEY_CTX *dctx = NULL; in evp_digestsignfinal_sigctx_custom() 170 EVP_PKEY_CTX *pctx = ctx->pctx; in EVP_DigestSignFinal()
|
H A D | p_verify.c | 75 EVP_PKEY_CTX *pkctx = NULL; in EVP_VerifyFinal()
|
/openbsd/lib/libcrypto/cmac/ |
H A D | cm_pmeth.c | 67 pkey_cmac_init(EVP_PKEY_CTX *ctx) in pkey_cmac_init() 77 pkey_cmac_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_cmac_copy() 87 pkey_cmac_cleanup(EVP_PKEY_CTX *ctx) in pkey_cmac_cleanup() 93 pkey_cmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_cmac_keygen() 123 cmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in cmac_signctx_init() 131 cmac_signctx(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in cmac_signctx() 138 pkey_cmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_cmac_ctrl() 169 pkey_cmac_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_cmac_ctrl_str()
|
/openbsd/lib/libcrypto/dh/ |
H A D | dh_pmeth.c | 88 pkey_dh_init(EVP_PKEY_CTX *ctx) in pkey_dh_init() 107 pkey_dh_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_dh_copy() 122 pkey_dh_cleanup(EVP_PKEY_CTX *ctx) in pkey_dh_cleanup() 130 pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dh_ctrl() 155 pkey_dh_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_dh_ctrl_str() 176 pkey_dh_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dh_paramgen() 204 pkey_dh_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dh_keygen() 233 pkey_dh_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) in pkey_dh_derive()
|
/openbsd/lib/libcrypto/hmac/ |
H A D | hm_pmeth.c | 79 pkey_hmac_init(EVP_PKEY_CTX *ctx) in pkey_hmac_init() 96 pkey_hmac_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_hmac_copy() 117 pkey_hmac_cleanup(EVP_PKEY_CTX *ctx) in pkey_hmac_cleanup() 130 pkey_hmac_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_hmac_keygen() 163 hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in hmac_signctx_init() 174 hmac_signctx(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in hmac_signctx() 194 pkey_hmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_hmac_ctrl() 225 pkey_hmac_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_hmac_ctrl_str()
|
/openbsd/lib/libcrypto/dsa/ |
H A D | dsa_pmeth.c | 88 pkey_dsa_init(EVP_PKEY_CTX *ctx) in pkey_dsa_init() 108 pkey_dsa_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_dsa_copy() 124 pkey_dsa_cleanup(EVP_PKEY_CTX *ctx) in pkey_dsa_cleanup() 132 pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *out_siglen, in pkey_dsa_sign() 158 pkey_dsa_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, in pkey_dsa_verify() 176 pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dsa_ctrl() 246 pkey_dsa_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_dsa_ctrl_str() 276 pkey_dsa_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dsa_paramgen() 306 pkey_dsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_dsa_keygen()
|
/openbsd/lib/libcrypto/sm2/ |
H A D | sm2_pmeth.c | 45 pkey_sm2_init(EVP_PKEY_CTX *ctx) in pkey_sm2_init() 58 pkey_sm2_cleanup(EVP_PKEY_CTX *ctx) in pkey_sm2_cleanup() 72 pkey_sm2_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_sm2_copy() 109 pkey_sm2_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in pkey_sm2_sign() 136 pkey_sm2_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, in pkey_sm2_verify() 143 pkey_sm2_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in pkey_sm2_encrypt() 160 pkey_sm2_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in pkey_sm2_decrypt() 177 pkey_sm2_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_sm2_ctrl() 278 pkey_sm2_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_sm2_ctrl_str()
|
/openbsd/lib/libcrypto/ec/ |
H A D | ec_pmeth.c | 96 pkey_ec_init(EVP_PKEY_CTX *ctx) in pkey_ec_init() 114 pkey_ec_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_ec_copy() 149 pkey_ec_cleanup(EVP_PKEY_CTX *ctx) in pkey_ec_cleanup() 163 pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in pkey_ec_sign() 191 pkey_ec_verify(EVP_PKEY_CTX *ctx, in pkey_ec_verify() 210 pkey_ec_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) in pkey_ec_derive() 249 pkey_ec_kdf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) in pkey_ec_kdf_derive() 286 pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_ec_ctrl() 421 pkey_ec_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_ec_ctrl_str() 465 pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_ec_paramgen() [all …]
|
H A D | ecx_methods.c | 716 pkey_ecx_keygen(EVP_PKEY_CTX *pkey_ctx, EVP_PKEY *pkey) in pkey_ecx_keygen() 738 pkey_ecx_derive(EVP_PKEY_CTX *pkey_ctx, unsigned char *out_key, in pkey_ecx_derive() 773 pkey_ecx_ctrl(EVP_PKEY_CTX *pkey_ctx, int op, int arg1, void *arg2) in pkey_ecx_ctrl() 825 EVP_PKEY_CTX *pkey_ctx; in pkey_ecx_digestsign() 858 EVP_PKEY_CTX *pkey_ctx; in pkey_ecx_digestverify() 872 pkey_ecx_ed_ctrl(EVP_PKEY_CTX *pkey_ctx, int op, int arg1, void *arg2) in pkey_ecx_ed_ctrl()
|
/openbsd/usr.bin/openssl/ |
H A D | genpkey.c | 68 static int init_keygen_file(BIO * err, EVP_PKEY_CTX **pctx, const char *file); 69 static int genpkey_cb(EVP_PKEY_CTX * ctx); 73 EVP_PKEY_CTX **ctx; 222 EVP_PKEY_CTX *ctx = NULL; in genpkey_main() 318 init_keygen_file(BIO * err, EVP_PKEY_CTX ** pctx, const char *file) in init_keygen_file() 322 EVP_PKEY_CTX *ctx = NULL; in init_keygen_file() 358 init_gen_str(BIO * err, EVP_PKEY_CTX ** pctx, const char *algname, int do_param) in init_gen_str() 361 EVP_PKEY_CTX *ctx = NULL; in init_gen_str() 401 genpkey_cb(EVP_PKEY_CTX * ctx) in genpkey_cb()
|
H A D | pkeyutl.c | 73 EVP_PKEY_CTX *ctx; 95 static int do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, 543 do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, in do_keyop()
|
H A D | apps.h | 232 int pkey_ctrl_string(EVP_PKEY_CTX *ctx, char *value); 233 int init_gen_str(BIO *err, EVP_PKEY_CTX **pctx, const char *algname,
|
/openbsd/lib/libcrypto/kdf/ |
H A D | hkdf_evp.c | 75 pkey_hkdf_init(EVP_PKEY_CTX *ctx) in pkey_hkdf_init() 90 pkey_hkdf_cleanup(EVP_PKEY_CTX *ctx) in pkey_hkdf_cleanup() 100 pkey_hkdf_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_hkdf_ctrl() 167 pkey_hkdf_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, in pkey_hkdf_ctrl_str() 216 pkey_hkdf_derive_init(EVP_PKEY_CTX *ctx) in pkey_hkdf_derive_init() 228 pkey_hkdf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, in pkey_hkdf_derive()
|
H A D | tls1_prf.c | 81 pkey_tls1_prf_init(EVP_PKEY_CTX *ctx) in pkey_tls1_prf_init() 95 pkey_tls1_prf_cleanup(EVP_PKEY_CTX *ctx) in pkey_tls1_prf_cleanup() 104 pkey_tls1_prf_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_tls1_prf_ctrl() 149 pkey_tls1_prf_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) in pkey_tls1_prf_ctrl_str() 292 pkey_tls1_prf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *key_len) in pkey_tls1_prf_derive()
|
/openbsd/lib/libcrypto/rsa/ |
H A D | rsa_pmeth.c | 107 pkey_rsa_init(EVP_PKEY_CTX *ctx) in pkey_rsa_init() 133 pkey_rsa_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) in pkey_rsa_copy() 163 setup_tbuf(RSA_PKEY_CTX *ctx, EVP_PKEY_CTX *pk) in setup_tbuf() 175 pkey_rsa_cleanup(EVP_PKEY_CTX *ctx) in pkey_rsa_cleanup() 188 pkey_rsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, in pkey_rsa_sign() 349 pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in pkey_rsa_encrypt() 376 pkey_rsa_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, in pkey_rsa_decrypt() 449 pkey_rsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_rsa_ctrl() 754 rsa_set_pss_param(RSA *rsa, EVP_PKEY_CTX *ctx) in rsa_set_pss_param() 775 pkey_rsa_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) in pkey_rsa_keygen() [all …]
|
H A D | rsa_ameth.c | 701 rsa_ctx_to_pss(EVP_PKEY_CTX *pkey_ctx) in rsa_ctx_to_pss() 769 rsa_pss_to_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pkey_ctx, in rsa_pss_to_ctx() 912 EVP_PKEY_CTX *pkey_ctx = CMS_SignerInfo_get0_pkey_ctx(si); in rsa_cms_verify() 961 rsa_alg_set_pss_padding(X509_ALGOR *alg, EVP_PKEY_CTX *pkey_ctx) in rsa_alg_set_pss_padding() 989 rsa_alg_set_oaep_padding(X509_ALGOR *alg, EVP_PKEY_CTX *pkey_ctx) in rsa_alg_set_oaep_padding() 1049 EVP_PKEY_CTX *pkey_ctx; in rsa_cms_sign() 1072 EVP_PKEY_CTX *pkey_ctx = ctx->pctx; in rsa_item_sign() 1114 EVP_PKEY_CTX *pkctx; in rsa_cms_decrypt() 1190 EVP_PKEY_CTX *pkey_ctx; in rsa_cms_encrypt()
|
/openbsd/regress/lib/libcrypto/sm2/ |
H A D | sm2evptest.c | 69 EVP_PKEY_CTX *verify_ctx = NULL; in test_EVP_SM2_verify() 106 EVP_PKEY_CTX *pctx = NULL; in test_EVP_SM2() 107 EVP_PKEY_CTX *sign_ctx = NULL; in test_EVP_SM2() 108 EVP_PKEY_CTX *verify_ctx = NULL; in test_EVP_SM2() 109 EVP_PKEY_CTX *kctx = NULL; in test_EVP_SM2() 114 EVP_PKEY_CTX *cctx = NULL; in test_EVP_SM2()
|
/openbsd/usr.sbin/acme-client/ |
H A D | key.c | 42 EVP_PKEY_CTX *ctx = NULL; in rsa_key_create() 81 EVP_PKEY_CTX *ctx = NULL; in ec_key_create()
|
/openbsd/lib/libcrypto/cms/ |
H A D | cms_local.h | 139 EVP_PKEY_CTX *pctx; 199 EVP_PKEY_CTX *pctx; 209 EVP_PKEY_CTX *pctx;
|
/openbsd/lib/libfido2/src/ |
H A D | ecdh.c | 39 EVP_PKEY_CTX *ctx = NULL; in hkdf_sha256() 120 EVP_PKEY_CTX *ctx = NULL; in do_ecdh()
|