Searched refs:mbedtls_mpi_size (Results 1 – 17 of 17) sorted by relevance
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | lws-genrsa.c | 173 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]);
|
D | mbedtls-x509.c | 432 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/ |
D | dhm.c | 122 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()
|
D | rsa.c | 90 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()
|
D | asn1write.c | 130 len = mbedtls_mpi_size(X); in mbedtls_asn1_write_mpi()
|
D | ecdh.c | 652 if (mbedtls_mpi_size(&ctx->z) > blen) { in ecdh_calc_secret_internal()
|
D | x509write_crt.c | 111 tmp_len = mbedtls_mpi_size(serial); in mbedtls_x509write_crt_set_serial()
|
D | ecp.c | 703 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()
|
D | ecjpake.c | 395 len = mbedtls_mpi_size(&h); /* actually r */ in ecjpake_zkp_write()
|
D | pkparse.c | 344 len != mbedtls_mpi_size(&grp->P) + 1 || in pk_group_from_specified()
|
D | bignum.c | 358 size_t mbedtls_mpi_size(const mbedtls_mpi *X) in mbedtls_mpi_size() function
|
D | psa_crypto.c | 1208 buflen = mbedtls_mpi_size(&mpi); in psa_get_rsa_public_exponent()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_dhm.function | 41 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),
|
D | test_suite_bignum.function | 111 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/ |
D | dh_server.c | 190 mbedtls_dhm_make_params(&dhm, (int) mbedtls_mpi_size(&dhm.MBEDTLS_PRIVATE(P)), buf, &n, in main()
|
/third_party/mbedtls/include/mbedtls/ |
D | bignum.h | 445 size_t mbedtls_mpi_size(const mbedtls_mpi *X);
|
/third_party/mbedtls/programs/test/ |
D | benchmark.c | 1005 n = mbedtls_mpi_size(&dhm.P); in main()
|