/openssl/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramgen.c | 28 int gindex = 42; in main() local 43 params[3] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, &gindex); in main()
|
H A D | EVP_PKEY_DSA_paramvalidate.c | 50 static const int gindex = 42; variable 161 params[2] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, (int *)&gindex); in main()
|
H A D | dsa.inc | 115 int rv = 0, gindex, counter; 134 if (EVP_PKEY_get_int_param(pkey, OSSL_PKEY_PARAM_FFC_GINDEX, &gindex) > 0) { 135 if (gindex != -1) 136 BIO_printf(bio, " %s = %d\n", OSSL_PKEY_PARAM_FFC_GINDEX, gindex);
|
/openssl/crypto/ffc/ |
H A D | ffc_params.c | 24 params->gindex = FFC_UNVERIFIABLE_GINDEX; in ossl_ffc_params_init() 106 params->gindex = index; in ossl_ffc_params_set_gindex() 203 dst->gindex = src->gindex; in ossl_ffc_params_copy() 235 ffc->gindex)) in ossl_ffc_params_todata()
|
H A D | ffc_params_generate.c | 135 int gindex, unsigned char *seed, size_t seedlen) in generate_canonical_g() argument 165 md[0] = (unsigned char)(gindex & 0xff); in generate_canonical_g() 749 if ((seed != NULL) && (params->gindex != FFC_UNVERIFIABLE_GINDEX)) { in ossl_ffc_params_FIPS186_4_gen_verify() 752 params->gindex, seed, seedlen)) { in ossl_ffc_params_FIPS186_4_gen_verify()
|
H A D | ffc_backend.c | 57 ffc->gindex = i; in ossl_ffc_params_fromdata()
|
H A D | ffc_params_validate.c | 112 tmpparams.gindex = FFC_UNVERIFIABLE_GINDEX; in ossl_ffc_params_simple_validate()
|
/openssl/doc/man7/ |
H A D | EVP_PKEY-DH.pod | 138 I<seed>, I<pcounter> and I<gindex> or I<hindex> may need to be stored for 141 (but the I<gindex> or I<hindex> cannot be stored). It is recommended to use a 199 int gindex = 2; 211 params[2] = OSSL_PARAM_construct_int("gindex", &gindex); 247 int gindex = ...; /* for the validation */ 260 * NOTE: For unverifiable g use "hindex" instead of "gindex" 263 extra_params[1] = OSSL_PARAM_construct_int("gindex", &gindex);
|
H A D | EVP_PKEY-DSA.pod | 12 and I<gindex> may need to be stored for validation purposes. For B<DSA> these 73 int gindex = 1; 83 params[2] = OSSL_PARAM_construct_int("gindex", &gindex);
|
H A D | EVP_PKEY-FFC.pod | 24 and I<gindex> may need to be stored for validation purposes. 26 (but the I<gindex> is not). For B<DSA> however, these fields are not stored in 79 =item "gindex" (B<OSSL_PKEY_PARAM_FFC_GINDEX>) <integer> 83 Set this to a positive value from 0..FF to use this mode. This I<gindex> can 179 =item "gindex" (B<OSSL_PKEY_PARAM_FFC_GINDEX>) <integer>
|
/openssl/crypto/evp/ |
H A D | dsa_ctrl.c | 45 int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex) in EVP_PKEY_CTX_set_dsa_paramgen_gindex() argument 53 *p++ = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, &gindex); in EVP_PKEY_CTX_set_dsa_paramgen_gindex()
|
H A D | dh_ctrl.c | 49 int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex) in EVP_PKEY_CTX_set_dh_paramgen_gindex() argument 57 *p++ = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, &gindex); in EVP_PKEY_CTX_set_dh_paramgen_gindex()
|
/openssl/providers/implementations/keymgmt/ |
H A D | dsa_kmgmt.c | 65 int gindex; /* optional FIPS186-4 generator index (ignored if -1) */ member 427 gctx->gindex = -1; in dsa_gen_init() 498 && !OSSL_PARAM_get_int(p, &gctx->gindex)) in dsa_gen_set_params() 652 if (gctx->gindex != -1) { in dsa_gen() 653 ossl_ffc_params_set_gindex(ffc, gctx->gindex); in dsa_gen()
|
H A D | dh_kmgmt.c | 66 int gindex; /* optional FIPS186-4 generator index (ignored if -1) */ member 475 gctx->gindex = -1; in dh_gen_init_base() 614 if (p != NULL && !OSSL_PARAM_get_int(p, &gctx->gindex)) in dhx_gen_set_params() 753 if (gctx->gindex != -1) { in dh_gen() 754 ossl_ffc_params_set_gindex(ffc, gctx->gindex); in dh_gen()
|
/openssl/test/ |
H A D | evp_pkey_provided_test.c | 902 int gindex = 0, pcounter = 0, hindex = 0; in test_fromdata_dh_named_group() local 1040 &gindex)) in test_fromdata_dh_named_group() 1041 || !TEST_int_eq(gindex, -1) in test_fromdata_dh_named_group() 1116 int gindex = 0, pcounter = 0, hindex = 0; in test_fromdata_dh_fips186_4() local 1224 &gindex)) in test_fromdata_dh_fips186_4() 1225 || !TEST_int_eq(gindex, -1) in test_fromdata_dh_fips186_4() 1927 const int gindex = 1; in test_fromdata_dsa_fips186_4() local 1980 gindex)) in test_fromdata_dsa_fips186_4() 2039 || !TEST_int_eq(gindex, gindex_out) in test_fromdata_dsa_fips186_4()
|
H A D | ffc_internal_test.c | 373 params.gindex = 1; in ffc_params_gen_canonicalg_test()
|
/openssl/doc/man1/ |
H A D | openssl-genpkey.pod.in | 256 =item B<gindex>:I<index> 381 =item B<gindex>:I<index> 427 gindex and seed are required for key validation purposes and are not saved to 431 -pkeyopt qbits:224 -pkeyopt digest:SHA256 -pkeyopt gindex:1 -text 461 -pkeyopt gindex:1 -pkeyopt dh_paramgen_type:2 467 -pkeyopt gindex:1 -pkeyopt dh_paramgen_type:1
|
/openssl/include/internal/ |
H A D | ffc.h | 111 int gindex; member
|
/openssl/test/recipes/30-test_evp_pkey_provided/ |
H A D | DSA.pub.txt | 67 gindex: 1
|
H A D | DSA.priv.txt | 71 gindex: 1
|
/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2text.c | 196 if (ffc->gindex != -1) { in ffc_params_to_text() 197 if (BIO_printf(out, "gindex: %d\n", ffc->gindex) <= 0) in ffc_params_to_text()
|
/openssl/include/openssl/ |
H A D | dsa.h | 48 int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
|
H A D | dh.h | 39 int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
|
/openssl/doc/man3/ |
H A D | EVP_PKEY_CTX_ctrl.pod | 132 int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex); 147 int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex); 427 EVP_PKEY_CTX_set_dsa_paramgen_gindex() sets the I<gindex> used by the generator 486 EVP_PKEY_CTX_set_dh_paramgen_gindex() sets the I<gindex> used by the generator G.
|