Lines Matching refs:TEE_BigInt

60 static TEE_Result copy_mpi_to_bigint(mbedtls_mpi *mpi, TEE_BigInt *bigInt)  in copy_mpi_to_bigint()
85 static void get_mpi(mbedtls_mpi *mpi, const TEE_BigInt *bigInt) in get_mpi()
118 void TEE_BigIntInit(TEE_BigInt *bigInt, uint32_t len) in TEE_BigIntInit()
129 TEE_Result TEE_BigIntConvertFromOctetString(TEE_BigInt *dest, in TEE_BigIntConvertFromOctetString()
155 const TEE_BigInt *bigInt) in TEE_BigIntConvertToOctetString()
176 void TEE_BigIntConvertFromS32(TEE_BigInt *dest, int32_t shortVal) in TEE_BigIntConvertFromS32()
188 TEE_Result TEE_BigIntConvertToS32(int32_t *dest, const TEE_BigInt *src) in TEE_BigIntConvertToS32()
215 int32_t TEE_BigIntCmp(const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntCmp()
232 int32_t TEE_BigIntCmpS32(const TEE_BigInt *op, int32_t shortVal) in TEE_BigIntCmpS32()
246 void TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, size_t bits) in TEE_BigIntShiftRight()
287 bool TEE_BigIntGetBit(const TEE_BigInt *src, uint32_t bitIndex) in TEE_BigIntGetBit()
301 uint32_t TEE_BigIntGetBitCount(const TEE_BigInt *src) in TEE_BigIntGetBitCount()
315 static void bigint_binary(TEE_BigInt *dest, const TEE_BigInt *op1, in bigint_binary()
316 const TEE_BigInt *op2, in bigint_binary()
350 static void bigint_binary_mod(TEE_BigInt *dest, const TEE_BigInt *op1, in bigint_binary_mod()
351 const TEE_BigInt *op2, const TEE_BigInt *n, in bigint_binary_mod()
396 void TEE_BigIntAdd(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntAdd()
397 const TEE_BigInt *op2) in TEE_BigIntAdd()
402 void TEE_BigIntSub(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntSub()
403 const TEE_BigInt *op2) in TEE_BigIntSub()
408 void TEE_BigIntNeg(TEE_BigInt *dest, const TEE_BigInt *src) in TEE_BigIntNeg()
430 void TEE_BigIntMul(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntMul()
431 const TEE_BigInt *op2) in TEE_BigIntMul()
436 TEE_BigInt zero[TEE_BigIntSizeInU32(1)] = { 0 }; in TEE_BigIntMul()
437 TEE_BigInt *tmp = NULL; in TEE_BigIntMul()
453 void TEE_BigIntSquare(TEE_BigInt *dest, const TEE_BigInt *op) in TEE_BigIntSquare()
458 void TEE_BigIntDiv(TEE_BigInt *dest_q, TEE_BigInt *dest_r, in TEE_BigIntDiv()
459 const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntDiv()
501 void TEE_BigIntMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n) in TEE_BigIntMod()
509 void TEE_BigIntAddMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntAddMod()
510 const TEE_BigInt *op2, const TEE_BigInt *n) in TEE_BigIntAddMod()
515 void TEE_BigIntSubMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntSubMod()
516 const TEE_BigInt *op2, const TEE_BigInt *n) in TEE_BigIntSubMod()
521 void TEE_BigIntMulMod(TEE_BigInt *dest, const TEE_BigInt *op1, in TEE_BigIntMulMod()
522 const TEE_BigInt *op2, const TEE_BigInt *n) in TEE_BigIntMulMod()
527 void TEE_BigIntSquareMod(TEE_BigInt *dest, const TEE_BigInt *op, in TEE_BigIntSquareMod()
528 const TEE_BigInt *n) in TEE_BigIntSquareMod()
533 void TEE_BigIntInvMod(TEE_BigInt *dest, const TEE_BigInt *op, in TEE_BigIntInvMod()
534 const TEE_BigInt *n) in TEE_BigIntInvMod()
561 bool TEE_BigIntRelativePrime(const TEE_BigInt *op1, const TEE_BigInt *op2) in TEE_BigIntRelativePrime()
696 void TEE_BigIntComputeExtendedGcd(TEE_BigInt *gcd, TEE_BigInt *u, in TEE_BigIntComputeExtendedGcd()
697 TEE_BigInt *v, const TEE_BigInt *op1, in TEE_BigIntComputeExtendedGcd()
698 const TEE_BigInt *op2) in TEE_BigIntComputeExtendedGcd()
762 int32_t TEE_BigIntIsProbablePrime(const TEE_BigInt *op, in TEE_BigIntIsProbablePrime()
795 const TEE_BigInt *modulus __unused) in TEE_BigIntInitFMMContext()
810 void TEE_BigIntConvertToFMM(TEE_BigIntFMM *dest, const TEE_BigInt *src, in TEE_BigIntConvertToFMM()
811 const TEE_BigInt *n, in TEE_BigIntConvertToFMM()
817 void TEE_BigIntConvertFromFMM(TEE_BigInt *dest, const TEE_BigIntFMM *src, in TEE_BigIntConvertFromFMM()
818 const TEE_BigInt *n __unused, in TEE_BigIntConvertFromFMM()
835 const TEE_BigIntFMM *op2, const TEE_BigInt *n, in TEE_BigIntComputeFMM()