Home
last modified time | relevance | path

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

/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genrsa.c173 if (mpi[n] && mbedtls_mpi_size(mpi[n])) {
175 mbedtls_mpi_size(mpi[n]), "genrsakey");
178 el[n].len = (uint32_t)mbedtls_mpi_size(mpi[n]);
323 return (int)mbedtls_mpi_size(&ctx->ctx->MBEDTLS_PRIVATE(N));
364 return (int)mbedtls_mpi_size(&ctx->ctx->MBEDTLS_PRIVATE(N));
514 int m = (int)mbedtls_mpi_size(mpi[n]);
Dmbedtls-x509.c432 if (!mbedtls_mpi_size(mpi[n])) in lws_x509_public_to_jwk()
435 jwk->e[n].buf = lws_malloc(mbedtls_mpi_size(mpi[n]), "certjwk"); in lws_x509_public_to_jwk()
438 jwk->e[n].len = (uint32_t)mbedtls_mpi_size(mpi[n]); in lws_x509_public_to_jwk()
509 if (!mbedtls_mpi_size(mpi[n])) { in lws_x509_jwk_privkey_pem()
514 jwk->e[n].buf = lws_malloc(mbedtls_mpi_size(mpi[n]), "certjwk"); in lws_x509_jwk_privkey_pem()
517 jwk->e[n].len = (uint32_t)mbedtls_mpi_size(mpi[n]); in lws_x509_jwk_privkey_pem()
/third_party/mbedtls/library/
Ddhm.c122 return mbedtls_mpi_size(&ctx->P); in mbedtls_dhm_get_len()
205 if ((unsigned) x_size < mbedtls_mpi_size(&ctx->P)) { in dhm_make_common()
263 n1 = mbedtls_mpi_size(&ctx->P); in mbedtls_dhm_make_params()
264 n2 = mbedtls_mpi_size(&ctx->G); in mbedtls_dhm_make_params()
265 n3 = mbedtls_mpi_size(&ctx->GX); in mbedtls_dhm_make_params()
454 *olen = mbedtls_mpi_size(&ctx->K); in mbedtls_dhm_calc_secret()
Drsa.c90 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_import()
107 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_import_raw()
149 if (ctx->len != mbedtls_mpi_size(&ctx->N) || in rsa_check_context()
277 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_complete()
621 ctx->len = mbedtls_mpi_size(&ctx->N); in mbedtls_rsa_gen_key()
Dasn1write.c130 len = mbedtls_mpi_size(X); in mbedtls_asn1_write_mpi()
Decdh.c652 if (mbedtls_mpi_size(&ctx->z) > blen) { in ecdh_calc_secret_internal()
Dx509write_crt.c111 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()
3014 if (mbedtls_mpi_size(&pt->X) > (grp->nbits + 7) / 8) { in ecp_check_pubkey_mx()
Decjpake.c395 len = mbedtls_mpi_size(&h); /* actually r */ in ecjpake_zkp_write()
Dpkparse.c344 len != mbedtls_mpi_size(&grp->P) + 1 || in pk_group_from_specified()
Dbignum.c358 size_t mbedtls_mpi_size(const mbedtls_mpi *X) in mbedtls_mpi_size() function
Dpsa_crypto.c1208 buflen = mbedtls_mpi_size(&mpi); in psa_get_rsa_public_exponent()
/third_party/mbedtls/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);
1235 TEST_ASSERT(mbedtls_mpi_size(&X) + leading_zeros ==
/third_party/mbedtls/programs/pkey/
Ddh_server.c190 mbedtls_dhm_make_params(&dhm, (int) mbedtls_mpi_size(&dhm.MBEDTLS_PRIVATE(P)), buf, &n, in main()
/third_party/mbedtls/include/mbedtls/
Dbignum.h445 size_t mbedtls_mpi_size(const mbedtls_mpi *X);
/third_party/mbedtls/programs/test/
Dbenchmark.c1005 n = mbedtls_mpi_size(&dhm.P); in main()