Lines Matching refs:sess

620 static TEEC_Result Invoke_BigIntCmpS32(ADBG_Case_t *c, TEEC_Session *sess,  in Invoke_BigIntCmpS32()  argument
625 return Invoke_Simple_Function_v2(c, sess, cmd_id, exp_cmp_res, 0, in Invoke_BigIntCmpS32()
629 static TEEC_Result Invoke_BigIntCmp(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntCmp() argument
633 return Invoke_Simple_Function_v2(c, sess, cmd_id, exp_cmp_res, 0, in Invoke_BigIntCmp()
638 TEEC_Session *sess, in Invoke_BigIntComputeExtendedGcd() argument
644 return Invoke_Simple_Function_v3(c, sess, cmd_id, gcd, 0, dst_u, dst_v, in Invoke_BigIntComputeExtendedGcd()
648 static TEEC_Result Invoke_BigIntAddMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntAddMod() argument
652 return Invoke_Simple_Function_v2(c, sess, cmd_id, dest, mod, op1, op2); in Invoke_BigIntAddMod()
655 static TEEC_Result Invoke_BigIntAdd(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntAdd() argument
659 return Invoke_Simple_Function_v2(c, sess, cmd_id, dest, 0, op1, op2); in Invoke_BigIntAdd()
662 static TEEC_Result Invoke_BigIntMul(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntMul() argument
666 return Invoke_Simple_Function_v2(c, sess, cmd_id, dest, 0, op1, op2); in Invoke_BigIntMul()
669 static TEEC_Result Invoke_BigIntMulMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntMulMod() argument
673 return Invoke_Simple_Function_v2(c, sess, cmd_id, dst, mod, op1, op2); in Invoke_BigIntMulMod()
676 static TEEC_Result Invoke_StoreS32(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_StoreS32() argument
691 return Invoke_Simple_Function_v2(c, sess, cmd_id, dest, sign, v, 0); in Invoke_StoreS32()
696 TEEC_Session *sess, in Invoke_BigIntConvertFromS32() argument
700 return Invoke_Simple_Function_v1(c, sess, cmd_id, dst, short_val); in Invoke_BigIntConvertFromS32()
704 TEEC_Session *sess, in Invoke_BigIntConvertToS32() argument
708 return Invoke_Simple_Function_v1(c, sess, cmd_id, src, dst); in Invoke_BigIntConvertToS32()
711 static TEEC_Result Invoke_BigIntGetBit(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntGetBit() argument
725 res = TEEC_InvokeCommand(sess, cmd, &op, &org); in Invoke_BigIntGetBit()
734 static TEEC_Result Invoke_BigIntGetBitCount(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntGetBitCount() argument
747 res = TEEC_InvokeCommand(sess, cmd, &op, &org); in Invoke_BigIntGetBitCount()
756 static TEEC_Result Invoke_Wait(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_Wait() argument
759 return Invoke_Simple_Function_v1(c, sess, cmdId, Case, 0); in Invoke_Wait()
763 TEEC_Session *sess, in Invoke_BigIntInitFMMContext() argument
767 return Invoke_Simple_Function_v2(c, sess, cmd_id, ctx, mod, mod_size, in Invoke_BigIntInitFMMContext()
771 static TEEC_Result Invoke_NewBigIntFMM(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_NewBigIntFMM() argument
775 return Invoke_Simple_Function_v1(c, sess, cmd_id, role, mod_size); in Invoke_NewBigIntFMM()
778 static TEEC_Result Invoke_BigIntConvertToFMM(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntConvertToFMM() argument
783 return Invoke_Simple_Function_v3(c, sess, cmd_id, ctx, mod, dst, 0, in Invoke_BigIntConvertToFMM()
788 TEEC_Session *sess, in Invoke_BigIntConvertFromFMM() argument
793 return Invoke_Simple_Function_v3(c, sess, cmd_id, ctx, mod, dst, 0, in Invoke_BigIntConvertFromFMM()
797 static TEEC_Result Invoke_BigIntComputeFMM(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntComputeFMM() argument
802 return Invoke_Simple_Function_v3(c, sess, cmd_id, ctx, mod, dst, 0, in Invoke_BigIntComputeFMM()
806 static TEEC_Result Invoke_BigIntDiv(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntDiv() argument
810 return Invoke_Simple_Function_v2(c, sess, cmd_id, q, r, op1, op2); in Invoke_BigIntDiv()
813 static TEEC_Result Invoke_BigIntMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntMod() argument
817 return Invoke_Simple_Function_v2(c, sess, cmd_id, dst, mod, op, 0); in Invoke_BigIntMod()
820 static TEEC_Result Invoke_BigIntInvMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntInvMod() argument
824 return Invoke_Simple_Function_v2(c, sess, cmd, dst, mod, op, 0); in Invoke_BigIntInvMod()
828 TEEC_Session *sess, in Invoke_BigIntIsProbablePrime() argument
833 return Invoke_Simple_Function_v2(c, sess, cmd, exp_result, 0, op, in Invoke_BigIntIsProbablePrime()
837 static TEEC_Result Invoke_BigIntNeg(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntNeg() argument
840 return Invoke_Simple_Function_v2(c, sess, cmd, dst, 0, op, 0); in Invoke_BigIntNeg()
844 TEEC_Session *sess, uint32_t cmd, in Invoke_BigIntRelativePrime() argument
848 return Invoke_Simple_Function_v2(c, sess, cmd, exp_result, 0, op1, op2); in Invoke_BigIntRelativePrime()
851 static TEEC_Result Invoke_BigIntShiftRight(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntShiftRight() argument
855 return Invoke_Simple_Function_v2(c, sess, cmd, dst, op, bits, 0); in Invoke_BigIntShiftRight()
858 static TEEC_Result Invoke_BigIntSquareMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntSquareMod() argument
862 return Invoke_Simple_Function_v2(c, sess, cmd, dst, mod, op, 0); in Invoke_BigIntSquareMod()
865 static TEEC_Result Invoke_BigIntSquare(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntSquare() argument
868 return Invoke_Simple_Function_v2(c, sess, cmd, dst, 0, op, 0); in Invoke_BigIntSquare()
871 static TEEC_Result Invoke_BigIntSubMod(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntSubMod() argument
875 return Invoke_Simple_Function_v2(c, sess, cmd, dst, mod, op1, op2); in Invoke_BigIntSubMod()
878 static TEEC_Result Invoke_BigIntSub(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_BigIntSub() argument
882 return Invoke_Simple_Function_v2(c, sess, cmd, dst, 0, op1, op2); in Invoke_BigIntSub()
885 static TEEC_Result Invoke_NewBigInt(ADBG_Case_t *c, TEEC_Session *sess, in Invoke_NewBigInt() argument
889 return Invoke_Simple_Function_v1(c, sess, cmd_id, role, size); in Invoke_NewBigInt()
892 static TEEC_Result Macro_StoreBigInt(ADBG_Case_t *c, TEEC_Session *sess, in Macro_StoreBigInt() argument
905 res = Invoke_NewBigInt(c, sess, CMD_Arithm_TTA_New_BigInt, role, size); in Macro_StoreBigInt()
909 res = TEEC_AllocateSharedMemory(sess->ctx, &shm_value); in Macro_StoreBigInt()
921 res = TEEC_InvokeCommand(sess, CMD_Arithm_BigIntConvertFromOctetString, in Macro_StoreBigInt()
928 TEEC_Session *sess, in Invoke_BigIntConvertToOctetString() argument
941 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in Invoke_BigIntConvertToOctetString()
951 res = TEEC_InvokeCommand(sess, cmd_id, &op, &org); in Invoke_BigIntConvertToOctetString()
967 TEEC_Session *sess, in Invoke_BigIntConvertFromOctetString() argument
986 res = TEEC_AllocateSharedMemory(sess->ctx, &shm); in Invoke_BigIntConvertFromOctetString()
998 res = TEEC_InvokeCommand(sess, cmd_id, &op, &org); in Invoke_BigIntConvertFromOctetString()