Tuesday, 07 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

DefaultCryptoRandomStream Print E-mail
DefaultCryptoRandomStream Class
  d-64class-der.png
 New Interface new.gif
Get FREE DiceChecker C++
Random Number Test
Windows DLL
Get FREE HashDigester
C++ Hash Algorithms
Windows DLL

Derived class from: BaseCryptoRandomStream


Implements the default stream.

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 measured in bits.

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 measured in bits.

d-dest.png

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

Class Methods

d-set.png

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

d-set.png

  void SetCryptoRandomStreamBit (void* stream, unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Assigns the pointed stream stream of length length measured in bits to the object.

d-set.png

  void SetCryptoRandomStreamUC (unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Creates a stream of length length measured in unsigned chars in the object.

d-set.png

  void SetCryptoRandomStreamUC (void* stream, unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Assigns the pointed stream stream of length length measured in unsigned chars to the object.

d-set.png

  void SetCryptoRandomStreamUS (unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Creates a stream of length length measured in unsigned short ints in the object.

d-set.png

  void SetCryptoRandomStreamUS (void* stream, unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Assigns the pointed stream stream of length length measured in unsigned short ints to the object.

d-set.png

  void SetCryptoRandomStreamUL (unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Creates a stream of length length measured in unsigned long ints in the object.

d-set.png

  void SetCryptoRandomStreamUL (void* stream, unsigned long int length); [ Overridden, BaseCryptoRandomStream virtual method defined ] new.gif
    Assigns the pointed stream stream of length length measured in unsigned long ints to the 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 SetBitPosition (unsigned long int position); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ]new.gif
    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); [ Inherited from BaseCryptoRandomStream ]new.gif
    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); [ Inherited from BaseCryptoRandomStream ]new.gif
    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); [ Inherited from BaseCryptoRandomStream ]new.gif
    Sets the BaseCryptoRandomStream pointer position (position it is calculated in 8 bytes - unsigned __int64s - ), starting value 0.

d-set.png

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

d-set.png

  void FillUC (unsigned char value); [ Inherited from BaseCryptoRandomStream ] new.gif
    Sets the stream to an specified byte (unsigned char) value.

d-set.png

  void FillUS (unsigned short int value); [ Inherited from BaseCryptoRandomStream ] new.gif
    Sets the stream to an specified 2 bytes (unsigned short int) value.

d-set.png

  void FillUL (unsigned long int value); [ Inherited from BaseCryptoRandomStream ] new.gif
    Sets the stream to an specified 4 bytes (unsigned long int) value.

d-get.png

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

d-get.png

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

d-get.png

  unsigned long int GetBitLength (void); [ Inherited from BaseCryptoRandomStream ] new.gif 
    Gets the current BaseCryptoRandomStream length measured in bits.

d-get.png

  unsigned long int GetUCLength (void); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the current BaseCryptoRandomStream length measured in bytes (unsigned chars).

d-get.png

  unsigned long int GetUSLength (void); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the current BaseCryptoRandomStream length measured in 2 bytes (unsigned short ints).

d-get.png

  unsigned long int GetULLength (void); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the current BaseCryptoRandomStream length measured in 4 bytes (unsigned long ints).

d-get.png

  unsigned __int64 Get64Length (void); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the current BaseCryptoRandomStream length measured in 8 bytes (unsigned __int64s).

d-get.png

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

d-get.png

  unsigned char GetUCPosition (unsigned long int position); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the BaseCryptoRandomStream unsigned __int64 at a specified position (position measured in unsigned __int64s).

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.

d-get.png

  unsigned char* GetUCAddressPosition (unsigned long int position); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    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); [ Inherited from BaseCryptoRandomStream ] new.gif
    Gets the unsigned __int64 address at specified postion (position based in array of unsigned __int64s).

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 !