Home
last modified time | relevance | path

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

/openthread-2.7.6/src/core/crypto/
Decdsa.cpp179 ret = mbedtls_mpi_read_binary(&ecdsa.Q.X, GetBytes(), kMpiSize); in Verify()
181 ret = mbedtls_mpi_read_binary(&ecdsa.Q.Y, GetBytes() + kMpiSize, kMpiSize); in Verify()
186 ret = mbedtls_mpi_read_binary(&r, aSignature.mShared.mMpis.mR, kMpiSize); in Verify()
189 ret = mbedtls_mpi_read_binary(&s, aSignature.mShared.mMpis.mS, kMpiSize); in Verify()
/openthread-2.7.6/third_party/mbedtls/repo/tests/src/drivers/
Dsignature.c231 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, in test_transparent_signature_verify_hash()
234 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &s, in test_transparent_signature_verify_hash()
243 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ecp.d, key, key_length ) ); in test_transparent_signature_verify_hash()
/openthread-2.7.6/third_party/mbedtls/repo/programs/pkey/
Decdh_curve25519.c161 ret = mbedtls_mpi_read_binary( &ctx_srv.Qp.X, cli_to_srv, 32 ); in main()
192 ret = mbedtls_mpi_read_binary( &ctx_cli.Qp.X, srv_to_cli, 32 ); in main()
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_mpi.function40 * used as big endian, unsigned binary data in mbedtls_mpi_read_binary.
151 mbedtls_mpi_read_binary( NULL, u_in,
154 mbedtls_mpi_read_binary( &X, NULL,
338 void mbedtls_mpi_read_binary( data_t * buf, int radix_A, char * input_A )
347 TEST_ASSERT( mbedtls_mpi_read_binary( &X, buf->x, buf->len ) == 0 );
680 TEST_ASSERT( mbedtls_mpi_read_binary( &X, input_X->x, input_X->len ) == 0 );
681 TEST_ASSERT( mbedtls_mpi_read_binary( &Y, input_Y->x, input_Y->len ) == 0 );
682 TEST_ASSERT( mbedtls_mpi_read_binary( &X0, input_X->x, input_X->len ) == 0 );
808 TEST_ASSERT( mbedtls_mpi_read_binary( &X, input_X->x, input_X->len ) == 0 );
809 TEST_ASSERT( mbedtls_mpi_read_binary( &Y, input_Y->x, input_Y->len ) == 0 );
[all …]
Dtest_suite_pkcs1_v15.function198 TEST_ASSERT( mbedtls_mpi_read_binary( &Nmpi, N, sizeof( N ) ) == 0 );
199 TEST_ASSERT( mbedtls_mpi_read_binary( &Empi, E, sizeof( E ) ) == 0 );
200 TEST_ASSERT( mbedtls_mpi_read_binary( &Pmpi, P, sizeof( P ) ) == 0 );
201 TEST_ASSERT( mbedtls_mpi_read_binary( &Qmpi, Q, sizeof( Q ) ) == 0 );
Dtest_suite_ecp.function699 TEST_ASSERT( mbedtls_mpi_read_binary( &n, n_hex->x, n_hex->len ) == 0 );
701 TEST_ASSERT( mbedtls_mpi_read_binary( &P.X, Px_hex->x, Px_hex->len ) == 0 );
702 TEST_ASSERT( mbedtls_mpi_read_binary( &P.Y, Py_hex->x, Py_hex->len ) == 0 );
703 TEST_ASSERT( mbedtls_mpi_read_binary( &P.Z, Pz_hex->x, Pz_hex->len ) == 0 );
704 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.X, nPx_hex->x, nPx_hex->len )
706 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.Y, nPy_hex->x, nPy_hex->len )
708 TEST_ASSERT( mbedtls_mpi_read_binary( &nP.Z, nPz_hex->x, nPz_hex->len )
743 TEST_ASSERT( mbedtls_mpi_read_binary( &d, d_hex->x, d_hex->len ) == 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.data61 Base test mbedtls_mpi_read_binary #1
62 mbedtls_mpi_read_binary:"0941379d00fed1491fe15df284dfde4a142f68aa8d412023195cee66883e6290ffe703f4ea…
Dtest_suite_asn1write.function149 TEST_ASSERT( mbedtls_mpi_read_binary( &mpi, val->x, val->len ) == 0 );
/openthread-2.7.6/third_party/mbedtls/repo/library/
Decjpake.c122 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->s, secret, len ) ); in mbedtls_ecjpake_setup()
227 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( h, hash, in ecjpake_hash()
282 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, *p, r_len ) ); in ecjpake_zkp_read()
956 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm1, xm1, len1 ) ); in ecjpake_test_load()
957 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->xm2, xm2, len2 ) ); in ecjpake_test_load()
Dpkparse.c316 ( ret = mbedtls_mpi_read_binary( &grp->A, p, len ) ) != 0 ) in pk_group_from_specified()
324 ( ret = mbedtls_mpi_read_binary( &grp->B, p, len ) ) != 0 ) in pk_group_from_specified()
355 mbedtls_mpi_read_binary( &grp->G.X, p + 1, len - 1 ) != 0 || in pk_group_from_specified()
900 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()
265 if( ( ret = mbedtls_mpi_read_binary( &ctx->GY, input, ilen ) ) != 0 ) in mbedtls_dhm_read_public()
Drsa.c126 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->N, N, N_len ) ); in mbedtls_rsa_import_raw()
131 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->P, P, P_len ) ); in mbedtls_rsa_import_raw()
134 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->Q, Q, Q_len ) ); in mbedtls_rsa_import_raw()
137 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->D, D, D_len ) ); in mbedtls_rsa_import_raw()
140 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ctx->E, E, E_len ) ); in mbedtls_rsa_import_raw()
743 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &T, input, ctx->len ) ); in mbedtls_rsa_public()
940 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &T, input, ctx->len ) ); in mbedtls_rsa_private()
Dasn1parse.c206 ret = mbedtls_mpi_read_binary( X, *p, len ); in mbedtls_asn1_get_mpi()
Decdsa.c231 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( x, buf, use_size ) ); in derive_mpi()
Decp.c989 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->X, buf + 1, plen ) ); in mbedtls_ecp_point_read_binary()
990 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->Y, in mbedtls_ecp_point_read_binary()
3200 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &key->d, buf, buflen ) );
Dpsa_crypto.c2253 ret = mbedtls_mpi_read_binary( &required, in psa_validate_optional_attributes()
3858 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &r, in psa_ecdsa_verify()
3861 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &s, in psa_ecdsa_verify()
Dssl_tls.c4550 if( ( ret = mbedtls_mpi_read_binary( &conf->dhm_P, dhm_P, P_len ) ) != 0 || in mbedtls_ssl_conf_dh_param_bin()
4551 ( ret = mbedtls_mpi_read_binary( &conf->dhm_G, dhm_G, G_len ) ) != 0 ) in mbedtls_ssl_conf_dh_param_bin()
Dbignum.c876 int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf, size_t buflen ) in mbedtls_mpi_read_binary() function
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h493 int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf,
Dcompat-1.3.h2075 #define mpi_read_binary mbedtls_mpi_read_binary
/openthread-2.7.6/third_party/mbedtls/repo/programs/test/
Dbenchmark.c811 if( mbedtls_mpi_read_binary( &dhm.P, dhm_P[i], in main()
813 mbedtls_mpi_read_binary( &dhm.G, dhm_G[i], in main()
/openthread-2.7.6/third_party/mbedtls/repo/scripts/data_files/
Drename-1.3-2.0.txt1685 mpi_read_binary mbedtls_mpi_read_binary
/openthread-2.7.6/third_party/mbedtls/repo/
DChangeLog1600 * Make mbedtls_mpi_read_binary() constant-time with respect to the input