/third_party/mbedtls/tests/suites/ |
D | test_suite_bignum.function | 399 TEST_ASSERT(mbedtls_mpi_lset(&X, input_X) == 0); 1034 TEST_ASSERT(mbedtls_mpi_lset(&A, 1) == 0); 1039 TEST_ASSERT(mbedtls_mpi_lset(&E, 1) == 0); 1044 TEST_ASSERT(mbedtls_mpi_lset(&N, 1) == 0); 1215 TEST_ASSERT(mbedtls_mpi_lset(&X, before > 0 ? 1 : -1) == 0); 1276 /* Test mbedtls_mpi_lset() */ 1277 TEST_EQUAL(mbedtls_mpi_lset(&A, most_negative), 0); 1294 TEST_EQUAL(mbedtls_mpi_lset(&A, most_positive), 0); 1299 TEST_EQUAL(mbedtls_mpi_lset(&A, 0), 0); 1304 TEST_EQUAL(mbedtls_mpi_lset(&A, most_negative), 0); [all …]
|
D | test_suite_random.function | 188 TEST_EQUAL(0, mbedtls_mpi_lset(&d, 123456789));
|
D | test_suite_ecdsa.function | 150 TEST_EQUAL(mbedtls_mpi_lset(&zero, 0), 0); 505 TEST_EQUAL(mbedtls_mpi_lset(&ctx.Q.Z, 1), 0);
|
D | test_suite_dhm.function | 243 TEST_ASSERT(mbedtls_mpi_lset(&P, 1) == 0);
|
D | test_suite_bignum_random.function | 384 TEST_ASSERT(mbedtls_mpi_lset(&result, before > 0 ? 1 : -1) == 0);
|
D | test_suite_ecp.function | 290 TEST_ASSERT(mbedtls_mpi_lset(&Q.Z, 1) == 0); 1104 TEST_EQUAL(0, mbedtls_mpi_lset(&C, -c));
|
D | test_suite_asn1parse.function | 436 TEST_ASSERT(mbedtls_mpi_lset(&complement, 1) == 0);
|
/third_party/mbedtls/library/ |
D | bignum.c | 268 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z) in mbedtls_mpi_lset() function 426 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_read_string() 433 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_read_string() 1169 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 0)); in mbedtls_mpi_mul_mpi() 1211 return mbedtls_mpi_lset(X, 0); in mbedtls_mpi_mul_int() 1371 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(Q, 0)); in mbedtls_mpi_div_mpi() 1384 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&Z, 0)); in mbedtls_mpi_div_mpi() 1422 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&T1, 0)); in mbedtls_mpi_div_mpi() 1766 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&RR, 1)); in mbedtls_mpi_exp_mod() 2143 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&U1, 1)); in mbedtls_mpi_inv_mod() [all …]
|
D | ecp.c | 642 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->X, 1)); in mbedtls_ecp_set_zero() 643 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Y, 1)); in mbedtls_ecp_set_zero() 644 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 0)); in mbedtls_ecp_set_zero() 682 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&P->Z, 1)); in mbedtls_ecp_point_read_string() 795 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 1)); in mbedtls_ecp_point_read_binary() 813 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&pt->Z, 1)); in mbedtls_ecp_point_read_binary() 1196 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, c)) 3550 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&m, 2)); in mbedtls_ecp_self_test()
|
D | dhm.c | 369 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->Vi, 1)); in dhm_update_blinding() 370 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->Vf, 1)); in dhm_update_blinding()
|
D | rsa_alt_helpers.c | 129 mbedtls_mpi_lset(&K, primes[attempt]); in mbedtls_rsa_deduce_primes()
|
D | ecjpake.c | 596 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&one, 1)); in ecjpake_ecp_add3() 780 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&one, 1)); in mbedtls_ecjpake_derive_k()
|
D | pkparse.c | 346 mbedtls_mpi_lset(&grp->G.Y, p[0] - 2) != 0 || in pk_group_from_specified() 347 mbedtls_mpi_lset(&grp->G.Z, 1) != 0) { in pk_group_from_specified()
|
D | ecp_curves.c | 4667 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve25519_a24)); in ecp_use_curve25519() 4677 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 9)); in ecp_use_curve25519() 4678 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve25519() 4729 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->A, curve448_a24)); in ecp_use_curve448() 4736 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.X, 5)); in ecp_use_curve448() 4737 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&grp->G.Z, 1)); in ecp_use_curve448()
|
D | bignum_core.c | 524 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(X, 1)); in mbedtls_mpi_core_get_mont_r2_unsafe()
|
D | rsa.c | 571 MBEDTLS_MPI_CHK(mbedtls_mpi_lset(&ctx->E, exponent)); in mbedtls_rsa_gen_key()
|
/third_party/mbedtls/include/mbedtls/ |
D | bignum.h | 373 int mbedtls_mpi_lset(mbedtls_mpi *X, mbedtls_mpi_sint z);
|
/third_party/ffmpeg/libavformat/ |
D | rtmpdh.c | 179 #define bn_set_word(bn, w) mbedtls_mpi_lset(bn, w)
|
/third_party/libwebsockets/lib/tls/mbedtls/ |
D | lws-genec.c | 114 mbedtls_mpi_lset(&kp.MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Z), 1); in lws_genec_keypair_import()
|