Home
last modified time | relevance | path

Searched refs:mp_sub (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_projective_dbl_point.c74 if ((err = mp_sub(R->z, modulus, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
79 if ((err = mp_sub(R->x, t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
86 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
94 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
99 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
115 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
120 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
125 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
132 if ((err = mp_sub(R->y, modulus, R->y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
153 if ((err = mp_sub(R->x, R->y, R->x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
[all …]
A Dltc_ecc_projective_add_point.c58 if ((err = mp_sub(modulus, Q->y, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
100 if ((err = mp_sub(y, t1, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
107 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
112 if ((err = mp_sub(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
115 if ((err = mp_sub(x, t2, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
122 if ((err = mp_sub(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
127 if ((err = mp_sub(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
158 if ((err = mp_sub(x, t2, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
164 if ((err = mp_sub(t2, x, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
169 if ((err = mp_sub(t2, x, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
[all …]
A Dltc_ecc_is_point.c35 if ((err = mp_sub(t1, t2, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
47 if ((err = mp_sub(t1, prime, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
A Decc_sign_hash.c88 if ((err = mp_sub(s, p, s)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/integer/
A Dder_decode_integer.c57 if (mp_2expt(tmp, mp_count_bits(num)) != CRYPT_OK || mp_sub(num, tmp, num) != CRYPT_OK) { in der_decode_integer()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_exptmod.c114 …if ((err = mp_sub(tmpa, tmpb, tmp)) != CRYPT_OK) { goto … in rsa_exptmod()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c112 ltc_res = mp_sub(k, tmp, tmp); in sm2_ltc_dsa_sign()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c155 if ((err = mp_sub(X, p, p)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dltm_desc.c260 return mpi_to_ltc_error(mp_sub(a, b, c)); in sub()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h197 #define mp_sub(a, b, c) ltc_mp.sub(a, b, c) macro

Completed in 10 milliseconds