/third_party/libwebsockets/lib/tls/mbedtls/ |
D | lws-genec.c | 299 if (mbedtls_mpi_write_binary(mpi[n - 1], el[n].buf, in lws_genecdh_new_keypair() 374 if (mbedtls_mpi_write_binary(mpi[n - 1], el[n].buf, el[n].len)) { in lws_genecdsa_new_keypair() 438 if (mbedtls_mpi_write_binary(&mpi_r, sig, (unsigned int)keybytes)) in lws_genecdsa_hash_sign_jws() 441 if (mbedtls_mpi_write_binary(&mpi_s, sig + keybytes, (unsigned int)keybytes)) in lws_genecdsa_hash_sign_jws()
|
D | lws-genrsa.c | 179 if (mbedtls_mpi_write_binary(mpi[n], el[n].buf, 530 if (mbedtls_mpi_write_binary(mpi[n], p, (unsigned int)m)) 534 if (mbedtls_mpi_write_binary(mpi[n], &p[1], (unsigned int)m))
|
D | mbedtls-x509.c | 439 mbedtls_mpi_write_binary(mpi[n], jwk->e[n].buf, jwk->e[n].len); in lws_x509_public_to_jwk() 518 mbedtls_mpi_write_binary(mpi[n], jwk->e[n].buf, jwk->e[n].len); in lws_x509_jwk_privkey_pem()
|
/third_party/mbedtls/library/ |
D | dhm.c | 255 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary((X), \ in mbedtls_dhm_make_params() 339 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->GX, output, olen)); in mbedtls_dhm_make_public() 455 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->K, output, *olen)); in mbedtls_dhm_calc_secret()
|
D | rsa.c | 349 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw() 353 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw() 357 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw() 361 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw() 365 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw() 753 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public() 1038 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
|
D | psa_crypto_ecp.c | 388 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash() 391 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
|
D | ecdsa.c | 447 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(d, data, grp_len)); in mbedtls_ecdsa_sign_det_restartable() 449 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, data + grp_len, grp_len)); in mbedtls_ecdsa_sign_det_restartable()
|
D | asn1write.c | 143 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
|
D | ecjpake.c | 402 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, *p, len)); /* r */ in ecjpake_zkp_write() 826 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret()
|
D | ecp.c | 740 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary() 741 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary() 750 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary() 3310 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
|
D | x509write_crt.c | 118 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
|
D | ecdh.c | 662 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
|
D | pk.c | 887 if ((ret = mbedtls_mpi_write_binary(&ec->d, d, d_len)) != 0) { in mbedtls_pk_wrap_as_opaque()
|
D | pk_wrap.c | 941 ret = mbedtls_mpi_write_binary(&ctx->d, buf, key_len); in ecdsa_sign_wrap()
|
D | psa_crypto.c | 1214 ret = mbedtls_mpi_write_binary(&mpi, buffer, buflen); in psa_get_rsa_public_exponent() 3666 mbedtls_mpi_write_binary(&r, in mbedtls_psa_sign_hash_complete() 3676 mbedtls_mpi_write_binary(&s, in mbedtls_psa_sign_hash_complete() 5611 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&k, *data, m_bytes)); in psa_generate_derived_ecc_key_weierstrass_helper()
|
D | bignum.c | 741 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
|
/third_party/mbedtls/include/mbedtls/ |
D | bignum.h | 572 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
|
/third_party/ffmpeg/libavformat/ |
D | rtmpdh.c | 185 #define bn_bn2bin(bn, buf, len) mbedtls_mpi_write_binary(bn, buf, len)
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_bignum.misc.data | 91 Base test mbedtls_mpi_write_binary #1 94 Test mbedtls_mpi_write_binary #1 (Buffer just fits) 97 Test mbedtls_mpi_write_binary #2 (Buffer too small)
|
D | test_suite_bignum_random.function | 322 TEST_EQUAL(0, mbedtls_mpi_write_binary(&R, &value, 1));
|
D | test_suite_bignum.function | 205 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result); 270 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
|
D | test_suite_ecp.function | 1149 TEST_EQUAL(0, mbedtls_mpi_write_binary(&d, actual, expected->len));
|
D | test_suite_psa_crypto_driver_wrappers.function | 455 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, length) == 0);
|
/third_party/mbedtls/ |
D | ChangeLog | 1322 may result in mbedtls_mpi_write_binary() or mbedtls_mpi_write_string() 2440 * In mbedtls_mpi_write_binary(), don't leak the exact size of the number
|