Home
last modified time | relevance | path

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

/optee_os/lib/libmbedtls/core/
H A Dsm2-kep.c65 mres = mbedtls_mpi_write_binary(&grp->A, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
74 mres = mbedtls_mpi_write_binary(&grp->B, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
83 mres = mbedtls_mpi_write_binary(&grp->G.X, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
92 mres = mbedtls_mpi_write_binary(&grp->G.Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
101 mres = mbedtls_mpi_write_binary(key->x, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
110 mres = mbedtls_mpi_write_binary(key->y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
159 mres = mbedtls_mpi_write_binary(&UV->X, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
174 mres = mbedtls_mpi_write_binary(initiator_eph_key->x, buf, in sm2_kep_compute_S()
185 mres = mbedtls_mpi_write_binary(initiator_eph_key->y, buf, in sm2_kep_compute_S()
196 mres = mbedtls_mpi_write_binary(responder_eph_key->x, buf, in sm2_kep_compute_S()
[all …]
H A Dsm2-pke.c173 mres = mbedtls_mpi_write_binary(&x2y2p.X, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
178 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_decrypt()
285 mres = mbedtls_mpi_write_binary(&p->X, buf + 1, SM2_INT_SIZE_BYTES); in sm2_point_to_bytes()
288 mres = mbedtls_mpi_write_binary(&p->Y, buf + 1 + SM2_INT_SIZE_BYTES, in sm2_point_to_bytes()
369 mres = mbedtls_mpi_write_binary(&x2y2p.X, x2y2, SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_encrypt()
374 mres = mbedtls_mpi_write_binary(&x2y2p.Y, x2y2 + SM2_INT_SIZE_BYTES, in sm2_mbedtls_pke_encrypt()
H A Dsm2-dsa.c126 mres = mbedtls_mpi_write_binary(&r, sig, SM2_INT_SIZE_BYTES); in sm2_mbedtls_dsa_sign()
129 mres = mbedtls_mpi_write_binary(&s, sig + SM2_INT_SIZE_BYTES, in sm2_mbedtls_dsa_sign()
H A Dbignum.c49 if (mbedtls_mpi_write_binary((mbedtls_mpi *)from, to, len)) in crypto_bignum_bn2bin()
H A Decc.c222 mbedtls_mpi_write_binary(&r, sig + *sig_len / 2 - in ecc_sign()
226 mbedtls_mpi_write_binary(&s, sig + *sig_len - in ecc_sign()
H A Drsa.c300 mbedtls_mpi_write_binary((mbedtls_mpi *)key->e, in sw_crypto_acipher_gen_rsa_key()
/optee_os/lib/libmbedtls/mbedtls/library/
H 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()
H 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()
H A Dpsa_crypto_ecp.c415 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash()
418 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
H A Drsa.c850 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
854 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
858 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
862 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
866 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
1266 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1574 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
H 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()
H A Dasn1write.c121 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
H 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()
H A Decp.c744 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
745 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary()
754 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
3332 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
3366 return mbedtls_mpi_write_binary(&key->d, buf, len); in mbedtls_ecp_write_key_ext()
H A Decdh.c659 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
H A Dx509write_crt.c113 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
H 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()
H A Dbignum.c903 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
H A Dpsa_crypto.c4135 mbedtls_mpi_write_binary(&r, in mbedtls_psa_sign_hash_complete()
4145 mbedtls_mpi_write_binary(&s, in mbedtls_psa_sign_hash_complete()
6458 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&k, *data, m_bytes)); in psa_generate_derived_ecc_key_weierstrass_helper()
/optee_os/core/lib/libtomcrypt/
H A Dmpi_desc.c245 int res = mbedtls_mpi_write_binary(a, b, unsigned_size(a)); in unsigned_write()
728 rc = mbedtls_mpi_write_binary(f, (void *)to, mbedtls_mpi_size(f)); in crypto_bignum_bn2bin()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dbignum.h590 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.c2568 mbedtls_rc = mbedtls_mpi_write_binary(&n, buffer, size); in set_private_key_data_rsa()
2584 mbedtls_rc = mbedtls_mpi_write_binary(&e, buffer, size); in set_private_key_data_rsa()
2600 mbedtls_rc = mbedtls_mpi_write_binary(&d, buffer, size); in set_private_key_data_rsa()
2616 mbedtls_rc = mbedtls_mpi_write_binary(&p, buffer, size); in set_private_key_data_rsa()
2632 mbedtls_rc = mbedtls_mpi_write_binary(&q, buffer, size); in set_private_key_data_rsa()
/optee_os/lib/libutee/
H A Dtee_api_arith_mpi.c183 MPI_CHECK(mbedtls_mpi_write_binary(&mpi, buffer, sz)); in TEE_BigIntConvertToOctetString()
226 if (mbedtls_mpi_write_binary(&mpi, (void *)&v, sizeof(v))) { in TEE_BigIntConvertToS32()
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog2283 may result in mbedtls_mpi_write_binary() or mbedtls_mpi_write_string()
3401 * In mbedtls_mpi_write_binary(), don't leak the exact size of the number