| /optee_os/lib/libmbedtls/core/ |
| H A D | sm2-kep.c | 65 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 D | sm2-pke.c | 173 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 D | sm2-dsa.c | 126 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 D | bignum.c | 49 if (mbedtls_mpi_write_binary((mbedtls_mpi *)from, to, len)) in crypto_bignum_bn2bin()
|
| H A D | ecc.c | 222 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 D | rsa.c | 300 mbedtls_mpi_write_binary((mbedtls_mpi *)key->e, in sw_crypto_acipher_gen_rsa_key()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | psa_crypto_ffdh.c | 182 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 D | dhm.c | 243 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 D | psa_crypto_ecp.c | 415 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 D | rsa.c | 850 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 D | ecdsa.c | 435 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 D | asn1write.c | 121 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
|
| H A D | ecjpake.c | 359 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 D | ecp.c | 744 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 D | ecdh.c | 659 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
|
| H A D | x509write_crt.c | 113 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
|
| H A D | pk_wrap.c | 781 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 D | bignum.c | 903 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, in mbedtls_mpi_write_binary() function
|
| H A D | psa_crypto.c | 4135 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 D | mpi_desc.c | 245 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 D | bignum.h | 590 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
|
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_attributes.c | 2568 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 D | tee_api_arith_mpi.c | 183 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 D | ChangeLog | 2283 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
|