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
Get FREE HashDigester
C++ Hash Algorithms
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 measured in bits.

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 measured in bits 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 SetCryptoRandomStreamBit (unsigned long int length); [ Virtual method ] 
    Creates a stream of length length in bits 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 SetCryptoRandomStreamBit (unsigned char* stream, unsigned long int length); [ Virtual method ] 
    Assigns the pointed stream stream of length length measured in bits 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-abstract.png

  virtual void SetCryptoRandomStreamUC (unsigned long int length); [ Virtual method ] 
    Creates a stream of length length measured in bytes (unsigned chars) 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 SetCryptoRandomStreamUC (unsigned char* stream, unsigned long int length); [ Virtual method ] 
    Assigns the pointed stream stream of length length measured in bytes (unsigned chars) 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-abstract.png

  virtual void SetCryptoRandomStreamUS (unsigned long int length); [ Virtual method ] 
    Creates a stream of length length measured in 2 bytes (unsigned short int) 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 SetCryptoRandomStreamUS (unsigned char* stream, unsigned long int length); [ Virtual method ] 
    Assigns the pointed stream stream of length length measured in 2 bytes (unsigned short int) 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-abstract.png

  virtual void SetCryptoRandomStreamUL (unsigned long int length); [ Virtual method ] 
    Creates a stream of length length measured in 4 bytes (unsigned long int) 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 SetCryptoRandomStreamUL (unsigned char* stream, unsigned long int length); [ Virtual method ] 
    Assigns the pointed stream stream of length length measured in 4 bytes (unsigned long int) 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-abstract.png

  virtual void SetCryptoRandomStreamHexStream (const char* string); [ Virtual method ] 
    Creates BaseCryptoRadnomStream and sets the pointed hexadecimal stream as the BaseCryptoRadnomStream data.

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 int bit);
    Sets the BaseCryptoRandomStream bit bit and moves the BaseCryptoRandomStream position to the following bit.






 

d-set.png

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

d-set.png

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

d-set.png

  void SetUCPosition (unsigned long int position, unsigned char value);
    Sets the BaseCryptoRandomStream pointer position (position it is calculated in bytes - unsigned chars - ), starting value 0.

d-set.png

  void SetUSPosition (unsigned long int position, unsigned short int value);
    Sets the BaseCryptoRandomStream pointer position (position it is calculated in 2 bytes - unsigned short ints - ), starting value 0.

d-set.png

  void SetULPosition (unsigned long int position, unsigned long int value);
    Sets the BaseCryptoRandomStream pointer position (position it is calculated in 4 bytes - unsigned long ints - ), starting value 0.

d-set.png

  void Set64Position (unsigned __int64 position, unsigned __int64 value);
    Sets the BaseCryptoRandomStream pointer position (position it is calculated in 8 bytes - unsigned __int64s - ), starting value 0.

d-set.png

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

d-set.png

  void FillUC (unsigned char value); 
    Sets the stream to an specified byte (unsigned char) value.

d-set.png

  void FillUS (unsigned short int value); 
    Sets the stream to an specified 2 bytes (unsigned short int) value.

d-set.png

  void FillUL (unsigned long int value); 
    Sets the stream to an specified 4 bytes (unsigned long int) value.

d-set.png

  void ReduceBitLength (unsigned long int reduceLength); 
    Reduces considered length of BaseCryptoRandomStream, real length is mantained, but any access to BaseCryptoRandomStream through the interface will be limited to the new considered length. BaseCryptoRandomStream will remain with its original length and using the specified memory. Reduces length in bits.

d-set.png

  void ReduceUCLength (unsigned long int reduceLength); 
    Reduces considered length of BaseCryptoRandomStream, real length is mantained, but any access to BaseCryptoRandomStream through the interface will be limited to the new considered length. BaseCryptoRandomStream will remain with its original length and using the specified memory. Reduces length in unsigned chars.

d-set.png

  void ReduceUSLength (unsigned long int reduceLength); 
    Reduces considered length of BaseCryptoRandomStream, real length is mantained, but any access to BaseCryptoRandomStream through the interface will be limited to the new considered length. BaseCryptoRandomStream will remain with its original length and using the specified memory. Reduces length in unsigned short ints.

d-set.png

  void ReduceULLength (unsigned long int reduceLength); 
    Reduces considered length of BaseCryptoRandomStream, real length is mantained, but any access to BaseCryptoRandomStream through the interface will be limited to the new considered length. BaseCryptoRandomStream will remain with its original length and using the specified memory. Reduces length in unsigned long ints.

d-set.png

  void RestoreLength (void); 
    Restores original length of BaseCryptoRandomStream and removes any fictitious reduced length.

d-set.png

  void Copy (BaseCryptoRandomStream* stream); 
    Operator copy, copies the content of BaseCryptoRandomStream object to the BaseCryptoRandomStream stream object passed as parameter.

d-get.png

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






 

d-get.png

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






 

d-get.png

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

d-get.png

  unsigned long int GetUCLength (void); 
    Gets the current BaseCryptoRandomStream length measured in bytes (unsigned chars).

d-get.png

  unsigned long int GetUSLength (void); 
    Gets the current BaseCryptoRandomStream length measured in 2 bytes (unsigned short ints).

d-get.png

  unsigned long int GetULLength (void); 
    Gets the current BaseCryptoRandomStream length measured in 4 bytes (unsigned long ints).

d-get.png

  unsigned __int64 Get64Length (void); 
    Gets the current BaseCryptoRandomStream length measured in 8 bytes (unsigned __int64s).

d-get.png

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

d-get.png

  unsigned char GetUCPosition (unsigned long int position); 
    Gets the BaseCryptoRandomStream byte (unsigned char) at a specified position (position measured in unsigned chars).

d-get.png

  unsigned short int GetUSPosition (unsigned long int position); 
    Gets the BaseCryptoRandomStream unsigned short int at a specified position (position measured in unsigned short ints).

d-get.png

  unsigned long int GetULPosition (unsigned long int position); 
    Gets the BaseCryptoRandomStream unsigned long int at a specified position (position measured in unsigned long ints).

d-get.png

  unsigned __int64 Get64Position (unsigned __int64 position); 
    Gets the BaseCryptoRandomStream unsigned __int64 at a specified position (position measured in unsigned __int64s).

d-get.png

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

d-get.png

  unsigned short int GetBitReverse (void); 
    Gets the BaseCryptoRandomStream bit at the current position and moves the BaseCryptoRandomStream pointer to the previous bit.

d-get.png

  unsigned char* GetUCAddressPosition (unsigned long int position); 
    Gets the unsigned char address at specified postion (position based in array of unsigned chars).

d-get.png

  unsigned short int* GetUSAddressPosition (unsigned long int position); 
    Gets the unsigned short int address at specified postion (position based in array of unsigned short ints).

d-get.png

  unsigned long int* GetULAddressPosition (unsigned long int position); 
    Gets the unsigned long int address at specified postion (position based in array of unsigned long ints).

d-get.png

  unsigned __int64* Get64AddressPosition (unsigned long int position); 
    Gets the unsigned __int64 address at specified postion (position based in array of unsigned __int64s).

d-get.png

  void GetUCSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position);
    Gets the BaseCryptoRandomStream portion stream at specified position from BaseCryptoRandomStream object, position based in array of unsigned chars.

d-get.png

  void GetUSSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position);
    Gets the BaseCryptoRandomStream portion stream at specified position from BaseCryptoRandomStream object, position based in array of unsigned short ints.

d-get.png

  void GetULSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position);
    Gets the BaseCryptoRandomStream portion stream at specified position from BaseCryptoRandomStream object, position based in array of unsigned long ints.

d-get.png

  void GetUCSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position, unsigned long int length);
    Gets the BaseCryptoRandomStream portion stream at specified postion with a specified length from baseCryptoRandomStream object, position and length based in array of unsigned chars.

d-get.png

  void GetUSSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position, unsigned long int length);
    Gets the BaseCryptoRandomStream portion stream at specified postion with a specified length from baseCryptoRandomStream object, position and length based in array of unsigned short ints.

d-get.png

  void GetULSubRandomStream (BaseCryptoRandomStream* portionStream, unsigned long int position, unsigned long int length);
    Gets the BaseCryptoRandomStream portion stream at specified postion with a specified length from baseCryptoRandomStream object, position and length based in array of unsigned long ints.

d-get.png

  bool ReducedLength (void);
    Indicates if BaseCryptoRandomStream's length has been reduced in a fictitious way.

d-get.png

  bool Equals(BaseCryptoRandomStream* stream);
    Operator equal, compares the BaseCryptoRandomStream object with the BaseCryptoRandomStream stream parameter.

d-abstract.png

  virtual CryptoRandomStreams GetCryptoRandomStreamType (void); [ Virtual method ] 
    Gets the CryptoRandomStream type of 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. 

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 !