Lines Matching refs:dest
142 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result.
145 * @param sign Indicates the sign of <b>dest</b>, which is set to the sign of <b>sign</b>.
148 * Returns <b>TEE_ERROR_OVERFLOW</b> if the memory allocated for <b>dest</b> is too small.
153 TEE_Result TEE_BigIntConvertFromOctetString(TEE_BigInt *dest, const uint8_t *buffer, size_t bufferLen, int32_t sign);
172 * @brief Sets <b>dest</b> to the value <b>shortVal</b>.
174 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result.
180 void TEE_BigIntConvertFromS32(TEE_BigInt *dest, int32_t shortVal);
183 * @brief Sets <b>dest</b> to the value of <b>src</b>, including the sign of <b>src</b>.
185 * @param dest Indicates the pointer to the <b> int32_t</b> that holds the result.
194 TEE_Result TEE_BigIntConvertToS32(int32_t *dest, const TEE_BigInt *src);
225 * @brief Computes |dest| = |op| >> bits.
227 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the shifted result.
234 void TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, size_t bits);
284 * @brief Assigns the value of <b>src</b> to <b>dest</b>.
286 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> to be assigned.
290 * Returns <b>TEE_ERROR_OVERFLOW</b> if the <b>dest</b> operand cannot hold the value of <b>src</b>.
295 TEE_Result TEE_BigIntAssign(TEE_BigInt *dest, const TEE_BigInt *src);
298 * @brief Assigns the value of <b>src</b> to <b>dest</b>.
300 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> to be assigned.
304 * Returns <b>TEE_ERROR_OVERFLOW</b> if the <b>dest</b> operand cannot hold the value of <b>src</b>.
309 TEE_Result TEE_BigIntAbs(TEE_BigInt *dest, const TEE_BigInt *src);
313 * @brief Computes dest = op1 + op2.
315 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the sum of <b>op1</b> and <b>op2</b>.
322 void TEE_BigIntAdd(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
325 * @brief Computes dest = op1 – op2.
327 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the difference between <b>op1</b>
335 void TEE_BigIntSub(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
338 * @brief Negates an operand: dest = –op.
340 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result –op.
346 void TEE_BigIntNeg(TEE_BigInt *dest, const TEE_BigInt *op);
349 * @brief Computes dest = op1 * op2.
351 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the product of <b>op1</b> and <b>op2</b>.
358 void TEE_BigIntMul(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2);
361 * @brief Computes dest = op * op.
363 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op * op.
369 void TEE_BigIntSquare(TEE_BigInt *dest, const TEE_BigInt *op);
388 * @brief Computes dest = op (mod n) to make 0 <= dest < n.
390 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (mod n).
397 void TEE_BigIntMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
400 * @brief Computes dest = (op1 + op2) (mod n).
402 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (op1 + op2)(mod n).
410 void TEE_BigIntAddMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
413 * @brief Computes dest = (op1 – op2) (mod n).
415 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (op1 – op2)(mod n).
423 void TEE_BigIntSubMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
426 * @brief Computes dest = (op1* op2)(mod n).
428 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (op1 * op2)(mod n).
436 void TEE_BigIntMulMod(TEE_BigInt *dest, const TEE_BigInt *op1, const TEE_BigInt *op2, const TEE_BigInt *n);
439 * @brief Computes dest = (op * op) (mod n).
441 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (op * op)(mod n).
448 void TEE_BigIntSquareMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
451 * @brief Computes <b>dest</b> to make dest* op = 1 (mod n).
453 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result (op^–1)(mod n).
460 void TEE_BigIntInvMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
510 * @param dest Indicates the pointer to an initialized <b>TEE_BigIntFMM</b> memory area.
519 void TEE_BigIntConvertToFMM(TEE_BigIntFMM *dest, const TEE_BigInt *src, const TEE_BigInt *n,
526 * @param dest Indicates the pointer to an initialized <b>TEE_BigIntFMM</b> memory area to store the converted result.
536 void TEE_BigIntConvertFromFMM(TEE_BigInt *dest, const TEE_BigIntFMM *src, const TEE_BigInt *n,
540 * @brief Computes dest = op1* op2 in the fast modular multiplication representation.
542 * @param dest Indicates the pointer to the <b>TEE_BigIntFMM</b> that holds the result op1* op2.
552 void TEE_BigIntComputeFMM(TEE_BigIntFMM *dest, const TEE_BigIntFMM *op1, const TEE_BigIntFMM *op2, const TEE_BigInt *n,
556 * @brief Computes dest = (op1 ^ op2)(mod n).