|
|
return ⌊log2(a)⌋
|
|
|
test a for divisibility by 2: true if a even
|
|
|
test a for divisibility by 2: true if a odd
|
|
|
test a for being a square
|
|
|
test a for primality
|
|
|
return gcd of a and b
|
|
|
extended Euclidean algorithm with return of gcd of a and b, u and v contain the absolute values of the factors of the linear combination g = sign_u*u*a + sign_v*v*b
|
|
|
return the multiplicative inverse of a mod b
|
|
|
return the least common multiple of a and b
|
|
|
return the Jacobi symbol ( )
|
|
|
return the integer part of the square root of a
|
|
|
return the square root of a modulo an odd prime p
|
|
|
return the square root of a modulo p*q for p and q odd primes
|
|
|
return a solution of a system of simultaneous linear congruences. In coeff is passed a vector of pointers to LINT objects as coefficients a1, m1, a2, m2, a3, m3, ... of the congruence system with noofeq equations x ≡ ai mod mi
|
|
|
return a primitive root modulo p. In noofprimes is passed the number of distinct prime factors of the group order p − 1, in primes a vector of pointers to LINT objects, beginning with p − 1, then come the prime divisors p1,...,pk of the group order p − 1 = with k = noofprimes
|
|
|
return the even part of a, odd contains the odd part of a
|
|
|
return a prime p of length l bits, i.e., 2l−1 ≤ p < 2l
|
|
|
return a prime p of length l bits, i.e., 2l−1 ≤ p < 2l and gcd(p − 1, f) = 1, f odd
|
|
|
return a prime p with pmin ≤ p ≤ pmax and gcd(p − 1, f) = 1, f odd
|
|
|
return the smallest prime p above a with gcd(p − 1, f) = 1, f odd
|
|
|
return a prime p of length l bits, i.e., 2l−1 ≤ p < 2l, with p ≡ a mod q and gcd(p − 1, f) = 1, f odd
|
|
return a prime p with pmin ≤ p ≤ pmax, with p ≡ a mod q and gcd(p − 1, f) = 1, f odd
|
|
|
return a strong prime p of length l bits, i.e., 2l−1 ≤ p < 2l
|
|
|
return a strong prime p of length l bits, i.e., 2l−1 ≤ p < 2l, with gcd(p − 1, f) = 1, f odd
|
|
|
return a strong prime p of length l bits, i.e., 2l−1 ≤ p < 2l, with gcd(p − 1, f) = 1, f odd lt , ls ≈ lr of length of p
|
|
|
return a strong prime p with pmin ≤ p ≤ pmax, gcd(p − 1, f) = 1, f odd, default lengths lr, lt, ls of prime divisors r of p − 1, t of r−1, s of p+1:lt , ls ≈ lr of the binary length of pmin
|
|
|
return a strong prime p with pmin ≤ p ≤ pmax, gcd(p − 1, f) = 1, f odd, lengths lr, lt, ls of prime divisors r of p − 1, t of r − 1, s of p + 1
|