Home
last modified time | relevance | path

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

/mbedtls-latest/library/
Dpsa_crypto_ffdh.c182 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&GX, data, key_len)); in mbedtls_psa_ffdh_export_public_key()
223 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&X, key_buffer, key_buffer_size)); in mbedtls_psa_ffdh_generate_key()
301 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K, shared_secret, in mbedtls_psa_ffdh_key_agreement()
Ddhm.c243 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary((X), \ in mbedtls_dhm_make_params()
327 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->GX, output, olen)); in mbedtls_dhm_make_public()
443 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->K, output, *olen)); in mbedtls_dhm_calc_secret()
Drsa.c848 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
852 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
856 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
860 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
864 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
1264 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1572 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
Dpsa_crypto_ecp.c417 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash()
420 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
Decdsa.c435 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(d, data, grp_len)); in mbedtls_ecdsa_sign_det_restartable()
437 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, data + grp_len, grp_len)); in mbedtls_ecdsa_sign_det_restartable()
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()
3328 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
3362 return mbedtls_mpi_write_binary(&key->d, buf, len); in mbedtls_ecp_write_key_ext()
Decjpake.c359 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, *p, len)); /* r */ in ecjpake_zkp_write()
783 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret()
Dasn1write.c119 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
Decdh.c659 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
Dpk_wrap.c781 ret = mbedtls_mpi_write_binary(&ctx->d, buf, key_len); in ecdsa_sign_wrap()
977 ret = mbedtls_mpi_write_binary(&mbedtls_pk_ec_ro(*prv)->d, in eckey_check_pair_psa()
Dx509write_crt.c111 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
Dpsa_crypto.c4005 mbedtls_mpi_write_binary(&r,
4015 mbedtls_mpi_write_binary(&s,
6283 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&k, *data, m_bytes));
Dbignum.c852 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
/mbedtls-latest/include/mbedtls/
Dbignum.h583 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/mbedtls-latest/tests/suites/
Dtest_suite_bignum.function162 TEST_EQUAL(mbedtls_mpi_write_binary(&X, NULL, 0), 0);
228 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result);
293 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
Dtest_suite_bignum.misc.data94 Base test mbedtls_mpi_write_binary #1
97 Test mbedtls_mpi_write_binary #1 (Buffer just fits)
100 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_ecp.function1377 TEST_EQUAL(0, mbedtls_mpi_write_binary(&d, actual, expected->len));
Dtest_suite_psa_crypto_driver_wrappers.function456 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, length) == 0);
/mbedtls-latest/
DChangeLog2090 may result in mbedtls_mpi_write_binary() or mbedtls_mpi_write_string()
3208 * In mbedtls_mpi_write_binary(), don't leak the exact size of the number