Home
last modified time | relevance | path

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

/openthread-2.7.6/src/core/crypto/
Decdsa.cpp147 OT_ASSERT(mbedtls_mpi_size(&r) <= kMpiSize); in Sign()
236 …VerifyOrExit(mbedtls_mpi_size(&rMpi) + mbedtls_mpi_size(&sMpi) <= aOutputLength, error = kErrorNoB… in Sign()
239 …VerifyOrExit(mbedtls_mpi_write_binary(&rMpi, aOutput, mbedtls_mpi_size(&rMpi)) == 0, error = kErro… in Sign()
240 aOutputLength = static_cast<uint16_t>(mbedtls_mpi_size(&rMpi)); in Sign()
242 …VerifyOrExit(mbedtls_mpi_write_binary(&sMpi, aOutput + aOutputLength, mbedtls_mpi_size(&sMpi)) == … in Sign()
244 aOutputLength += mbedtls_mpi_size(&sMpi); in Sign()
/openthread-2.7.6/third_party/mbedtls/repo/library/
Ddhm.c148 ctx->len = mbedtls_mpi_size( &ctx->P ); in mbedtls_dhm_read_params()
209 n1 = mbedtls_mpi_size( &ctx->P ); in mbedtls_dhm_make_params()
210 n2 = mbedtls_mpi_size( &ctx->G ); in mbedtls_dhm_make_params()
211 n3 = mbedtls_mpi_size( &ctx->GX ); in mbedtls_dhm_make_params()
248 ctx->len = mbedtls_mpi_size( &ctx->P ); in mbedtls_dhm_set_group()
332 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( R, mbedtls_mpi_size( M ), f_rng, p_rng ) ); in dhm_random_below()
457 *olen = mbedtls_mpi_size( &ctx->K ); in mbedtls_dhm_calc_secret()
583 dhm->len = mbedtls_mpi_size( &dhm->P ); in mbedtls_dhm_parse_dhm()
Dasn1write.c134 len = mbedtls_mpi_size( X ); in mbedtls_asn1_write_mpi()
Drsa.c109 ctx->len = mbedtls_mpi_size( &ctx->N ); in mbedtls_rsa_import()
127 ctx->len = mbedtls_mpi_size( &ctx->N ); in mbedtls_rsa_import_raw()
164 if( ctx->len != mbedtls_mpi_size( &ctx->N ) || in rsa_check_context()
299 ctx->len = mbedtls_mpi_size( &ctx->N ); in mbedtls_rsa_complete()
608 ctx->len = mbedtls_mpi_size( &ctx->N ); in mbedtls_rsa_gen_key()
Decdh.c680 if( mbedtls_mpi_size( &ctx->z ) > blen ) in ecdh_calc_secret_internal()
Decjpake.c348 len = mbedtls_mpi_size( &h ); /* actually r */ in ecjpake_zkp_write()
Decp.c880 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_write_binary()
954 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_read_binary()
2926 if( mbedtls_mpi_size( &pt->X ) > ( grp->nbits + 7 ) / 8 )
Dpkparse.c354 len != mbedtls_mpi_size( &grp->P ) + 1 || in pk_group_from_specified()
Dssl_cli.c3698 (int) mbedtls_mpi_size( &ssl->handshake->dhm_ctx.P ), in ssl_write_client_key_exchange()
3965 (int) mbedtls_mpi_size( &ssl->handshake->dhm_ctx.P ), in ssl_write_client_key_exchange()
Dbignum.c444 size_t mbedtls_mpi_size( const mbedtls_mpi *X ) in mbedtls_mpi_size() function
Dssl_srv.c3363 (int) mbedtls_mpi_size( &ssl->handshake->dhm_ctx.P ), in ssl_prepare_server_key_exchange()
Dpsa_crypto.c1548 buflen = mbedtls_mpi_size( &mpi ); in psa_get_rsa_public_exponent()
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_dhm.function148 x_size = mbedtls_mpi_size( &ctx_srv.P );
244 TEST_ASSERT( mbedtls_dhm_make_public( &ctx, (int) mbedtls_mpi_size( &P ),
Dtest_suite_mpi.function301 TEST_ASSERT( mbedtls_mpi_size( &X ) == 0 );
390 buflen = mbedtls_mpi_size( &X );
422 buflen = mbedtls_mpi_size( &X );
461 buflen = mbedtls_mpi_size( &X );
1389 TEST_ASSERT( mbedtls_mpi_size( &X ) + leading_zeros ==
/openthread-2.7.6/third_party/mbedtls/repo/programs/pkey/
Ddh_server.c213 if( ( ret = mbedtls_dhm_make_params( &dhm, (int) mbedtls_mpi_size( &dhm.P ), buf, &n, in main()
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h399 size_t mbedtls_mpi_size( const mbedtls_mpi *X );
Dcompat-1.3.h2085 #define mpi_size mbedtls_mpi_size
/openthread-2.7.6/third_party/mbedtls/repo/programs/test/
Dbenchmark.c819 dhm.len = mbedtls_mpi_size( &dhm.P ); in main()
/openthread-2.7.6/third_party/mbedtls/repo/scripts/data_files/
Drename-1.3-2.0.txt1695 mpi_size mbedtls_mpi_size