Home
last modified time | relevance | path

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

/third_party/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c299 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()
Dlws-genrsa.c179 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))
Dmbedtls-x509.c439 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/
Ddhm.c255 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()
Drsa.c349 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()
Dpsa_crypto_ecp.c388 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()
Decdsa.c447 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()
Dasn1write.c143 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
Decjpake.c402 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()
Decp.c740 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()
Dx509write_crt.c118 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
Decdh.c662 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
Dpk.c887 if ((ret = mbedtls_mpi_write_binary(&ec->d, d, d_len)) != 0) { in mbedtls_pk_wrap_as_opaque()
Dpk_wrap.c941 ret = mbedtls_mpi_write_binary(&ctx->d, buf, key_len); in ecdsa_sign_wrap()
Dpsa_crypto.c1214 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()
Dbignum.c741 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
/third_party/mbedtls/include/mbedtls/
Dbignum.h572 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/third_party/ffmpeg/libavformat/
Drtmpdh.c185 #define bn_bn2bin(bn, buf, len) mbedtls_mpi_write_binary(bn, buf, len)
/third_party/mbedtls/tests/suites/
Dtest_suite_bignum.misc.data91 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)
Dtest_suite_bignum_random.function322 TEST_EQUAL(0, mbedtls_mpi_write_binary(&R, &value, 1));
Dtest_suite_bignum.function205 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result);
270 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
Dtest_suite_ecp.function1149 TEST_EQUAL(0, mbedtls_mpi_write_binary(&d, actual, expected->len));
Dtest_suite_psa_crypto_driver_wrappers.function455 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, length) == 0);
/third_party/mbedtls/
DChangeLog1322 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