Home
last modified time | relevance | path

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

/mbedtls/library/
A 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()
A 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()
A 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()
A Drsa.c847 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
851 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
855 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
859 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
863 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
1263 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1571 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
A 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()
A Dasn1write.c119 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
A 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()
A 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()
A Decdh.c659 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
A Dx509write_crt.c107 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
A 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()
A Dbignum.c851 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
A Dpsa_crypto.c3949 mbedtls_mpi_write_binary(&r, in mbedtls_psa_sign_hash_complete()
3959 mbedtls_mpi_write_binary(&s, in mbedtls_psa_sign_hash_complete()
6225 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&k, *data, m_bytes)); in psa_generate_derived_ecc_key_weierstrass_helper()
/mbedtls/include/mbedtls/
A Dbignum.h583 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/mbedtls/tests/suites/
A Dtest_suite_bignum.function159 TEST_EQUAL(mbedtls_mpi_write_binary(&X, NULL, 0), 0);
225 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result);
290 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
A 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)
A Dtest_suite_bignum_random.function322 TEST_EQUAL(0, mbedtls_mpi_write_binary(&R, &value, 1));
A Dtest_suite_ecp.function1377 TEST_EQUAL(0, mbedtls_mpi_write_binary(&d, actual, expected->len));
A Dtest_suite_psa_crypto_driver_wrappers.function456 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, length) == 0);
/mbedtls/
A DChangeLog1895 may result in mbedtls_mpi_write_binary() or mbedtls_mpi_write_string()
3013 * In mbedtls_mpi_write_binary(), don't leak the exact size of the number

Completed in 76 milliseconds