31 for (
int i=0; i<8; i++)
bool GetBit(size_t i) const
Provides the i-th bit of the Integer.
BlumBlumShub(const Integer &p, const Integer &q, const Integer &seed)
#define NAMESPACE_BEGIN(x)
void ProcessData(byte *outString, const byte *inString, size_t length)
Encrypt or decrypt an array of bytes.
void Seek(lword index)
Seek to an absolute position.
const Integer & Square(const Integer &a) const
Square an element in the ring.
unsigned int GenerateBit()
Generate new random bit and return it.
byte GenerateByte()
Generate new random byte and return it.
void GenerateBlock(byte *output, size_t size)
Generate random array of bytes.
Multiple precision integer with arithmetic operations.
uint8_t const size_t const size
Classes for Blum Blum Shub generator.
Multiple precision integer with arithmetic operations.
Integer a_exp_b_mod_c(const Integer &x, const Integer &e, const Integer &m)
BlumBlumShub without factorization of the modulus.
unsigned int BitPrecision(const T &value)
Returns the number of bits required for a value.
virtual Element Exponentiate(const Element &a, const Integer &e) const
Raises a base to an exponent in the group.
the value is positive or 0