Home
last modified time | relevance | path

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

/mbedtls-3.6.0/library/
Ddhm.c110 return mbedtls_mpi_size(&ctx->P); in mbedtls_dhm_get_len()
193 if ((unsigned) x_size < mbedtls_mpi_size(&ctx->P)) { in dhm_make_common()
251 n1 = mbedtls_mpi_size(&ctx->P); in mbedtls_dhm_make_params()
252 n2 = mbedtls_mpi_size(&ctx->G); in mbedtls_dhm_make_params()
253 n3 = mbedtls_mpi_size(&ctx->GX); in mbedtls_dhm_make_params()
442 *olen = mbedtls_mpi_size(&ctx->K); in mbedtls_dhm_calc_secret()
Drsa.c222 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_import()
239 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_import_raw()
281 if (ctx->len != mbedtls_mpi_size(&ctx->N) || in rsa_check_context()
409 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_complete()
758 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_gen_key()
Dasn1write.c105 len = mbedtls_mpi_size(X); in mbedtls_asn1_write_mpi()
Decdh.c640 if (mbedtls_mpi_size(&ctx->z) > blen) { in ecdh_calc_secret_internal()
Dx509write_crt.c99 tmp_len = mbedtls_mpi_size(serial); in mbedtls_x509write_crt_set_serial()
Decp.c703 plen = mbedtls_mpi_size(&grp->P); in mbedtls_ecp_point_write_binary()
779 plen = mbedtls_mpi_size(&grp->P); in mbedtls_ecp_point_read_binary()
3019 if (mbedtls_mpi_size(&pt->X) > (grp->nbits + 7) / 8) { in ecp_check_pubkey_mx()
Decjpake.c352 len = mbedtls_mpi_size(&h); /* actually r */ in ecjpake_zkp_write()
Dpkparse.c345 len != mbedtls_mpi_size(&grp->P) + 1 || in pk_group_from_specified()
Dbignum.c493 size_t mbedtls_mpi_size(const mbedtls_mpi *X) in mbedtls_mpi_size() function
Dpsa_crypto.c1159 buflen = mbedtls_mpi_size(&mpi); in psa_get_rsa_public_exponent()
/mbedtls-3.6.0/tests/suites/
Dtest_suite_dhm.function41 TEST_EQUAL(n, mbedtls_mpi_size(expected));
64 TEST_ASSERT(mbedtls_mpi_size(&ctx->X) <= x_size);
124 pub_cli_len = mbedtls_mpi_size(&ctx_srv.P);
250 TEST_ASSERT(mbedtls_dhm_make_public(&ctx, (int) mbedtls_mpi_size(&P),
Dtest_suite_bignum.function111 TEST_ASSERT(mbedtls_mpi_size(&X) == 0);
200 buflen = mbedtls_mpi_size(&X);
231 buflen = mbedtls_mpi_size(&X);
269 buflen = mbedtls_mpi_size(&X);
1202 TEST_ASSERT(mbedtls_mpi_size(&X) + leading_zeros ==
/mbedtls-3.6.0/programs/pkey/
Ddh_server.c180 mbedtls_dhm_make_params(&dhm, (int) mbedtls_mpi_size(&dhm.MBEDTLS_PRIVATE(P)), buf, &n, in main()
/mbedtls-3.6.0/include/mbedtls/
Dbignum.h456 size_t mbedtls_mpi_size(const mbedtls_mpi *X);
/mbedtls-3.6.0/programs/test/
Dbenchmark.c1018 n = mbedtls_mpi_size(&dhm.P); in main()