Lines Matching refs:op1
215 int32_t TEE_BigIntCmp(const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntCmp() argument
221 get_mpi(&mpi1, op1); in TEE_BigIntCmp()
315 static void bigint_binary(TEE_BigInt *dest, const TEE_BigInt *op1, in bigint_binary() argument
328 if (op1 == dest) in bigint_binary()
331 get_mpi(&mpi_op1, op1); in bigint_binary()
335 else if (op2 == op1) in bigint_binary()
350 static void bigint_binary_mod(TEE_BigInt *dest, const TEE_BigInt *op1, in bigint_binary_mod() argument
369 if (op1 == dest) in bigint_binary_mod()
372 get_mpi(&mpi_op1, op1); in bigint_binary_mod()
376 else if (op2 == op1) in bigint_binary_mod()
396 void TEE_BigIntAdd(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntAdd() argument
399 bigint_binary(dest, op1, op2, mbedtls_mpi_add_mpi); in TEE_BigIntAdd()
402 void TEE_BigIntSub(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntSub() argument
405 bigint_binary(dest, op1, op2, mbedtls_mpi_sub_mpi); in TEE_BigIntSub()
430 void TEE_BigIntMul(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntMul() argument
433 size_t bs1 = TEE_BigIntGetBitCount(op1); in TEE_BigIntMul()
446 bigint_binary(tmp, op1, op2, mbedtls_mpi_mul_mpi); in TEE_BigIntMul()
459 const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntDiv() argument
471 if (op1 == dest_q) in TEE_BigIntDiv()
473 else if (op1 == dest_r) in TEE_BigIntDiv()
476 get_mpi(&mpi_op1, op1); in TEE_BigIntDiv()
482 else if (op2 == op1) in TEE_BigIntDiv()
509 void TEE_BigIntAddMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntAddMod() argument
512 bigint_binary_mod(dest, op1, op2, n, mbedtls_mpi_add_mpi); in TEE_BigIntAddMod()
515 void TEE_BigIntSubMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntSubMod() argument
518 bigint_binary_mod(dest, op1, op2, n, mbedtls_mpi_sub_mpi); in TEE_BigIntSubMod()
521 void TEE_BigIntMulMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntMulMod() argument
524 bigint_binary_mod(dest, op1, op2, n, mbedtls_mpi_mul_mpi); in TEE_BigIntMulMod()
561 bool TEE_BigIntRelativePrime(const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntRelativePrime() argument
569 get_mpi(&mpi_op1, op1); in TEE_BigIntRelativePrime()
571 if (op2 == op1) in TEE_BigIntRelativePrime()
697 TEE_BigInt *v, const TEE_BigInt *op1, in TEE_BigIntComputeExtendedGcd() argument
706 get_mpi(&mpi_op1, op1); in TEE_BigIntComputeExtendedGcd()
708 if (op2 == op1) in TEE_BigIntComputeExtendedGcd()
834 void TEE_BigIntComputeFMM(TEE_BigIntFMM *dest, const TEE_BigIntFMM *op1, in TEE_BigIntComputeFMM() argument
845 get_mpi(&mpi_op1, op1); in TEE_BigIntComputeFMM()