Tuesday, 07 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

DefaultCryptoRandomStream Print E-mail
DefaultCryptoRandomStream Class
  d-64class-der.png
Get FREE DiceChecker C++
Random Number Test
Windows DLL

Derived class from: BaseCryptoRandomStream


Implements the default stream to check for randomness.

The class contains:

  Constructors & Destructor
  Class methods



Class Constructors & Destructors

d-const.png

  DefaultCryptoRandomStream ();
    Creates an object of the base class, sets the default values for members.






 

d-const.png

  DefaultCryptoRandomStream (unsigned long int length);  [ Overridden, BaseCryptoRandomStream virtual method defined ]
    Creates a DefaultCryptoRandomStream object with a stream of length length.






 

d-const.png

  DefaultCryptoRandomStream (unsigned char* stream, unsigned long int length);  [ Overridden, BaseCryptoRandomStream virtual method defined ]
    Creates a DefaultCryptoRandomStream object with the pointed stream stream of length length.






 

d-dest.png

  ~DefaultCryptoRandomStream ();
    Destroys the object and clears all members.






 


Class Methods


d-set.png

  virtual void SetCryptoRandomStream (unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] 
    Creates a stream of length length in the DefaultCryptoRandomStream object.






 

d-set.png

  virtual void SetCryptoRandomStream (unsigned char* stream, unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] 
    Assigns the pointed stream stream of length length to the DefaultCryptoRandomStream object.






 

d-set.png

  void SetBitForward (unsigned short bit); [ Inherited from BaseCryptoRandomStream ]
 
    Sets the BaseCryptoRandomStream bit bit and moves the BaseCryptoRandomStream position to the following bit.






 

d-set.png

  void SetBitReverse (unsigned short bit); [ Inherited from BaseCryptoRandomStream ] 
    Sets the BaseCryptoRandomStream bit bit and moves the BaseCryptoRandomStream position to the previous bit.






 

d-set.png

  void SetPosition (unsigned long int position); [ Inherited from BaseCryptoRandomStream ] 
    Sets the BaseCryptoRandomStream pointer position (it is calculated in bits), starting value 0.






 

d-set.png

  void Fill (unsigned short value); [ Inherited from BaseCryptoRandomStream ]  
    Sets the stream to an specified bit value (0 or 1).






 

d-get.png

  virtual void* GetCryptoRandomStreamMemory (void);  [ Inherited from BaseCryptoRandomStream ]
    Gets a pointer to the stream (at starting position 0) contained by the BaseCryptoRandomStream object.






 

d-get.png

  unsigned long int GetPosition (void); [ Inherited from BaseCryptoRandomStream ]  
    Gets the current bit position, first bit position is 0.






 

d-get.png

  unsigned long int GetLength (void); [ Inherited from BaseCryptoRandomStream ]  
    Gets the current BaseCryptoRandomStream length in bits.






 

d-get.png

  unsigned short GetBitPosition (unsigned long position); [ Inherited from BaseCryptoRandomStream ]  
    Gets the BaseCryptoRandomStream bit at a specified position (calculated in bits).






 

d-get.png

  unsigned short GetBitForward (void); [ Inherited from BaseCryptoRandomStream ]  
    Gets the BaseCryptoRandomStream bit at the current position and moves the BaseCryptoRandomStream pointer to the following bit.






 

d-get.png

  unsigned short GetBitReverse (void); [ Inherited from BaseCryptoRandomStream ]  
    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.

 

Please, let us know the usefulness of the information, it will allow us to be able to improve the support.

Was the information useful?

Vote
 
 



Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !