Lines Matching refs:op
211 * @brief Checks whether op > shortVal, op == shortVal, or op < shortVal.
213 * @param op Indicates the pointer to the first operand.
222 int32_t TEE_BigIntCmpS32(const TEE_BigInt *op, int32_t shortVal);
225 * @brief Computes |dest| = |op| >> bits.
228 * @param op Indicates the pointer to the operand to be shifted.
234 void TEE_BigIntShiftRight(TEE_BigInt *dest, const TEE_BigInt *op, size_t bits);
266 * @brief Sets the first bit of <b>bitIndex</b> in the natural binary representation of <b>op</b> to
269 * @param op Indicates the pointer to the integer.
276 * length of <b>op</b>.
281 TEE_Result TEE_BigIntSetBit(TEE_BigInt *op, uint32_t bitIndex, bool value);
338 * @brief Negates an operand: dest = –op.
340 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result –op.
341 * @param op Indicates the pointer to the operand to be negated.
346 void TEE_BigIntNeg(TEE_BigInt *dest, const TEE_BigInt *op);
361 * @brief Computes dest = op * op.
363 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op * op.
364 * @param op Indicates the pointer to the operand to be squared.
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).
391 * @param op Indicates the pointer to the operand to be reduced mod n.
397 void TEE_BigIntMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
402 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (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).
428 * @param dest Indicates the pointer to the <b>TEE_BigInt</b> that holds the result op (op1 * op2)(mod 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).
442 * @param op Indicates the pointer to the operand.
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).
454 * @param op Indicates the pointer to the operand.
460 void TEE_BigIntInvMod(TEE_BigInt *dest, const TEE_BigInt *op, const TEE_BigInt *n);
492 * @brief Performs a probabilistic primality test on <b>op</b>.
494 * @param op Indicates the pointer to the candidate number that is tested for primality.
497 * @return Returns <b>0</b> if <b>op</b> is a composite number.
498 * Returns <b>1</b> if <b>op</b> is a prime number.
499 * Returns <b>–1</b> if the test is non-conclusive but the probability that <b>op</b> is composite is
505 int32_t TEE_BigIntIsProbablePrime(const TEE_BigInt *op, uint32_t confidenceLevel);