Lines Matching refs:res

116         let mut res = Self::new(bits);  in add()  variables
117 unsafe { raw::TEE_BigIntAdd(res.0.as_mut_ptr(), op1.data_ptr(), op2.data_ptr()) }; in add()
118 res in add()
123 let mut res = Self::new(bits); in sub() variables
124 unsafe { raw::TEE_BigIntSub(res.0.as_mut_ptr(), op1.data_ptr(), op2.data_ptr()) }; in sub()
125 res in sub()
129 let mut res = Self::new(Self::get_bit_count(op)); in neg() variables
130 unsafe { raw::TEE_BigIntNeg(res.0.as_mut_ptr(), op.data_ptr()) }; in neg()
131 res in neg()
136 let mut res = Self::new(bits); in multiply() variables
137 unsafe { raw::TEE_BigIntMul(res.0.as_mut_ptr(), op1.data_ptr(), op2.data_ptr()) }; in multiply()
138 res in multiply()
142 let mut res = Self::new(2 * Self::get_bit_count(op)); in square() variables
143 unsafe { raw::TEE_BigIntSquare(res.0.as_mut_ptr(), op.data_ptr()) }; in square()
144 res in square()
169 let mut res = Self::new(Self::get_bit_count(n)); in module() variables
170 unsafe { raw::TEE_BigIntMod(res.0.as_mut_ptr(), op.data_ptr(), n.data_ptr()) }; in module()
171 res in module()
175 let mut res = Self::new(Self::get_bit_count(n)); in add_mod() variables
178 res.0.as_mut_ptr(), in add_mod()
184 res in add_mod()
188 let mut res = Self::new(Self::get_bit_count(n)); in sub_mod() variables
191 res.0.as_mut_ptr(), in sub_mod()
197 res in sub_mod()
201 let mut res = Self::new(Self::get_bit_count(n)); in mul_mod() variables
204 res.0.as_mut_ptr(), in mul_mod()
210 res in mul_mod()
214 let mut res = Self::new(Self::get_bit_count(n)); in square_mod() variables
215 unsafe { raw::TEE_BigIntSquareMod(res.0.as_mut_ptr(), op.data_ptr(), n.data_ptr()) }; in square_mod()
216 res in square_mod()
220 let mut res = Self::new(Self::get_bit_count(n)); in inv_mod() variables
221 unsafe { raw::TEE_BigIntInvMod(res.0.as_mut_ptr(), op.data_ptr(), n.data_ptr()) }; in inv_mod()
222 res in inv_mod()