Friday, 18 May 2012

DiceLockSecurity Knowledge

Windows - Source Code

Linux - Source Code

Apple Mac OS X

JAVA - Source Code

DOCUMENTATION - Inside Knowledge

DOCUMENTATION - Self browser view

HOW TO

arrow RandomTest arrow OverlappingTemplateMatchingsTest
OverlappingTemplateMatchingsTest (Overlapping Template Matchings Random Test) Print E-mail
Get C++ and Java source code with ready to use project files for Microsoft Visual Studio for Windows, Oracle JDeveloper for Java JRE, Xcode for Mac OS X and Eclipse CDT with Nokia QT for Linux ...
VisualStudio.pngjdeveloper.pngXcode.pngeclipse-cdt.pngqt.png
OverlappingTemplateMatchingsTest Class   d-64class-der.png
Get FREE DiceChecker C++
Random Number Test
Windows DLL

Derived class from: BaseRandomTest


Implements the OverlappingTemplateMatchings random test.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods
  Specific Class methods




Class Constructors & Destructor

d-const.png

  OverlappingTemplateMatchingsTest ();
    Creates an object of the class, sets the default values for members and creates the MathematicalFunctions object needed to execute the random test.

d-const.png

  OverlappingTemplateMatchingsTest (MathematicalFunctions* functions);
   
Creates an object of the class, sets the default values for members and sets the MathematicalFunctions object functions passed as the MathematicalFunctions object needed to execute the random test.

d-note.png   If no MathematicalFunctions object functions is passed (NULL value), the constructor creates by itself the corresponding MathematicalFunctions object.


d-dest.png

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

d-note.png   If a MathematicalFunctions object has been created when the object was created, the MathematicalFunctions object is destroyed. If the MathematicalFunctions object was provided as a parameter, the MathematicalFunctions object is not deleted !!!.






Class Initializers

d-reset.png

  void Initialize (void); [ Inherited from BaseRandomTest ]
    Sets the default values to all members, the object is cleaned. The MathematicalFunctions object is not affected.

Class Methods

d-set.png

  void SetAlpha (double alpha); [ Inherited from BaseRandomTest ]
    Sets the alpha value for the random test object.
Alpha is the significance level that determines the region of acceptance and rejection.
For example, if alpha is set to >= 0,001 then we are demanding a confidence level of 99,9%.

d-exe.png

  bool IsRandom (BaseCryptoRandomStream* stream); [ Overridden, BaseRandomTest virtual method defined ]
    Performs the specific randomness test.
Checks randomness of BaseCryptoRandomStream stream parameter and returns 0 (false randomness) or 1 (true randomness).

d-get.png

  bool IsRandom (void); [ Inherited from BaseRandomTest ]
    Gets randomness of the last checked BaseCryptoRandomStream , returns 0 (false randomness) or 1 (true randomness).

d-get.png

  double GetPValue (void); [ Inherited from BaseRandomTest ]
    Gets PValue of the last checked BaseCryptoRandomStream .
PValue is the probability that a perfect random number generator would have produced a sequence less random than the BaseCryptoRandomStream  checked, given the kind of non-randomness assessed by the test.

d-get.png

  double GetAlpha (void); [ Inherited from BaseRandomTest ]
    Gets the alpha of the random test object.

d-get.png

  RandomTests GetType (void); [ Overridden, BaseRandomTest virtual method defined ]
    Gets the random test type (the algorithm that implements) of the object.
Returns the corresponding RandomTests value.

d-get.png

  unsigned int GetMinimumLength (void); [ Overridden, BaseRandomTest virtual method defined ]
    Gets the minimum length that the BaseCryptoRandomStream must have in order to perform the random test.

d-get.png

  RandomTestErrors GetError (void); [ Inherited from BaseRandomTest ]
    Gets the error of the last checked BaseCryptoRandomStream .
Returns one of the RandomTestErrors values.
If no error has been produced, the value is set to NoError.



Specific Class Methods

d-get.png

  int* GetWindowLengths (void);
    Gets an array of block sizes.

d-set.png

  void SetWindowLength (int windowLength);
    Sets the window length windowLength parameter.

d-get.png

  int GetWindowLength (void);
    Gets the window length result.

d-get.png

  int GetM (void);
    Gets the "M" result.

d-get.png

  int GetN (void);
    Gets the "N" result.

d-get.png

  double GetChiSquared (void);
    Gets the chiSquared result.

d-get.png

  double GetEta (void);
    Gets the "eta" result.

d-get.png

  double GetLambda (void);
    Gets the "lambda" result.

d-get.png

  void GetAssignment (unsigned int* assignmentsArray);
    Gets the assignment array assignmentsArray (minimum array lenght is 6) result.

d-get.png

  unsigned int GetAssignmentOfIndex (int index);
    Gets the assignment result by index index (index must be between 0 and 5).






 


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 !