Home
last modified time | relevance | path

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

/mbedtls-3.6.0/library/
Decdh.c279 if (ctx->grp.pbits == 0) { in ecdh_make_params_internal()
497 if (ctx->grp.pbits == 0) { in ecdh_make_public_internal()
615 if (ctx == NULL || ctx->grp.pbits == 0) { in ecdh_calc_secret_internal()
644 *olen = ctx->grp.pbits / 8 + ((ctx->grp.pbits % 8) != 0); in ecdh_calc_secret_internal()
Dpsa_crypto_ecp.c351 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()
438 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_verify_hash()
Dpkparse.c279 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in pk_group_from_specified()
389 if (grp->pbits == ref.pbits && grp->nbits == ref.nbits && in pk_group_id_from_group()
Dpk_wrap.c651 return ecp->grp.pbits; in eckey_get_bitlen()
1152 if (rs->ecdsa_ctx.grp.pbits == 0) { in eckey_verify_rs_wrap()
1179 if (rs->ecdsa_ctx.grp.pbits == 0) { in eckey_sign_rs_wrap()
Decp.c253 if (grp->pbits >= 512) { in mbedtls_ecp_check_budget()
255 } else if (grp->pbits >= 384) { in mbedtls_ecp_check_budget()
520 grp->pbits = 0; in mbedtls_ecp_group_init()
1009 mbedtls_mpi_bitlen(N) > 2 * grp->pbits) { in ecp_modp()
Dpkwrite.c295 byte_length = (ec->grp.pbits + 7) / 8; in pk_write_ec_private()
Decjpake.c782 x_bytes = (ctx->grp.pbits + 7) / 8; in mbedtls_ecjpake_derive_secret()
Decp_curves.c4540 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_group_load()
4639 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve25519()
4693 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve448()
Decp_curves_new.c4550 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_group_load()
4679 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve25519()
4740 grp->pbits = mbedtls_mpi_bitlen(&grp->P); in ecp_use_curve448()
Dssl_tls12_server.c2678 key_len = PSA_BITS_TO_BYTES(key->grp.pbits); in ssl_get_ecdh_params_from_cert()
/mbedtls-3.6.0/tests/include/alt-dummy/
Decp_alt.h17 const size_t pbits; member
/mbedtls-3.6.0/programs/pkey/
Decdsa.c131 mbedtls_printf(" ok (key size: %d bits)\n", (int) ctx_sign.MBEDTLS_PRIVATE(grp).pbits); in main()
/mbedtls-3.6.0/include/mbedtls/
Decp.h244 size_t pbits; /*!< The number of bits in \p P.*/ member
/mbedtls-3.6.0/docs/architecture/
Dalternative-implementations.md51 * ECP: `mbedtls_ecp_group` must have the fields `id`, `P`, `A`, `B`, `G`, `N`, `pbits` and `nbits`.
52 …_ecp_point_read_binary()` must support a group structure where only `P`, `pbits`, `A` and `B` are …
/mbedtls-3.6.0/tests/suites/
Dtest_suite_ecp.function40 if (grp1->pbits != grp2->pbits) {
573 TEST_ASSERT(mbedtls_mpi_bitlen(&N) <= grp.pbits + 3);