BaseCryptoRandomStream Class
|
|
|
|
|
Abstract class
Implements the base class of all streams checked by random test classes.
The class contains:
Constructors & Destructor
Class methods
Class Constructors & Destructors
|
|
|
BaseCryptoRandomStream (); |
| |
|
Creates an object of the base class, sets the default values for common members of all derived classes. |
|
|
|
BaseCryptoRandomStream (unsigned long int length); [ Virtual method ] |
| |
|
Creates a stream of length length.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
BaseCryptoRandomStream (unsigned char* stream, unsigned long int length); [ Virtual method ] |
| |
|
Assigns the pointed stream stream of length length as the CryptoRandomStream.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
~BaseCryptoRandomStream (); |
| |
|
Destroys the object and clears all common members. |
|
|
|
virtual void SetCryptoRandomStream (unsigned long int length); [ Virtual method ]
|
| |
|
Creates a stream of length length in the object.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
virtual void SetCryptoRandomStream (unsigned char* stream, unsigned long int length); [ Virtual method ]
|
| |
|
Assigns the pointed stream stream of length length to the object.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
void SetBitForward (unsigned short bit); |
| |
|
Sets the BaseCryptoRandomStream bit bit and moves the BaseCryptoRandomStream position to the following bit.
|
|
|
|
void SetBitReverse (unsigned short bit); |
| |
|
Sets the BaseCryptoRandomStream bit bit and moves the BaseCryptoRandomStream position to the previous bit.
|
|
|
|
void SetPosition (unsigned long int position); |
| |
|
Sets the BaseCryptoRandomStream pointer position (it is calculated in bits), starting value 0.
|
|
|
|
void Fill (unsigned short value); |
| |
|
Sets the stream to an specified bit value (0 or 1).
|
|
|
|
virtual void* GetCryptoRandomStreamMemory (void); |
| |
|
Gets a pointer to the stream (at starting position 0) contained by the BaseCryptoRandomStream object.
|
|
|
|
unsigned long int GetPosition (void);
|
| |
|
Gets the current bit position, first bit position is 0.
|
|
|
|
unsigned long int GetLength (void); |
| |
|
Gets the current BaseCryptoRandomStream length in bits.
|
|
|
|
unsigned short GetBitPosition (unsigned long position); |
| |
|
Gets the BaseCryptoRandomStream bit at a specified position (calculated in bits).
|
|
|
|
unsigned short GetBitForward (void); |
| |
|
Gets the BaseCryptoRandomStream bit at the current position and moves the BaseCryptoRandomStream pointer to the following bit.
|
|
|
|
unsigned short GetBitReverse (void); |
| |
|
Gets the BaseCryptoRandomStream bit at the current position and moves the BaseCryptoRandomStream pointer to the previous bit.
|
You can check the page Used Symbols for an explanation of the symbols near the information.
|
|
|