Sunday, 05 February 2012

DiceLockSecurity Knowledge

Windows - Source Code

Linux - Source Code

JAVA - Source Code

DOCUMENTATION - Inside Knowledge

DOCUMENTATION - Self browser view

HOW TO

arrow CryptoRandomStream arrow BaseCryptoRandomStream
BaseCryptoRandomStream Print E-mail
BaseCryptoRandomStream Class
  d-64class-abst.png
Get FREE DiceChecker C++
Random Number Test
Windows DLL

Abstract class


Implements the base class of all streams checked by random test classes.

The class contains:

  Constructors & Destructor
  Class methods



Class Constructors & Destructors

d-const.png

  BaseCryptoRandomStream ();
    Creates an object of the base class, sets the default values for common members of all derived classes.






 

d-const-abst.png

  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. 






 

d-const-abst.png

  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. 






 

d-dest.png

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






 


Class Methods


d-abstract.png

  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. 






 

d-abstract.png

  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. 






 

d-set.png

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






 

d-set.png

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






 

d-set.png

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






 

d-set.png

  void Fill (unsigned short value); 
    Sets the stream to an specified bit value (0 or 1).






 

d-get.png

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






 

d-get.png

  unsigned long int GetPosition (void);
    Gets the current bit position, first bit position is 0.






 

d-get.png

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






 

d-get.png

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






 

d-get.png

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






 

d-get.png

  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.

 

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 !