| /src/crypto/external/apache2/openssl/dist/providers/implementations/keymgmt/ |
| mac_legacy_kmgmt.c | 375 struct mac_gen_ctx *gctx = NULL; local 380 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 381 gctx->libctx = libctx; 382 gctx->selection = selection; 384 return gctx; 390 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); local 392 if (gctx != NULL && !mac_gen_set_params(gctx, params)) { 393 mac_gen_cleanup(gctx); 402 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); local 413 struct mac_gen_ctx *gctx = genctx; local 437 struct mac_gen_ctx *gctx = genctx; local 474 struct mac_gen_ctx *gctx = genctx; local 517 struct mac_gen_ctx *gctx = genctx; local [all...] |
| ml_dsa_kmgmt.c | 452 struct ml_dsa_gen_ctx *gctx = NULL; local 457 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 458 gctx->provctx = provctx; 459 if (!ml_dsa_gen_set_params(gctx, params)) { 460 OPENSSL_free(gctx); 461 gctx = NULL; 464 return gctx; 469 struct ml_dsa_gen_ctx *gctx = genctx; local 474 key = ossl_prov_ml_dsa_new(gctx->provctx, gctx->propq, evp_type) 499 struct ml_dsa_gen_ctx *gctx = genctx; local 539 struct ml_dsa_gen_ctx *gctx = genctx; local [all...] |
| slh_dsa_kmgmt.c | 271 struct slh_dsa_gen_ctx *gctx = NULL; local 276 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 277 gctx->libctx = libctx; 278 if (!slh_dsa_gen_set_params(gctx, params)) { 279 OPENSSL_free(gctx); 280 gctx = NULL; 283 return gctx; 353 struct slh_dsa_gen_ctx *gctx = genctx; local 359 key = ossl_slh_dsa_key_new(gctx->libctx, gctx->propq, alg) 384 struct slh_dsa_gen_ctx *gctx = genctx; local 426 struct slh_dsa_gen_ctx *gctx = genctx; local [all...] |
| template_kmgmt.c | 323 struct template_gen_ctx *gctx = genctx; local 325 if (gctx == NULL) 328 debug_print("empty gen_set params called for %p\n", gctx); 335 struct template_gen_ctx *gctx = NULL; local 344 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 345 gctx->provctx = provctx; 346 gctx->selection = selection; 348 if (!template_gen_set_params(gctx, params)) { 349 OPENSSL_free(gctx); 367 struct template_gen_ctx *gctx = (struct template_gen_ctx *)vctx; local 387 struct template_gen_ctx *gctx = genctx; local [all...] |
| rsa_kmgmt.c | 436 struct rsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 441 return gctx->cb(params, gctx->cbarg); 448 struct rsa_gen_ctx *gctx = NULL; local 456 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 457 gctx->libctx = libctx; 458 if ((gctx->pub_exp = BN_new()) == NULL 459 || !BN_set_word(gctx->pub_exp, RSA_F4)) { 462 gctx->nbits = 2048 499 struct rsa_gen_ctx *gctx = genctx; local 573 struct rsa_gen_ctx *gctx = genctx; local 635 struct rsa_gen_ctx *gctx = genctx; local [all...] |
| ml_kem_kmgmt.c | 683 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local 686 if (gctx == NULL) 695 OPENSSL_free(gctx->propq); 696 if ((gctx->propq = OPENSSL_strdup(p->data)) == NULL) 704 gctx->seed = gctx->seedbuf; 705 if (OSSL_PARAM_get_octet_string(p, (void **)&gctx->seed, len, &len) 711 gctx->seed = NULL; 721 PROV_ML_KEM_GEN_CTX *gctx = NULL; local 729 || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL 754 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local 797 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local [all...] |
| mlx_kmgmt.c | 629 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local 632 if (gctx == NULL) 641 OPENSSL_free(gctx->propq); 642 if ((gctx->propq = OPENSSL_strdup(p->data)) == NULL) 651 PROV_ML_KEM_GEN_CTX *gctx = NULL; local 659 || (gctx = OPENSSL_zalloc(sizeof(*gctx))) == NULL) 662 gctx->evp_type = evp_type; 663 gctx->libctx = libctx; 664 gctx->selection = selection 685 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local 719 PROV_ML_KEM_GEN_CTX *gctx = vgctx; local [all...] |
| dh_kmgmt.c | 451 struct dh_gen_ctx *gctx = NULL; local 459 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 460 gctx->selection = selection; 461 gctx->libctx = libctx; 462 gctx->pbits = 2048; 463 gctx->qbits = 224; 464 gctx->mdname = NULL; 466 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) 470 gctx->gen_type = (type == DH_FLAG_TYPE_DHX 501 struct dh_gen_ctx *gctx = genctx; local 527 struct dh_gen_ctx *gctx = genctx; local 603 struct dh_gen_ctx *gctx = genctx; local 657 struct dh_gen_ctx *gctx = genctx; local 685 struct dh_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 697 struct dh_gen_ctx *gctx = genctx; local 818 struct dh_gen_ctx *gctx = genctx; local [all...] |
| dsa_kmgmt.c | 410 struct dsa_gen_ctx *gctx = NULL; local 415 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 416 gctx->selection = selection; 417 gctx->libctx = libctx; 418 gctx->pbits = 2048; 419 gctx->qbits = 224; 421 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_186_4; 423 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_DEFAULT; 425 gctx->gindex = -1 439 struct dsa_gen_ctx *gctx = genctx; local 465 struct dsa_gen_ctx *gctx = genctx; local 559 struct dsa_gen_ctx *gctx = genctx; local 583 struct dsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 594 struct dsa_gen_ctx *gctx = genctx; local 689 struct dsa_gen_ctx *gctx = genctx; local [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| e_aria.c | 219 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 226 &gctx->ks.ks); 227 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, 237 if (iv == NULL && gctx->iv_set) 238 iv = gctx->iv; 240 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); 241 gctx->iv_set = 1; 243 gctx->key_set = 1 258 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,c); local 405 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 461 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 504 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/ |
| mac_legacy_kmgmt.c | 384 struct mac_gen_ctx *gctx = NULL; local 389 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 390 gctx->libctx = libctx; 391 gctx->selection = selection; 393 return gctx; 399 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); local 401 if (gctx != NULL && !mac_gen_set_params(gctx, params)) { 402 mac_gen_cleanup(gctx); 411 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); local 422 struct mac_gen_ctx *gctx = genctx; local 448 struct mac_gen_ctx *gctx = genctx; local 485 struct mac_gen_ctx *gctx = genctx; local 528 struct mac_gen_ctx *gctx = genctx; local [all...] |
| rsa_kmgmt.c | 442 struct rsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 447 return gctx->cb(params, gctx->cbarg); 454 struct rsa_gen_ctx *gctx = NULL; local 462 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 463 gctx->libctx = libctx; 464 if ((gctx->pub_exp = BN_new()) == NULL 465 || !BN_set_word(gctx->pub_exp, RSA_F4)) { 468 gctx->nbits = 2048 505 struct rsa_gen_ctx *gctx = genctx; local 579 struct rsa_gen_ctx *gctx = genctx; local 641 struct rsa_gen_ctx *gctx = genctx; local [all...] |
| dh_kmgmt.c | 448 struct dh_gen_ctx *gctx = NULL; local 457 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 458 gctx->selection = selection; 459 gctx->libctx = libctx; 460 gctx->pbits = 2048; 461 gctx->qbits = 224; 462 gctx->mdname = NULL; 464 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) 468 gctx->gen_type = (type == DH_FLAG_TYPE_DHX 499 struct dh_gen_ctx *gctx = genctx; local 525 struct dh_gen_ctx *gctx = genctx; local 600 struct dh_gen_ctx *gctx = genctx; local 654 struct dh_gen_ctx *gctx = genctx; local 681 struct dh_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 693 struct dh_gen_ctx *gctx = genctx; local 794 struct dh_gen_ctx *gctx = genctx; local [all...] |
| dsa_kmgmt.c | 409 struct dsa_gen_ctx *gctx = NULL; local 414 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 415 gctx->selection = selection; 416 gctx->libctx = libctx; 417 gctx->pbits = 2048; 418 gctx->qbits = 224; 420 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_186_4; 422 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_DEFAULT; 424 gctx->gindex = -1 437 struct dsa_gen_ctx *gctx = genctx; local 463 struct dsa_gen_ctx *gctx = genctx; local 544 struct dsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); local 555 struct dsa_gen_ctx *gctx = genctx; local 626 struct dsa_gen_ctx *gctx = genctx; local [all...] |
| ecx_kmgmt.c | 84 static void *s390x_ecx_keygen25519(struct ecx_gen_ctx *gctx); 85 static void *s390x_ecx_keygen448(struct ecx_gen_ctx *gctx); 86 static void *s390x_ecd_keygen25519(struct ecx_gen_ctx *gctx); 87 static void *s390x_ecd_keygen448(struct ecx_gen_ctx *gctx); 479 struct ecx_gen_ctx *gctx = NULL; local 484 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { 485 gctx->libctx = libctx; 486 gctx->type = type; 487 gctx->selection = selection 522 struct ecx_gen_ctx *gctx = genctx; local 634 struct ecx_gen_ctx *gctx = genctx; local 648 struct ecx_gen_ctx *gctx = genctx; local 662 struct ecx_gen_ctx *gctx = genctx; local 679 struct ecx_gen_ctx *gctx = genctx; local 695 struct ecx_gen_ctx *gctx = genctx; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| e_aria.c | 211 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 217 &gctx->ks.ks); 218 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, 228 if (iv == NULL && gctx->iv_set) 229 iv = gctx->iv; 231 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); 232 gctx->iv_set = 1; 234 gctx->key_set = 1 249 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,c); local 396 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 452 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); local 495 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| e_aria.c | 222 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local 229 &gctx->ks.ks); 230 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, 240 if (iv == NULL && gctx->iv_set) 241 iv = gctx->iv; 243 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); 244 gctx->iv_set = 1; 246 gctx->key_set = 1 261 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, c); local 401 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local 457 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local 501 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX, ctx); local [all...] |
| /src/crypto/external/apache2/openssl/dist/test/ |
| slh_dsa_test.c | 376 EVP_PKEY_CTX *gctx = NULL, *sctx = NULL, *vctx = NULL; local 385 if (!TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(lib_ctx, "SLH-DSA-SHA2-128s", NULL)) 386 || !TEST_int_eq(EVP_PKEY_keygen_init(gctx), 1) 387 || !TEST_int_eq(EVP_PKEY_keygen(gctx, &gkey), 1)) 431 EVP_PKEY_CTX_free(gctx); 446 EVP_PKEY_CTX *gctx = NULL, *sctx = NULL, *vctx = NULL, *dupctx = NULL; local 520 EVP_PKEY_CTX_free(gctx);
|
| evp_libctx_test.c | 751 EVP_PKEY_CTX *gctx = NULL; local 758 if (!TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(libctx, "DH", NULL)) 759 || !TEST_int_gt(EVP_PKEY_keygen_init(gctx), 0) 760 || !TEST_true(EVP_PKEY_CTX_set_params(gctx, params)) 761 || !TEST_true(EVP_PKEY_keygen(gctx, &pkey))) 764 EVP_PKEY_CTX_free(gctx);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| fake_rsaprov.c | 232 unsigned char *gctx = NULL; local 234 if (!TEST_ptr(gctx = OPENSSL_malloc(1))) 237 *gctx = 1; 239 return gctx; 244 unsigned char *gctx = genctx; local 248 if (!TEST_ptr(gctx) 249 || !TEST_mem_eq(gctx, sizeof(*gctx), inited, sizeof(inited)))
|
| evp_libctx_test.c | 681 EVP_PKEY_CTX *gctx = NULL; local 688 if (!TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(libctx, "DH", NULL)) 689 || !TEST_int_gt(EVP_PKEY_keygen_init(gctx), 0) 690 || !TEST_true(EVP_PKEY_CTX_set_params(gctx, params)) 691 || !TEST_true(EVP_PKEY_keygen(gctx, &pkey))) 694 EVP_PKEY_CTX_free(gctx);
|
| tls-provider.c | 591 struct xor_gen_ctx *gctx = NULL; local 597 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) 598 gctx->selection = selection; 601 gctx->libctx = (OSSL_LIB_CTX *)provctx; 603 if (!xor_gen_set_params(gctx, params)) { 604 OPENSSL_free(gctx); 607 return gctx; 612 struct xor_gen_ctx *gctx = genctx; local 615 if (gctx == NULL 641 struct xor_gen_ctx *gctx = genctx; local [all...] |
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| prof_structs.h | 66 prof_gctx_t *gctx; member in struct:prof_tctx_s 70 * but coexisting in gctx->tctxs. There are two ways that such 83 /* Linkage into gctx's tctxs. */ 92 /* Current dump-related state, protected by gctx->lock. */ 117 * Number of threads that currently cause this gctx to be in a state of 119 * - Initializing this gctx. 120 * - Initializing per thread counters associated with this gctx. 121 * - Preparing to destroy this gctx. 122 * - Dumping a heap profile that includes this gctx. 124 * gctx [all...] |
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| prof_structs.h | 66 prof_gctx_t *gctx; member in struct:prof_tctx_s 70 * but coexisting in gctx->tctxs. There are two ways that such 83 /* Linkage into gctx's tctxs. */ 92 /* Current dump-related state, protected by gctx->lock. */ 117 * Number of threads that currently cause this gctx to be in a state of 119 * - Initializing this gctx. 120 * - Initializing per thread counters associated with this gctx. 121 * - Preparing to destroy this gctx. 122 * - Dumping a heap profile that includes this gctx. 124 * gctx [all...] |
| /src/external/bsd/jemalloc/dist/include/jemalloc/internal/ |
| prof.h | 74 * Number of mutexes shared among all gctx's. No space is allocated for these 168 prof_gctx_t *gctx; member in struct:prof_tctx_s 172 * but coexisting in gctx->tctxs. There are two ways that such 185 /* Linkage into gctx's tctxs. */ 194 /* Current dump-related state, protected by gctx->lock. */ 219 * Number of threads that currently cause this gctx to be in a state of 221 * - Initializing this gctx. 222 * - Initializing per thread counters associated with this gctx. 223 * - Preparing to destroy this gctx. 224 * - Dumping a heap profile that includes this gctx [all...] |