Searched refs:mres (Results 1 – 4 of 4) sorted by relevance
| /optee_os/lib/libmbedtls/core/ |
| H A D | sm2-dsa.c | 32 int mres = 0; in sm2_mbedtls_dsa_sign() local 53 mres = mbedtls_ecp_group_load(&grp, MBEDTLS_ECP_DP_SM2); in sm2_mbedtls_dsa_sign() 54 if (mres) { in sm2_mbedtls_dsa_sign() 75 mres = mbedtls_ecp_mul(&grp, &x1y1p, &k, &grp.G, mbd_rand, in sm2_mbedtls_dsa_sign() 77 if (mres) in sm2_mbedtls_dsa_sign() 83 mres = mbedtls_mpi_add_mpi(&r, &e, &x1y1p.X); in sm2_mbedtls_dsa_sign() 84 if (mres) in sm2_mbedtls_dsa_sign() 86 mres = mbedtls_mpi_mod_mpi(&r, &r, &grp.N); in sm2_mbedtls_dsa_sign() 87 if (mres) in sm2_mbedtls_dsa_sign() 92 mres = mbedtls_mpi_add_mpi(&tmp, &r, &k); in sm2_mbedtls_dsa_sign() [all …]
|
| H A D | sm2-kep.c | 37 int mres = 0; in sm2_kep_compute_Z() local 65 mres = mbedtls_mpi_write_binary(&grp->A, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z() 66 if (mres) { in sm2_kep_compute_Z() 74 mres = mbedtls_mpi_write_binary(&grp->B, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z() 75 if (mres) { in sm2_kep_compute_Z() 83 mres = mbedtls_mpi_write_binary(&grp->G.X, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z() 84 if (mres) { in sm2_kep_compute_Z() 92 mres = mbedtls_mpi_write_binary(&grp->G.Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z() 93 if (mres) { in sm2_kep_compute_Z() 101 mres = mbedtls_mpi_write_binary(key->x, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z() [all …]
|
| H A D | sm2-pke.c | 29 int mres = 0; in sm2_uncompressed_bytes_to_point() local 34 mres = mbedtls_mpi_read_binary(&p->X, ptr, SM2_INT_SIZE_BYTES); in sm2_uncompressed_bytes_to_point() 35 if (mres) in sm2_uncompressed_bytes_to_point() 40 mres = mbedtls_mpi_read_binary(&p->Y, ptr, SM2_INT_SIZE_BYTES); in sm2_uncompressed_bytes_to_point() 41 if (mres) in sm2_uncompressed_bytes_to_point() 44 mres = mbedtls_mpi_lset(&p->Z, 1); in sm2_uncompressed_bytes_to_point() 45 if (mres) in sm2_uncompressed_bytes_to_point() 48 mres = mbedtls_ecp_check_pubkey(grp, p); in sm2_uncompressed_bytes_to_point() 49 if (mres) in sm2_uncompressed_bytes_to_point() 121 int mres = 0; in sm2_mbedtls_pke_decrypt() local [all …]
|
| H A D | mbed_helpers.c | 20 int mres = 0; in mbed_gen_random_upto() local 23 mres = mbedtls_mpi_fill_random(n, sz, mbd_rand, NULL); in mbed_gen_random_upto() 24 if (mres) in mbed_gen_random_upto()
|