Home
last modified time | relevance | path

Searched refs:gindex (Results 1 – 24 of 24) sorted by relevance

/netbsd/crypto/external/bsd/openssl/dist/crypto/ffc/
H A Dffc_params.c24 params->gindex = FFC_UNVERIFIABLE_GINDEX; in ossl_ffc_params_init()
101 params->gindex = index; in ossl_ffc_params_set_gindex()
199 dst->gindex = src->gindex; in ossl_ffc_params_copy()
234 ffc->gindex)) in ossl_ffc_params_todata()
H A Dffc_params_generate.c135 int gindex, unsigned char *seed, size_t seedlen) in generate_canonical_g() argument
165 md[0] = (unsigned char)(gindex & 0xff); in generate_canonical_g()
746 if ((seed != NULL) && (params->gindex != FFC_UNVERIFIABLE_GINDEX)) { in ossl_ffc_params_FIPS186_4_gen_verify()
749 params->gindex, seed, seedlen)) { in ossl_ffc_params_FIPS186_4_gen_verify()
H A Dffc_params_validate.c112 tmpparams.gindex = FFC_UNVERIFIABLE_GINDEX; in ossl_ffc_params_simple_validate()
H A Dffc_backend.c60 ffc->gindex = i; in ossl_ffc_params_fromdata()
/netbsd/crypto/external/bsd/openssl/dist/demos/pkey/
H A DEVP_PKEY_DSA_paramgen.c28 int gindex = 42; in main() local
43 params[3] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, &gindex); in main()
H A DEVP_PKEY_DSA_paramvalidate.c50 const int gindex = 42; variable
161 params[2] = OSSL_PARAM_construct_int(OSSL_PKEY_PARAM_FFC_GINDEX, (int *)&gindex); in main()
H A Ddsa.inc115 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);
/netbsd/crypto/external/bsd/openssl/dist/doc/man7/
H A DEVP_PKEY-DH.pod137 I<seed>, I<pcounter> and I<gindex> or I<hindex> may need to be stored for
140 (but the I<gindex> or I<hindex> cannot be stored). It is recommended to use a
197 int gindex = 2;
209 params[2] = OSSL_PARAM_construct_int("gindex", &gindex);
245 int gindex = ...; /* for the validation */
258 * NOTE: For unverifiable g use "hindex" instead of "gindex"
261 extra_params[1] = OSSL_PARAM_construct_int("gindex", &gindex);
H A DEVP_PKEY-DSA.pod12 and I<gindex> may need to be stored for validation purposes. For B<DSA> these
58 int gindex = 1;
68 params[2] = OSSL_PARAM_construct_int("gindex", &gindex);
H A DEVP_PKEY-FFC.pod24 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>
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/
H A Ddsa_ctrl.c45 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 Ddh_ctrl.c49 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()
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/
H A Ddsa_kmgmt.c62 int gindex; /* optional FIPS186-4 generator index (ignored if -1) */ member
421 gctx->gindex = -1; in dsa_gen_init()
479 && !OSSL_PARAM_get_int(p, &gctx->gindex)) in dsa_gen_set_params()
583 if (gctx->gindex != -1) { in dsa_gen()
584 ossl_ffc_params_set_gindex(ffc, gctx->gindex); in dsa_gen()
H A Ddh_kmgmt.c65 int gindex; /* optional FIPS186-4 generator index (ignored if -1) */ member
469 gctx->gindex = -1; in dh_gen_init_base()
605 if (p != NULL && !OSSL_PARAM_get_int(p, &gctx->gindex)) in dhx_gen_set_params()
731 if (gctx->gindex != -1) { in dh_gen()
732 ossl_ffc_params_set_gindex(ffc, gctx->gindex); in dh_gen()
/netbsd/crypto/external/bsd/openssl/dist/test/
H A Devp_pkey_provided_test.c504 int gindex = 0, pcounter = 0, hindex = 0; in test_fromdata_dh_named_group() local
642 &gindex)) in test_fromdata_dh_named_group()
643 || !TEST_int_eq(gindex, -1) in test_fromdata_dh_named_group()
715 int gindex = 0, pcounter = 0, hindex = 0; in test_fromdata_dh_fips186_4() local
823 &gindex)) in test_fromdata_dh_fips186_4()
824 || !TEST_int_eq(gindex, -1) in test_fromdata_dh_fips186_4()
1500 const int gindex = 1; in test_fromdata_dsa_fips186_4() local
1553 gindex)) in test_fromdata_dsa_fips186_4()
1612 || !TEST_int_eq(gindex, gindex_out) in test_fromdata_dsa_fips186_4()
H A Dffc_internal_test.c373 params.gindex = 1; in ffc_params_gen_canonicalg_test()
/netbsd/crypto/external/bsd/openssl/dist/doc/man1/
H A Dopenssl-genpkey.pod.in238 =item B<gindex>:I<index>
363 =item B<gindex>:I<index>
409 gindex and seed are required for key validation purposes and are not saved to
413 -pkeyopt qbits:224 -pkeyopt digest:SHA256 -pkeyopt gindex:1 -text
443 -pkeyopt gindex:1 -pkeyopt dh_paramgen_type:2
449 -pkeyopt gindex:1 -pkeyopt dh_paramgen_type:1
/netbsd/crypto/external/bsd/openssl/dist/include/internal/
H A Dffc.h106 int gindex; member
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Dencode_key2text.c195 if (ffc->gindex != -1) { in ffc_params_to_text()
196 if (BIO_printf(out, "gindex: %d\n", ffc->gindex) <= 0) in ffc_params_to_text()
/netbsd/crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_pkey_provided/
H A DDSA.pub.txt67 gindex: 1
H A DDSA.priv.txt71 gindex: 1
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/
H A Ddsa.h33 int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
H A Ddh.h35 int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
/netbsd/crypto/external/bsd/openssl/dist/doc/man3/
H A DEVP_PKEY_CTX_ctrl.pod132 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);
410 EVP_PKEY_CTX_set_dsa_paramgen_gindex() sets the I<gindex> used by the generator
469 EVP_PKEY_CTX_set_dh_paramgen_gindex() sets the I<gindex> used by the generator G.