/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/ |
D | dsa_kmgmt.c | 406 struct dsa_gen_ctx *gctx = NULL; in dsa_gen_init() local 411 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in dsa_gen_init() 412 gctx->selection = selection; in dsa_gen_init() 413 gctx->libctx = libctx; in dsa_gen_init() 414 gctx->pbits = 2048; in dsa_gen_init() 415 gctx->qbits = 224; in dsa_gen_init() 417 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_186_4; in dsa_gen_init() 419 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_DEFAULT; in dsa_gen_init() 421 gctx->gindex = -1; in dsa_gen_init() 422 gctx->pcounter = -1; in dsa_gen_init() [all …]
|
D | dh_kmgmt.c | 445 struct dh_gen_ctx *gctx = NULL; in dh_gen_init_base() local 454 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in dh_gen_init_base() 455 gctx->selection = selection; in dh_gen_init_base() 456 gctx->libctx = libctx; in dh_gen_init_base() 457 gctx->pbits = 2048; in dh_gen_init_base() 458 gctx->qbits = 224; in dh_gen_init_base() 459 gctx->mdname = NULL; in dh_gen_init_base() 461 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) in dh_gen_init_base() 465 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) in dh_gen_init_base() 469 gctx->gindex = -1; in dh_gen_init_base() [all …]
|
D | ec_kmgmt.c | 998 struct ec_gen_ctx *gctx = NULL; in ec_gen_init() local 1003 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in ec_gen_init() 1004 gctx->libctx = libctx; in ec_gen_init() 1005 gctx->selection = selection; in ec_gen_init() 1006 gctx->ecdh_mode = 0; in ec_gen_init() 1007 if (!ec_gen_set_params(gctx, params)) { in ec_gen_init() 1008 OPENSSL_free(gctx); in ec_gen_init() 1009 gctx = NULL; in ec_gen_init() 1012 return gctx; in ec_gen_init() 1020 struct ec_gen_ctx *gctx = ec_gen_init(provctx, selection, params); in sm2_gen_init() local [all …]
|
D | 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); 476 struct ecx_gen_ctx *gctx = NULL; in ecx_gen_init() local 481 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in ecx_gen_init() 482 gctx->libctx = libctx; in ecx_gen_init() 483 gctx->type = type; in ecx_gen_init() 484 gctx->selection = selection; in ecx_gen_init() 486 if (!ecx_gen_set_params(gctx, params)) { in ecx_gen_init() [all …]
|
D | mac_legacy_kmgmt.c | 381 struct mac_gen_ctx *gctx = NULL; in mac_gen_init_common() local 386 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in mac_gen_init_common() 387 gctx->libctx = libctx; in mac_gen_init_common() 388 gctx->selection = selection; in mac_gen_init_common() 390 return gctx; in mac_gen_init_common() 396 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); in mac_gen_init() local 398 if (gctx != NULL && !mac_gen_set_params(gctx, params)) { in mac_gen_init() 399 OPENSSL_free(gctx); in mac_gen_init() 400 gctx = NULL; in mac_gen_init() 402 return gctx; in mac_gen_init() [all …]
|
D | rsa_kmgmt.c | 442 struct rsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); in rsa_gencb() local 447 return gctx->cb(params, gctx->cbarg); in rsa_gencb() 454 struct rsa_gen_ctx *gctx = NULL; in gen_init() local 462 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in gen_init() 463 gctx->libctx = libctx; in gen_init() 464 if ((gctx->pub_exp = BN_new()) == NULL in gen_init() 465 || !BN_set_word(gctx->pub_exp, RSA_F4)) { in gen_init() 468 gctx->nbits = 2048; in gen_init() 469 gctx->primes = RSA_DEFAULT_PRIME_NUM; in gen_init() 470 gctx->rsa_type = rsa_type; in gen_init() [all …]
|
/third_party/openssl/providers/implementations/keymgmt/ |
D | dsa_kmgmt.c | 406 struct dsa_gen_ctx *gctx = NULL; in dsa_gen_init() local 411 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in dsa_gen_init() 412 gctx->selection = selection; in dsa_gen_init() 413 gctx->libctx = libctx; in dsa_gen_init() 414 gctx->pbits = 2048; in dsa_gen_init() 415 gctx->qbits = 224; in dsa_gen_init() 417 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_186_4; in dsa_gen_init() 419 gctx->gen_type = DSA_PARAMGEN_TYPE_FIPS_DEFAULT; in dsa_gen_init() 421 gctx->gindex = -1; in dsa_gen_init() 422 gctx->pcounter = -1; in dsa_gen_init() [all …]
|
D | dh_kmgmt.c | 445 struct dh_gen_ctx *gctx = NULL; in dh_gen_init_base() local 454 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in dh_gen_init_base() 455 gctx->selection = selection; in dh_gen_init_base() 456 gctx->libctx = libctx; in dh_gen_init_base() 457 gctx->pbits = 2048; in dh_gen_init_base() 458 gctx->qbits = 224; in dh_gen_init_base() 459 gctx->mdname = NULL; in dh_gen_init_base() 461 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) in dh_gen_init_base() 465 gctx->gen_type = (type == DH_FLAG_TYPE_DHX) in dh_gen_init_base() 469 gctx->gindex = -1; in dh_gen_init_base() [all …]
|
D | ec_kmgmt.c | 998 struct ec_gen_ctx *gctx = NULL; in ec_gen_init() local 1003 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in ec_gen_init() 1004 gctx->libctx = libctx; in ec_gen_init() 1005 gctx->selection = selection; in ec_gen_init() 1006 gctx->ecdh_mode = 0; in ec_gen_init() 1007 if (!ec_gen_set_params(gctx, params)) { in ec_gen_init() 1008 OPENSSL_free(gctx); in ec_gen_init() 1009 gctx = NULL; in ec_gen_init() 1012 return gctx; in ec_gen_init() 1020 struct ec_gen_ctx *gctx = ec_gen_init(provctx, selection, params); in sm2_gen_init() local [all …]
|
D | 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); 476 struct ecx_gen_ctx *gctx = NULL; in ecx_gen_init() local 481 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in ecx_gen_init() 482 gctx->libctx = libctx; in ecx_gen_init() 483 gctx->type = type; in ecx_gen_init() 484 gctx->selection = selection; in ecx_gen_init() 486 if (!ecx_gen_set_params(gctx, params)) { in ecx_gen_init() [all …]
|
D | mac_legacy_kmgmt.c | 381 struct mac_gen_ctx *gctx = NULL; in mac_gen_init_common() local 386 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in mac_gen_init_common() 387 gctx->libctx = libctx; in mac_gen_init_common() 388 gctx->selection = selection; in mac_gen_init_common() 390 return gctx; in mac_gen_init_common() 396 struct mac_gen_ctx *gctx = mac_gen_init_common(provctx, selection); in mac_gen_init() local 398 if (gctx != NULL && !mac_gen_set_params(gctx, params)) { in mac_gen_init() 399 OPENSSL_free(gctx); in mac_gen_init() 400 gctx = NULL; in mac_gen_init() 402 return gctx; in mac_gen_init() [all …]
|
D | rsa_kmgmt.c | 442 struct rsa_gen_ctx *gctx = BN_GENCB_get_arg(cb); in rsa_gencb() local 447 return gctx->cb(params, gctx->cbarg); in rsa_gencb() 454 struct rsa_gen_ctx *gctx = NULL; in gen_init() local 462 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) { in gen_init() 463 gctx->libctx = libctx; in gen_init() 464 if ((gctx->pub_exp = BN_new()) == NULL in gen_init() 465 || !BN_set_word(gctx->pub_exp, RSA_F4)) { in gen_init() 468 gctx->nbits = 2048; in gen_init() 469 gctx->primes = RSA_DEFAULT_PRIME_NUM; in gen_init() 470 gctx->rsa_type = rsa_type; in gen_init() [all …]
|
/third_party/openssl/crypto/evp/ |
D | e_aria.c | 219 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); in aria_gcm_init_key() local 226 &gctx->ks.ks); in aria_gcm_init_key() 227 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aria_gcm_init_key() 237 if (iv == NULL && gctx->iv_set) in aria_gcm_init_key() 238 iv = gctx->iv; in aria_gcm_init_key() 240 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() 241 gctx->iv_set = 1; in aria_gcm_init_key() 243 gctx->key_set = 1; in aria_gcm_init_key() 246 if (gctx->key_set) in aria_gcm_init_key() 247 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() [all …]
|
D | e_aes.c | 139 # define AES_GCM_ASM2(gctx) (gctx->gcm.block==(block128_f)aesni_encrypt && \ argument 140 gctx->gcm.ghash==gcm_ghash_avx) 226 EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,ctx); in aesni_gcm_init_key() local 231 &gctx->ks.ks); in aesni_gcm_init_key() 232 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f) aesni_encrypt); in aesni_gcm_init_key() 233 gctx->ctr = (ctr128_f) aesni_ctr32_encrypt_blocks; in aesni_gcm_init_key() 237 if (iv == NULL && gctx->iv_set) in aesni_gcm_init_key() 238 iv = gctx->iv; in aesni_gcm_init_key() 240 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key() 241 gctx->iv_set = 1; in aesni_gcm_init_key() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | e_aria.c | 219 EVP_ARIA_GCM_CTX *gctx = EVP_C_DATA(EVP_ARIA_GCM_CTX,ctx); in aria_gcm_init_key() local 226 &gctx->ks.ks); in aria_gcm_init_key() 227 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aria_gcm_init_key() 237 if (iv == NULL && gctx->iv_set) in aria_gcm_init_key() 238 iv = gctx->iv; in aria_gcm_init_key() 240 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() 241 gctx->iv_set = 1; in aria_gcm_init_key() 243 gctx->key_set = 1; in aria_gcm_init_key() 246 if (gctx->key_set) in aria_gcm_init_key() 247 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aria_gcm_init_key() [all …]
|
D | e_aes.c | 139 # define AES_GCM_ASM2(gctx) (gctx->gcm.block==(block128_f)aesni_encrypt && \ argument 140 gctx->gcm.ghash==gcm_ghash_avx) 226 EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,ctx); in aesni_gcm_init_key() local 231 &gctx->ks.ks); in aesni_gcm_init_key() 232 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f) aesni_encrypt); in aesni_gcm_init_key() 233 gctx->ctr = (ctr128_f) aesni_ctr32_encrypt_blocks; in aesni_gcm_init_key() 237 if (iv == NULL && gctx->iv_set) in aesni_gcm_init_key() 238 iv = gctx->iv; in aesni_gcm_init_key() 240 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key() 241 gctx->iv_set = 1; in aesni_gcm_init_key() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | atrac.c | 69 av_cold void ff_atrac_init_gain_compensation(AtracGCContext *gctx, int id2exp_offset, in ff_atrac_init_gain_compensation() argument 74 gctx->loc_scale = loc_scale; in ff_atrac_init_gain_compensation() 75 gctx->loc_size = 1 << loc_scale; in ff_atrac_init_gain_compensation() 76 gctx->id2exp_offset = id2exp_offset; in ff_atrac_init_gain_compensation() 80 gctx->gain_tab1[i] = powf(2.0, id2exp_offset - i); in ff_atrac_init_gain_compensation() 84 gctx->gain_tab2[i + 15] = powf(2.0, -1.0f / gctx->loc_size * i); in ff_atrac_init_gain_compensation() 87 void ff_atrac_gain_compensation(AtracGCContext *gctx, float *in, float *prev, in ff_atrac_gain_compensation() argument 94 gc_scale = gc_next->num_points ? gctx->gain_tab1[gc_next->lev_code[0]] in ff_atrac_gain_compensation() 104 lastpos = gc_now->loc_code[i] << gctx->loc_scale; in ff_atrac_gain_compensation() 106 lev = gctx->gain_tab1[gc_now->lev_code[i]]; in ff_atrac_gain_compensation() [all …]
|
D | atrac.h | 66 void ff_atrac_init_gain_compensation(AtracGCContext *gctx, int id2exp_offset, 80 void ff_atrac_gain_compensation(AtracGCContext *gctx, float *in, float *prev,
|
/third_party/openssl/test/ |
D | evp_extra_test2.c | 338 EVP_PKEY_CTX *gctx = NULL; in test_dh_tofrom_data_select() local 346 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DHX", NULL)) in test_dh_tofrom_data_select() 347 && TEST_int_gt(EVP_PKEY_keygen_init(gctx), 0) in test_dh_tofrom_data_select() 348 && TEST_true(EVP_PKEY_CTX_set_params(gctx, params)) in test_dh_tofrom_data_select() 349 && TEST_int_gt(EVP_PKEY_generate(gctx, &key), 0) in test_dh_tofrom_data_select() 357 EVP_PKEY_CTX_free(gctx); in test_dh_tofrom_data_select() 366 EVP_PKEY_CTX *gctx = NULL; in test_dh_paramgen() local 374 ret = TEST_ptr(gctx = EVP_PKEY_CTX_new_from_name(mainctx, "DH", NULL)) in test_dh_paramgen() 375 && TEST_int_gt(EVP_PKEY_paramgen_init(gctx), 0) in test_dh_paramgen() 376 && TEST_true(EVP_PKEY_CTX_set_params(gctx, params)) in test_dh_paramgen() [all …]
|
D | fake_rsaprov.c | 232 unsigned char *gctx = NULL; in fake_rsa_gen_init() local 234 if (!TEST_ptr(gctx = OPENSSL_malloc(1))) in fake_rsa_gen_init() 237 *gctx = 1; in fake_rsa_gen_init() 239 return gctx; in fake_rsa_gen_init() 244 unsigned char *gctx = genctx; in fake_rsa_gen() local 248 if (!TEST_ptr(gctx) in fake_rsa_gen() 249 || !TEST_mem_eq(gctx, sizeof(*gctx), inited, sizeof(inited))) in fake_rsa_gen()
|
D | tls-provider.c | 585 struct xor_gen_ctx *gctx = NULL; in xor_gen_init() local 591 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL) in xor_gen_init() 592 gctx->selection = selection; in xor_gen_init() 595 gctx->libctx = (OSSL_LIB_CTX *)provctx; in xor_gen_init() 597 if (!xor_gen_set_params(gctx, params)) { in xor_gen_init() 598 OPENSSL_free(gctx); in xor_gen_init() 601 return gctx; in xor_gen_init() 606 struct xor_gen_ctx *gctx = genctx; in xor_gen_set_params() local 609 if (gctx == NULL) in xor_gen_set_params() 635 struct xor_gen_ctx *gctx = genctx; in xor_gen() local [all …]
|
/third_party/openssl/doc/man7/ |
D | EVP_PKEY-DSA.pod | 81 EVP_PKEY_CTX *gctx = NULL; 83 gctx = EVP_PKEY_CTX_new_from_pkey(NULL, param_key, NULL); 84 EVP_PKEY_keygen_init(gctx); 85 EVP_PKEY_generate(gctx, &key); 86 EVP_PKEY_CTX_free(gctx);
|
D | EVP_PKEY-EC.pod | 218 EVP_PKEY_CTX *gctx = 221 EVP_PKEY_keygen_init(gctx); 226 EVP_PKEY_CTX_set_params(gctx, params); 228 EVP_PKEY_generate(gctx, &key); 233 EVP_PKEY_CTX_free(gctx); 241 EVP_PKEY_CTX *gctx = 244 EVP_PKEY_keygen_init(gctx); 256 EVP_PKEY_CTX_set_params(gctx, params); 258 EVP_PKEY_generate(gctx, &key); 262 EVP_PKEY_CTX_free(gctx);
|
/third_party/openssl/apps/ |
D | req.c | 1501 EVP_PKEY_CTX *gctx = NULL; in set_keygen_ctx() local 1616 gctx = EVP_PKEY_CTX_new(param, keygen_engine); in set_keygen_ctx() 1618 gctx = EVP_PKEY_CTX_new_from_pkey(app_get0_libctx(), in set_keygen_ctx() 1628 gctx = EVP_PKEY_CTX_new_id(pkey_id, keygen_engine); in set_keygen_ctx() 1630 gctx = EVP_PKEY_CTX_new_from_name(app_get0_libctx(), in set_keygen_ctx() 1635 if (gctx == NULL) { in set_keygen_ctx() 1640 if (EVP_PKEY_keygen_init(gctx) <= 0) { in set_keygen_ctx() 1642 EVP_PKEY_CTX_free(gctx); in set_keygen_ctx() 1645 if (keylen == -1 && (EVP_PKEY_CTX_is_a(gctx, "RSA") in set_keygen_ctx() 1646 || EVP_PKEY_CTX_is_a(gctx, "RSA-PSS"))) in set_keygen_ctx() [all …]
|
/third_party/node/deps/openssl/openssl/apps/ |
D | req.c | 1503 EVP_PKEY_CTX *gctx = NULL; in set_keygen_ctx() local 1618 gctx = EVP_PKEY_CTX_new(param, keygen_engine); in set_keygen_ctx() 1620 gctx = EVP_PKEY_CTX_new_from_pkey(app_get0_libctx(), in set_keygen_ctx() 1630 gctx = EVP_PKEY_CTX_new_id(pkey_id, keygen_engine); in set_keygen_ctx() 1632 gctx = EVP_PKEY_CTX_new_from_name(app_get0_libctx(), in set_keygen_ctx() 1637 if (gctx == NULL) { in set_keygen_ctx() 1642 if (EVP_PKEY_keygen_init(gctx) <= 0) { in set_keygen_ctx() 1644 EVP_PKEY_CTX_free(gctx); in set_keygen_ctx() 1647 if (keylen == -1 && (EVP_PKEY_CTX_is_a(gctx, "RSA") in set_keygen_ctx() 1648 || EVP_PKEY_CTX_is_a(gctx, "RSA-PSS"))) in set_keygen_ctx() [all …]
|