crypto/crypto/cdsa/utils/ristretto_utils library

Properties

invSqrt BigInt
The modular inverse of the square root (1/sqrt(a*d)) in the Ristretto255 curve field.
final
mask255 BigInt
A mask for the least significant 255 bits, used for bitwise operations.
final
minusOneSq BigInt
The square of -1 in the Ristretto255 curve field.
final
oneMinusDSq BigInt
The value 1 - d^2 in the Ristretto255 curve field.
final
sqrtAdMinusOne BigInt
The value (a*d) - 1 in the Ristretto255 curve field.
final
sqrtM1 BigInt
Helper methods for Ristretto255 operations. The square root of -1 in the Ristretto255 curve field.
final

Functions

isOdd(BigInt num, BigInt modulo) bool
Check if a BigInt number is odd with respect to a given modulo.
positiveMod(BigInt a, BigInt b) BigInt
Calculates the positive remainder of two BigInt values.
sqrtUV(BigInt u, BigInt v) Tuple<bool, BigInt>
sqrt u/v