Home
last modified time | relevance | path

Searched refs:pbits (Results 1 – 25 of 40) sorted by relevance

12

/third_party/openssl/crypto/dh/
Ddh_gen.c38 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits, in ossl_dh_generate_ffc_parameters() argument
47 pbits, qbits, &res, cb); in ossl_dh_generate_ffc_parameters()
52 pbits, qbits, &res, cb); in ossl_dh_generate_ffc_parameters()
58 int ossl_dh_get_named_group_uid_from_size(int pbits) in ossl_dh_get_named_group_uid_from_size() argument
69 switch (pbits) { in ossl_dh_get_named_group_uid_from_size()
/third_party/node/deps/openssl/openssl/crypto/dh/
Ddh_gen.c38 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits, in ossl_dh_generate_ffc_parameters() argument
47 pbits, qbits, &res, cb); in ossl_dh_generate_ffc_parameters()
52 pbits, qbits, &res, cb); in ossl_dh_generate_ffc_parameters()
58 int ossl_dh_get_named_group_uid_from_size(int pbits) in ossl_dh_get_named_group_uid_from_size() argument
69 switch (pbits) { in ossl_dh_get_named_group_uid_from_size()
/third_party/openssl/crypto/dsa/
Ddsa_gen.c26 int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits, in ossl_dsa_generate_ffc_parameters() argument
35 pbits, qbits, &res, cb); in ossl_dsa_generate_ffc_parameters()
40 pbits, qbits, &res, cb); in ossl_dsa_generate_ffc_parameters()
/third_party/node/deps/openssl/openssl/crypto/dsa/
Ddsa_gen.c26 int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits, in ossl_dsa_generate_ffc_parameters() argument
35 pbits, qbits, &res, cb); in ossl_dsa_generate_ffc_parameters()
40 pbits, qbits, &res, cb); in ossl_dsa_generate_ffc_parameters()
/third_party/openssl/demos/pkey/
DEVP_PKEY_DSA_paramgen.c26 unsigned int pbits = 2048; in main() local
41 params[1] = OSSL_PARAM_construct_uint(OSSL_PKEY_PARAM_FFC_PBITS, &pbits); in main()
/third_party/openssl/doc/man7/
DEVP_PKEY-DSA.pod26 The following restrictions apply to the "pbits" field:
56 unsigned int pbits = 2048;
66 params[0] = OSSL_PARAM_construct_uint("pbits", &pbits);
DEVP_PKEY-DH.pod104 This specifies that a named safe prime name will be chosen using the "pbits"
114 =item "pbits" (B<OSSL_PKEY_PARAM_FFC_PBITS>) <unsigned integer>
198 unsigned int pbits = 2048;
207 params[0] = OSSL_PARAM_construct_uint("pbits", &pbits);
/third_party/node/deps/openssl/openssl/include/crypto/
Ddh.h22 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits,
26 int ossl_dh_get_named_group_uid_from_size(int pbits);
Ddsa.h25 int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits,
/third_party/openssl/include/crypto/
Ddh.h22 int ossl_dh_generate_ffc_parameters(DH *dh, int type, int pbits, int qbits,
26 int ossl_dh_get_named_group_uid_from_size(int pbits);
Ddsa.h25 int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits,
/third_party/mbedtls/library/
Decdh.c291 if (ctx->grp.pbits == 0) { in ecdh_make_params_internal()
509 if (ctx->grp.pbits == 0) { in ecdh_make_public_internal()
627 if (ctx == NULL || ctx->grp.pbits == 0) { in ecdh_calc_secret_internal()
656 *olen = ctx->grp.pbits / 8 + ((ctx->grp.pbits % 8) != 0); in ecdh_calc_secret_internal()
Dpsa_crypto_ecp.c357 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()
444 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_verify_hash()
Dpkparse.c278 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in pk_group_from_specified()
388 if (grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/
Ddsa_kmgmt.c58 size_t pbits; member
414 gctx->pbits = 2048; in dsa_gen_init()
495 && !OSSL_PARAM_get_size_t(p, &gctx->pbits)) in dsa_gen_set_params()
565 gctx->gen_type = (gctx->pbits >= 2048 ? DSA_PARAMGEN_TYPE_FIPS_186_4 : in dsa_gen()
597 gctx->pbits, gctx->qbits, in dsa_gen()
Ddh_kmgmt.c61 size_t pbits; member
457 gctx->pbits = 2048; in dh_gen_init_base()
553 && !OSSL_PARAM_get_size_t(p, &gctx->pbits)) in dh_gen_common_set_params()
711 gctx->group_nid = ossl_dh_get_named_group_uid_from_size(gctx->pbits); in dh_gen()
755 ret = DH_generate_parameters_ex(dh, gctx->pbits, in dh_gen()
759 gctx->pbits, gctx->qbits, in dh_gen()
/third_party/openssl/providers/implementations/keymgmt/
Ddsa_kmgmt.c58 size_t pbits; member
414 gctx->pbits = 2048; in dsa_gen_init()
495 && !OSSL_PARAM_get_size_t(p, &gctx->pbits)) in dsa_gen_set_params()
565 gctx->gen_type = (gctx->pbits >= 2048 ? DSA_PARAMGEN_TYPE_FIPS_186_4 : in dsa_gen()
597 gctx->pbits, gctx->qbits, in dsa_gen()
Ddh_kmgmt.c61 size_t pbits; member
457 gctx->pbits = 2048; in dh_gen_init_base()
553 && !OSSL_PARAM_get_size_t(p, &gctx->pbits)) in dh_gen_common_set_params()
711 gctx->group_nid = ossl_dh_get_named_group_uid_from_size(gctx->pbits); in dh_gen()
755 ret = DH_generate_parameters_ex(dh, gctx->pbits, in dh_gen()
759 gctx->pbits, gctx->qbits, in dh_gen()
/third_party/mbedtls/tests/include/alt-dummy/
Decp_alt.h29 const size_t pbits; member
/third_party/openssl/crypto/evp/
Ddh_ctrl.c90 int EVP_PKEY_CTX_set_dh_paramgen_prime_len(EVP_PKEY_CTX *ctx, int pbits) in EVP_PKEY_CTX_set_dh_paramgen_prime_len() argument
94 size_t bits = pbits; in EVP_PKEY_CTX_set_dh_paramgen_prime_len()
/third_party/node/deps/openssl/openssl/crypto/evp/
Ddh_ctrl.c90 int EVP_PKEY_CTX_set_dh_paramgen_prime_len(EVP_PKEY_CTX *ctx, int pbits) in EVP_PKEY_CTX_set_dh_paramgen_prime_len() argument
94 size_t bits = pbits; in EVP_PKEY_CTX_set_dh_paramgen_prime_len()
/third_party/openssl/test/
Devp_extra_test2.c367 unsigned int pbits = 512; /* minimum allowed for speed */ in test_dh_paramgen() local
369 params[0] = OSSL_PARAM_construct_uint(OSSL_PKEY_PARAM_FFC_PBITS, &pbits); in test_dh_paramgen()
1039 unsigned int pbits = 512; /* minimum allowed for speed */ in test_dsa_fromdata_digest_prop() local
1041 *p++ = OSSL_PARAM_construct_uint(OSSL_PKEY_PARAM_FFC_PBITS, &pbits); in test_dsa_fromdata_digest_prop()
/third_party/mbedtls/programs/pkey/
Decdsa.c143 mbedtls_printf(" ok (key size: %d bits)\n", (int) ctx_sign.MBEDTLS_PRIVATE(grp).pbits); in main()
/third_party/openssl/doc/man1/
Dopenssl-genpkey.pod.in285 =item B<pbits>:I<numbits>
329 Can be used with the option B<pbits> to select one of
412 openssl genpkey -genparam -algorithm DSA -out dsap.pem -pkeyopt pbits:2048 \
442 -pkeyopt pbits:2048 -pkeyopt qbits:224 -pkeyopt digest:SHA256 \
448 -pkeyopt pbits:1024 -pkeyopt qbits:160 -pkeyopt digest:SHA1 \
/third_party/ffmpeg/libavcodec/
Dvc2enc.c186 int pbits = 0, bits = 0, topbit = 1, maxval = 1; in put_vc2_ue_uint() local
203 pbits <<= 2; in put_vc2_ue_uint()
205 pbits |= 0x1; in put_vc2_ue_uint()
208 put_bits(pb, bits*2 + 1, (pbits << 1) | 1); in put_vc2_ue_uint()

12