| /src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| kdf.h | 37 # define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \ 38 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 41 # define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \ 42 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 45 # define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \ 46 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 49 # define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \ 50 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \ 53 # define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \ 54 EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| m_sigver.c | 24 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 28 if (ctx->pctx == NULL) 29 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); 30 if (ctx->pctx == NULL) 33 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { 48 if (ctx->pctx->pmeth->verifyctx_init) { 49 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) 51 ctx->pctx->operation = EVP_PKEY_OP_VERIFYCTX; 52 } else if (ctx->pctx->pmeth->digestverify != 0) 104 EVP_PKEY_CTX *pctx = ctx->pctx; local [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| m_sigver.c | 39 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 64 if (ctx->pctx == NULL) { 67 ctx->pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, props); 69 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); 71 if (ctx->pctx == NULL) 74 locpctx = ctx->pctx; 213 if (pctx != NULL) 214 *pctx = locpctx; 304 if (ctx->pctx->pmeth == NULL) { 309 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) 409 EVP_PKEY_CTX *pctx = ctx->pctx; local 439 EVP_PKEY_CTX *pctx = ctx->pctx; local 472 EVP_PKEY_CTX *dctx, *pctx = ctx->pctx; local 570 EVP_PKEY_CTX *pctx = ctx->pctx; local 599 EVP_PKEY_CTX *dctx, *pctx = ctx->pctx; local 663 EVP_PKEY_CTX *pctx = ctx->pctx; local [all...] |
| p_seal.c | 27 EVP_PKEY_CTX *pctx = NULL; local 60 pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pubk[i], NULL); 61 if (pctx == NULL) { 66 if (EVP_PKEY_encrypt_init(pctx) <= 0 67 || EVP_PKEY_encrypt(pctx, ek[i], &keylen, key, keylen) <= 0) 70 EVP_PKEY_CTX_free(pctx); 72 pctx = NULL; 75 EVP_PKEY_CTX_free(pctx);
|
| p_open.c | 25 EVP_PKEY_CTX *pctx = NULL; local 36 if ((pctx = EVP_PKEY_CTX_new(priv, NULL)) == NULL) { 41 if (EVP_PKEY_decrypt_init(pctx) <= 0 42 || EVP_PKEY_decrypt(pctx, NULL, &keylen, ek, ekl) <= 0) 50 if (EVP_PKEY_decrypt(pctx, key, &keylen, ek, ekl) <= 0) 59 EVP_PKEY_CTX_free(pctx);
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| pkey_meth_kdf_test.c | 22 EVP_PKEY_CTX *pctx; local 26 if ((pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL)) == NULL) { 30 if (EVP_PKEY_derive_init(pctx) <= 0) { 34 if (EVP_PKEY_CTX_set_tls1_prf_md(pctx, EVP_sha256()) <= 0) { 38 if (EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, 45 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 52 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 58 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 65 if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) { 81 EVP_PKEY_CTX_free(pctx); 88 EVP_PKEY_CTX *pctx; local 155 EVP_PKEY_CTX *pctx; local [all...] |
| evp_pkey_ctx_new_from_name.c | 8 EVP_PKEY_CTX *pctx = NULL; local 10 pctx = EVP_PKEY_CTX_new_from_name(NULL, "NO_SUCH_ALGORITHM", NULL); 11 EVP_PKEY_CTX_free(pctx);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| pkey_meth_kdf_test.c | 22 EVP_PKEY_CTX *pctx; local 26 if ((pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL)) == NULL) { 30 if (EVP_PKEY_derive_init(pctx) <= 0) { 34 if (EVP_PKEY_CTX_set_tls1_prf_md(pctx, EVP_sha256()) <= 0) { 38 if (EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, 44 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 50 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 55 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, 61 if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) { 77 EVP_PKEY_CTX_free(pctx); 84 EVP_PKEY_CTX *pctx; local 151 EVP_PKEY_CTX *pctx; local [all...] |
| evp_pkey_ctx_new_from_name.c | 8 EVP_PKEY_CTX *pctx = NULL; local 10 pctx = EVP_PKEY_CTX_new_from_name(NULL, "NO_SUCH_ALGORITHM", NULL); 11 EVP_PKEY_CTX_free(pctx);
|
| /src/external/mpl/bind/dist/lib/isccfg/ |
| parser.c | 80 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) 86 cfg_obj_destroy(pctx, &(obj)); \ 94 free_tuple(cfg_parser_t *pctx, cfg_obj_t *obj); 97 parse_list(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 100 print_list(cfg_printer_t *pctx, const cfg_obj_t *obj); 103 free_list(cfg_parser_t *pctx, cfg_obj_t *obj); 106 create_listelt(cfg_parser_t *pctx, cfg_listelt_t **eltp); 109 create_string(cfg_parser_t *pctx, const char *contents, const cfg_type_t *type, 113 free_string(cfg_parser_t *pctx, cfg_obj_t *obj) 264 cfg_printer_t pctx; local 497 cfg_parser_t *pctx; local 716 cfg_parser_t *pctx; local 3754 cfg_parser_t *pctx = (cfg_parser_t *)userarg; local 3853 cfg_printer_t pctx; local [all...] |
| namedconf.c | 36 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) 42 cfg_obj_destroy(pctx, &(obj)); \ 50 parse_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 53 parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, 57 parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 59 print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj); 62 doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type); 65 print_keyvalue(cfg_printer_t *pctx, const cfg_obj_t *obj); 68 doc_keyvalue(cfg_printer_t *pctx, const cfg_type_t *type) 4085 cfg_printer_t pctx; local [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isccfg/ |
| parser.c | 81 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) 95 cfg_obj_destroy(pctx, &(obj)); \ 103 free_tuple(cfg_parser_t *pctx, cfg_obj_t *obj); 106 parse_list(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 109 print_list(cfg_printer_t *pctx, const cfg_obj_t *obj); 112 free_list(cfg_parser_t *pctx, cfg_obj_t *obj); 115 create_listelt(cfg_parser_t *pctx, cfg_listelt_t **eltp); 118 create_string(cfg_parser_t *pctx, const char *contents, const cfg_type_t *type, 122 free_string(cfg_parser_t *pctx, cfg_obj_t *obj) 269 cfg_printer_t pctx; local 502 cfg_parser_t *pctx; local 720 cfg_parser_t *pctx; local 3922 cfg_parser_t *pctx = (cfg_parser_t *)userarg; local 4021 cfg_printer_t pctx; local [all...] |
| namedconf.c | 38 #define TOKEN_STRING(pctx) (pctx->token.value.as_textregion.base) 52 cfg_obj_destroy(pctx, &(obj)); \ 60 parse_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 63 parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, 67 parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 69 print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj); 72 doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type); 75 print_keyvalue(cfg_printer_t *pctx, const cfg_obj_t *obj); 78 doc_keyvalue(cfg_printer_t *pctx, const cfg_type_t *type) 3807 cfg_printer_t pctx; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| pkey_meth_kdf_test.c | 21 EVP_PKEY_CTX *pctx; local 24 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_TLS1_PRF, NULL); 26 if (EVP_PKEY_derive_init(pctx) <= 0) { 30 if (EVP_PKEY_CTX_set_tls1_prf_md(pctx, EVP_sha256()) <= 0) { 34 if (EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, "secret", 6) <= 0) { 38 if (EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, "seed", 4) <= 0) { 42 if (EVP_PKEY_derive(pctx, out, &outlen) <= 0) { 56 EVP_PKEY_CTX_free(pctx); 62 EVP_PKEY_CTX *pctx; local 65 pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL) 107 EVP_PKEY_CTX *pctx; local [all...] |
| /src/external/bsd/libfido2/dist/src/ |
| rs1.c | 32 EVP_PKEY_CTX *pctx = NULL; local 46 if ((pctx = EVP_PKEY_CTX_new(pkey, NULL)) == NULL || 47 EVP_PKEY_verify_init(pctx) != 1 || 48 EVP_PKEY_CTX_set_rsa_padding(pctx, RSA_PKCS1_PADDING) != 1 || 49 EVP_PKEY_CTX_set_signature_md(pctx, md) != 1) { 54 if (EVP_PKEY_verify(pctx, sig->ptr, sig->len, dgst->ptr, 62 EVP_PKEY_CTX_free(pctx);
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/siphash/ |
| siphash_pmeth.c | 29 SIPHASH_PKEY_CTX *pctx; local 31 if ((pctx = OPENSSL_zalloc(sizeof(*pctx))) == NULL) { 35 pctx->ktmp.type = V_ASN1_OCTET_STRING; 37 EVP_PKEY_CTX_set_data(ctx, pctx); 44 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local 46 if (pctx != NULL) { 47 OPENSSL_clear_free(pctx->ktmp.data, pctx->ktmp.length); 48 OPENSSL_clear_free(pctx, sizeof(*pctx)) 75 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local 87 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(EVP_MD_CTX_pkey_ctx(ctx)); local 95 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local 109 SIPHASH_PKEY_CTX *pctx = ctx->data; local 119 SIPHASH_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local [all...] |
| /src/external/mpl/bind/dist/lib/isccfg/include/isccfg/ |
| grammar.h | 192 cfg_parser_t *pctx; member in struct:cfg_obj 334 cfg_gettoken(cfg_parser_t *pctx, int options); 337 cfg_peektoken(cfg_parser_t *pctx, int options); 340 cfg_ungettoken(cfg_parser_t *pctx); 345 cfg_create_obj(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **objp); 348 cfg_print_rawuint(cfg_printer_t *pctx, unsigned int u); 351 cfg_parse_uint32(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 354 cfg_print_uint32(cfg_printer_t *pctx, const cfg_obj_t *obj); 357 cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj); 360 cfg_parse_qstring(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isccfg/include/isccfg/ |
| grammar.h | 218 cfg_parser_t *pctx; member in struct:cfg_obj 356 cfg_gettoken(cfg_parser_t *pctx, int options); 359 cfg_peektoken(cfg_parser_t *pctx, int options); 362 cfg_ungettoken(cfg_parser_t *pctx); 367 cfg_create_obj(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **objp); 370 cfg_print_rawuint(cfg_printer_t *pctx, unsigned int u); 373 cfg_parse_uint32(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); 376 cfg_print_uint32(cfg_printer_t *pctx, const cfg_obj_t *obj); 379 cfg_print_uint64(cfg_printer_t *pctx, const cfg_obj_t *obj); 382 cfg_parse_qstring(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/poly1305/ |
| poly1305_pmeth.c | 29 POLY1305_PKEY_CTX *pctx; local 31 if ((pctx = OPENSSL_zalloc(sizeof(*pctx))) == NULL) { 35 pctx->ktmp.type = V_ASN1_OCTET_STRING; 37 EVP_PKEY_CTX_set_data(ctx, pctx); 44 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local 46 if (pctx != NULL) { 47 OPENSSL_clear_free(pctx->ktmp.data, pctx->ktmp.length); 48 OPENSSL_clear_free(pctx, sizeof(*pctx)) 75 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local 87 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(EVP_MD_CTX_pkey_ctx(ctx)); local 95 POLY1305_PKEY_CTX *pctx = ctx->data; local 108 POLY1305_PKEY_CTX *pctx = ctx->data; local 118 POLY1305_PKEY_CTX *pctx = EVP_PKEY_CTX_get_data(ctx); local [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| m_sigver.c | 37 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, 56 if (ctx->pctx == NULL) { 59 ctx->pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, props); 61 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); 63 if (ctx->pctx == NULL) 68 locpctx = ctx->pctx; 206 if (pctx != NULL) 207 *pctx = locpctx; 304 if (ctx->pctx->pmeth == NULL) { 309 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) 407 EVP_PKEY_CTX *pctx = ctx->pctx; local 453 EVP_PKEY_CTX *pctx = ctx->pctx; local 502 EVP_PKEY_CTX *dctx = NULL, *pctx = ctx->pctx; local 620 EVP_PKEY_CTX *pctx = ctx->pctx; local 672 EVP_PKEY_CTX *dctx = NULL, *pctx = ctx->pctx; local 757 EVP_PKEY_CTX *pctx = ctx->pctx; local [all...] |
| p_seal.c | 26 EVP_PKEY_CTX *pctx = NULL; local 60 pctx = EVP_PKEY_CTX_new_from_pkey(libctx, pubk[i], NULL); 61 if (pctx == NULL) { 66 if (EVP_PKEY_encrypt_init(pctx) <= 0 67 || EVP_PKEY_encrypt(pctx, ek[i], &outlen, key, keylen) <= 0) 70 EVP_PKEY_CTX_free(pctx); 72 pctx = NULL; 75 EVP_PKEY_CTX_free(pctx);
|
| p_open.c | 25 EVP_PKEY_CTX *pctx = NULL; local 36 if ((pctx = EVP_PKEY_CTX_new(priv, NULL)) == NULL) { 41 if (EVP_PKEY_decrypt_init(pctx) <= 0 42 || EVP_PKEY_decrypt(pctx, NULL, &keylen, ek, ekl) <= 0) 48 if (EVP_PKEY_decrypt(pctx, key, &keylen, ek, ekl) <= 0) 57 EVP_PKEY_CTX_free(pctx);
|
| /src/crypto/external/apache2/openssl/dist/crypto/cms/ |
| cms_ec.c | 24 EVP_PKEY_CTX *pctx = NULL; local 49 pctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", propq); 50 if (pctx == NULL || EVP_PKEY_paramgen_init(pctx) <= 0) 53 || EVP_PKEY_CTX_set_group_name(pctx, groupname) <= 0) { 57 if (EVP_PKEY_paramgen(pctx, &pkey) <= 0) 59 EVP_PKEY_CTX_free(pctx); 68 EVP_PKEY_CTX_free(pctx); 73 static int ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, 92 pk = EVP_PKEY_CTX_get0_pkey(pctx); 228 EVP_PKEY_CTX *pctx; local 258 EVP_PKEY_CTX *pctx; local [all...] |
| /src/crypto/external/apache2/openssl/dist/fuzz/ |
| decoder.c | 16 static ASN1_PCTX *pctx; variable 27 pctx = ASN1_PCTX_new(); 28 ASN1_PCTX_set_flags(pctx, ASN1_PCTX_FLAGS_SHOW_ABSENT | ASN1_PCTX_FLAGS_SHOW_SEQUENCE | ASN1_PCTX_FLAGS_SHOW_SSOF | ASN1_PCTX_FLAGS_SHOW_TYPE | ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME); 29 ASN1_PCTX_set_str_flags(pctx, ASN1_STRFLGS_UTF8_CONVERT | ASN1_STRFLGS_SHOW_TYPE | ASN1_STRFLGS_DUMP_ALL); 52 EVP_PKEY_print_public(bio, pkey, 1, pctx); 53 EVP_PKEY_print_private(bio, pkey, 1, pctx); 54 EVP_PKEY_print_params(bio, pkey, 1, pctx); 89 ASN1_PCTX_free(pctx);
|
| /src/crypto/external/bsd/openssl/dist/crypto/cms/ |
| cms_ec.c | 23 EVP_PKEY_CTX *pctx = NULL; local 48 pctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", propq); 49 if (pctx == NULL || EVP_PKEY_paramgen_init(pctx) <= 0) 52 || EVP_PKEY_CTX_set_group_name(pctx, groupname) <= 0) { 56 if (EVP_PKEY_paramgen(pctx, &pkey) <= 0) 58 EVP_PKEY_CTX_free(pctx); 67 EVP_PKEY_CTX_free(pctx); 72 static int ecdh_cms_set_peerkey(EVP_PKEY_CTX *pctx, 91 pk = EVP_PKEY_CTX_get0_pkey(pctx); 221 EVP_PKEY_CTX *pctx; local 251 EVP_PKEY_CTX *pctx; local [all...] |