Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_read_binary (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mbedtls/tests/suites/
Dtest_suite_pkcs1_v21.function32 TEST_ASSERT( mbedtls_mpi_read_binary( &N, input_N->x, input_N->len ) == 0 );
33 TEST_ASSERT( mbedtls_mpi_read_binary( &E, input_E->x, input_E->len ) == 0 );
79 TEST_ASSERT( mbedtls_mpi_read_binary( &P, input_P->x, input_P->len ) == 0 );
80 TEST_ASSERT( mbedtls_mpi_read_binary( &Q, input_Q->x, input_Q->len ) == 0 );
81 TEST_ASSERT( mbedtls_mpi_read_binary( &N, input_N->x, input_N->len ) == 0 );
82 TEST_ASSERT( mbedtls_mpi_read_binary( &E, input_E->x, input_E->len ) == 0 );
146 TEST_ASSERT( mbedtls_mpi_read_binary( &P, input_P->x, input_P->len ) == 0 );
147 TEST_ASSERT( mbedtls_mpi_read_binary( &Q, input_Q->x, input_Q->len ) == 0 );
148 TEST_ASSERT( mbedtls_mpi_read_binary( &N, input_N->x, input_N->len ) == 0 );
149 TEST_ASSERT( mbedtls_mpi_read_binary( &E, input_E->x, input_E->len ) == 0 );
[all …]
Dtest_suite_ecp.function399 TEST_ASSERT( mbedtls_mpi_read_binary( &n, n_hex->x, n_hex->len ) == 0 );
401 TEST_ASSERT( mbedtls_mpi_read_binary( &P.X, Px_hex->x, Px_hex->len ) == 0 );
402 TEST_ASSERT( mbedtls_mpi_read_binary( &P.Y, Py_hex->x, Py_hex->len ) == 0 );
403 TEST_ASSERT( mbedtls_mpi_read_binary( &P.Z, Pz_hex->x, Pz_hex->len ) == 0 );
404 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.X, nPx_hex->x, nPx_hex->len )
406 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.Y, nPy_hex->x, nPy_hex->len )
408 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.Z, nPz_hex->x, nPz_hex->len )
443 TEST_ASSERT( mbedtls_mpi_read_binary( &d, d_hex->x, d_hex->len ) == 0 );
476 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &u1, u1_bin->x, u1_bin->len ) );
477 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &u2, u2_bin->x, u2_bin->len ) );
[all …]
Dtest_suite_pkcs1_v15.function202 TEST_ASSERT( mbedtls_mpi_read_binary( &Nmpi, N, sizeof( N ) ) == 0 );
203 TEST_ASSERT( mbedtls_mpi_read_binary( &Empi, E, sizeof( E ) ) == 0 );
204 TEST_ASSERT( mbedtls_mpi_read_binary( &Pmpi, P, sizeof( P ) ) == 0 );
205 TEST_ASSERT( mbedtls_mpi_read_binary( &Qmpi, Q, sizeof( Q ) ) == 0 );
Dtest_suite_ecjpake.function76 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm1, xm1, len_xm1 ) );
77 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm2, xm2, len_xm2 ) );
Dtest_suite_mpi.function52 * used as big endian, unsigned binary data in mbedtls_mpi_read_binary.
180 void mbedtls_mpi_read_binary( data_t * buf, int radix_A, char * input_A )
189 TEST_ASSERT( mbedtls_mpi_read_binary( &X, buf->x, buf->len ) == 0 );
1124 TEST_ASSERT( mbedtls_mpi_read_binary( &X, input_X->x, input_X->len ) == 0 );
1284 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &upper_bound,
1388 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &upper_bound,
1412 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &upper_bound,
Dtest_suite_dhm.function43 TEST_EQUAL( 0, mbedtls_mpi_read_binary( &actual, buffer + *offset, n ) );
Dtest_suite_mpi.data79 Base test mbedtls_mpi_read_binary #1
80 mbedtls_mpi_read_binary:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea…
1835 ## mbedtls_mpi_read_binary() bases the size of the MPI on the size of
Dtest_suite_asn1write.function149 TEST_ASSERT( mbedtls_mpi_read_binary( &mpi, val->x, val->len ) == 0 );
/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c97 mbedtls_mpi_read_binary(&kp.MBEDTLS_PRIVATE(d), in lws_genec_keypair_import()
104 if (mbedtls_mpi_read_binary(&kp.MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), in lws_genec_keypair_import()
109 if (mbedtls_mpi_read_binary(&kp.MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), in lws_genec_keypair_import()
487 if (mbedtls_mpi_read_binary(&mpi_r, sig, (unsigned int)keybytes)) in lws_genecdsa_hash_sig_verify_jws()
489 if (mbedtls_mpi_read_binary(&mpi_s, sig + keybytes, (unsigned int)keybytes)) in lws_genecdsa_hash_sig_verify_jws()
Dlws-genrsa.c87 mbedtls_mpi_read_binary(mpi[n], el[n].buf,
/third_party/mbedtls/programs/pkey/
Decdh_curve25519.c157 … ret = mbedtls_mpi_read_binary( &ctx_srv.MBEDTLS_PRIVATE(Qp).MBEDTLS_PRIVATE(X), cli_to_srv, 32 ); in main()
188 … ret = mbedtls_mpi_read_binary( &ctx_cli.MBEDTLS_PRIVATE(Qp).MBEDTLS_PRIVATE(X), srv_to_cli, 32 ); in main()
/third_party/mbedtls/library/
Decjpake.c122 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->s, secret, len ) ); in mbedtls_ecjpake_setup()
236 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( h, hash, in ecjpake_hash()
291 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, *p, r_len ) ); in ecjpake_zkp_read()
989 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm1, xm1, len1 ) ); in ecjpake_test_load()
990 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm2, xm2, len2 ) ); in ecjpake_test_load()
Dpsa_crypto_ecp.c442 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, in mbedtls_psa_ecdsa_verify_hash()
445 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &s, in mbedtls_psa_ecdsa_verify_hash()
Drsa.c112 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->N, N, N_len ) ); in mbedtls_rsa_import_raw()
117 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->P, P, P_len ) ); in mbedtls_rsa_import_raw()
120 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->Q, Q, Q_len ) ); in mbedtls_rsa_import_raw()
123 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->D, D, D_len ) ); in mbedtls_rsa_import_raw()
126 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->E, E, E_len ) ); in mbedtls_rsa_import_raw()
758 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &T, input, ctx->len ) ); in mbedtls_rsa_public()
955 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &T, input, ctx->len ) ); in mbedtls_rsa_private()
Dpkparse.c317 ( ret = mbedtls_mpi_read_binary( &grp->A, p, len ) ) != 0 ) in pk_group_from_specified()
325 ( ret = mbedtls_mpi_read_binary( &grp->B, p, len ) ) != 0 ) in pk_group_from_specified()
356 mbedtls_mpi_read_binary( &grp->G.X, p + 1, len - 1 ) != 0 || in pk_group_from_specified()
901 if( ( ret = mbedtls_mpi_read_binary( &eck->d, p, len ) ) != 0 ) in pk_parse_key_sec1_der()
Ddhm.c81 if( ( ret = mbedtls_mpi_read_binary( X, *p, n ) ) != 0 ) in dhm_read_bignum()
329 if( ( ret = mbedtls_mpi_read_binary( &ctx->GY, input, ilen ) ) != 0 ) in mbedtls_dhm_read_public()
Dasn1parse.c206 ret = mbedtls_mpi_read_binary( X, *p, len ); in mbedtls_asn1_get_mpi()
Decdsa.c234 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( x, buf, use_size ) ); in derive_mpi()
Decp.c844 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->X, buf + 1, plen ) ); in mbedtls_ecp_point_read_binary()
845 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->Y, in mbedtls_ecp_point_read_binary()
3126 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &key->d, buf, buflen ) ); in mbedtls_ecp_read_key()
Decp_curves.c4655 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &grp->N, in ecp_use_curve25519()
4715 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &Ns, in ecp_use_curve448()
Dssl_tls.c3947 if( ( ret = mbedtls_mpi_read_binary( &conf->dhm_P, dhm_P, P_len ) ) != 0 || in mbedtls_ssl_conf_dh_param_bin()
3948 ( ret = mbedtls_mpi_read_binary( &conf->dhm_G, dhm_G, G_len ) ) != 0 ) in mbedtls_ssl_conf_dh_param_bin()
Dbignum.c815 int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf, size_t buflen ) in mbedtls_mpi_read_binary() function
/third_party/mbedtls/include/mbedtls/
Dbignum.h498 int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf,
/third_party/mbedtls/programs/test/
Dbenchmark.c1035 if( mbedtls_mpi_read_binary( &dhm.P, dhm_P[i], in main()
1037 mbedtls_mpi_read_binary( &dhm.G, dhm_G[i], in main()
/third_party/ffmpeg/libavformat/
Drtmpdh.c190 mbedtls_mpi_read_binary(bn, buf, len); \

12