Friday, 10 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

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

Class


Implements the suite class to check different random tests of BaseCryptoRandomStream objects.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods




Class Constructors & Destructors

d-const.png

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

d-note.png   None random test object is created, a default MathematicalFunctions object is created for the random tests instantiated in the suite.

d-const.png

  RandomTestSuite (MathematicalFunctions* mathFuncs)
   
Creates an object of the class, sets the default values for members.

d-note.png   None random test object is created, the MathematicalFunctions object mathFuncs is the MathematicalFunctions object for the random tests instantiated in the suite.

d-dest.png

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

d-note.png   If the RandomTestSuite object contains any instantiated random test object credated by the suite, the random test object is deleted. If the MathematicalFunctions object was instantiated by the suite, then the MathematicalFunctions object is deleted.









Class Cleaners

d-reset.png

  void Initialize (void);
    Initializes all random tests objects in the suite.

Class Methods

d-set.png

  void Add (BaseRandomTest* test);
   
Adds the pointed BaseRandomTest random test object test to the suite.

d-note.png   The BaseRandomTest random test object must be provided with its own MathematicalFunctions object. If a MathematicalFunctions object has been instantiated by the suite, that MathematicalFunctions object is not used.

d-set.png

  void Add (RandomTests test);
   
Creates and adds a random test to the suite based in the enumerated RandomTests test.

d-note.png   The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddAll (void);
   
Instantites and adds all random tests to the suite object.

  All random tests will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddFrequencyTest (void);
   
Creates and adds a Frequency random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddBlockFrequencyTest (void);
   
Creates and adds a Block Frequency random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddRunsTest (void);
   
Creates and adds a Runs random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddLongestRunOfOnesTest (void);
   
Creates and adds a Longest Runs Of Ones random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddCumulativeSumForwardTest (void);
   
Creates and adds a Cumulative Sum Forward random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddCumulativeSumReverseTest (void);
   
Creates and adds a Cumulative Sum Reverse random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddRankTest (void);
   
Creates and adds a Rank random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddOverlappingTemplateMatchingsTest (void);
   
Creates and adds an Overlapping Template Matchings random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddUniversalTest (void);
   
Creates and adds an Universal random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddApproximateEntropyTest (void);
   
Creates and adds an Approximate Entropy random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddSerialTest (void);
   
Creates and adds a Serial random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddDiscreteFourierTransformTest (void);
   
Creates and adds a Discrete Fourier Transform random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddLinearComplexityTest (void);
   
Creates and adds a Linear Complexity random test to the suite.

  The random test will use the MathematicalFunctions object instantiated by the suite.

d-get.png

  BaseRandomTest* GetRandomTest (RandomTests test);
    Gets a pointer to a random test object of the suite based in the RandomTests enumerated random test test.

d-get.png

  FrequencyTest* GetFrequencyTest (void);
    Gets the pointer to the Frequency random test object of the suite object.

d-get.png

  BlockFrequencyTest* GetBlockFrequencyTest (void);
    Gets the pointer to the Block Frequency random test object of the suite object.

d-get.png

  RunsTest* GetRunsTest (void);
    Gets the pointer to the Runs random test object of the suite object.

d-get.png

  LongestRunOfOnesTest* GetLongestRunOfOnesTest (void);
    Gets the pointer to the Longest Runs Of Ones random test object of the suite object.

d-get.png

  CumulativeSumForwardTest* GetCumulativeSumForwardTest (void);
    Gets the pointer to the Cumulative Sum Forward random test object of the suite object.

d-get.png

  CumulativeSumReverseTest* GetCumulativeSumReverseTest (void);
    Gets the pointer to the Cumulative Sum Reverse random test object of the suite object.

d-get.png

  RankTest* GetRankTest (void);
    Gets the pointer to the Rank random test object of the suite object.

d-get.png

  OverlappingTemplateMatchingsTest* GetOverlappingTemplateMatchingsTest (void);
    Gets the pointer to the Overlapping Template Matchings random test object of the suite object.

d-get.png

  UniversalTest* GetUniversalTest (void);
    Gets the pointer to the Universal random test object of the suite object.

d-get.png

  ApproximateEntropyTest* GetApproximateEntropyTest (void);
    Gets the pointer to the Approximate Entropy random test object of the suite object.

d-get.png

  SerialTest* GetSerialTest (void);
    Gets the pointer to the Serial random test object of the suite object.

d-get.png

  DiscreteFourierTransformTest* GetDiscreteFourierTransformTest (void);
    Gets the pointer to the Discrete Fourier Transform random test object of the suite object.

d-get.png

  LinearComplexityTest* GetLinearComplexityTest (void);
    Gets the pointer to the Linear Complexity random test object of the suite object.

d-substr.png

  void Remove (BaseRandomTest* test);
   
Removes the pointed BaseRandomTest random test test from the suite.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.

d-substr.png

  void Remove (RandomTests test);
   
Removes a random test of the suite based in the RandomTests enumerated random test test.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveAll (void);
   
Removes all instantiated random tests of the suite.

  All random test objects instantiated by the suite, are deleted. All random test objects provided to the suite, are removed from the suite, but they are not deleted.

d-substr.png

  void RemoveFrequencyTest (void);
   
Removes the Frequency random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveBlockFrequencyTest (void);
   
Removes the Block Frequency random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveRunsTest (void);
   
Removes the Runs random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveLongestRunOfOnesTest (void);
   
Removes the Longest Runs Of Ones random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveCumulativeSumForwardTest (void);
   
Removes the Cumulative Sum Forward random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveCumulativeSumReverseTest (void);
   
Removes the Cumulative Sum Reverse random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveRankTest (void);
   
Removes the Rank random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveOverlappingTemplateMatchingsTest (void);
   
Removes the Overlapping Template Matchings random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveUniversalTest (void);
   
Removes the Universal random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveApproximateEntropyTest (void);
   
Removes the Approximate Entropy random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveSerialTest (void);
   
Removes the Serial random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveDiscreteFourierTransformTest (void);
   
Removes the Discrete Fourier Transform random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveLinearComplexityTest (void);
   
Removes the Linear Complexity random test object of the suite object.

  If the random test has been instantiated by the suite, it is deleted the random test object. If the random test object has been provided to the suite, the random test is removed from the suite, but it is not deleted.


d-exe.png

  bool IsRandom (BaseCryptoRandomStream* stream);
    Tests the BaseCryptoRandomStream stream untill an error is found with all instantiated random tests and returns the random value.

d-exe.png

  bool TestRandom (BaseCryptoRandomStream* stream);
    Tests the BaseCryptoRandomStream stream with all instantiated random tests and returns the random value.

d-set.png

  void SetAlpha (double alpha);
    Sets alpha alpha to all random tests object in the suite object.

d-get.png

  bool IsRandom (void);
    Gets the RandomTestSuite random value of the last executed BaseCryptoRandomStream stream.

d-get.png

  int GetInstantiatedTests (void);
    Gets the number of Random Tests that contains the suite object.

d-get.png

  RandomTests GetNonRandomTest (void);
    Gets the failed random test in the RandomTestSuite object.

d-get.png

  RandomTestErrors GetError (void);
    Gets the RandomTestErrors error of the last executed BaseCryptoRandomStream stream.

d-get.png

  RandomTests GetErrorTest (void);
    Gets the RandomTests test that produced the error of the last executed BaseCryptoRandomStream stream.

d-get.png

  bool Exist (RandomTests test);
    Indicates if the RandomTests test object test exists in the suite

d-get.png

  RandomTests GetFirstTest (void);
    Gets the first RandomTests in the RandomTestSuite object.

d-get.png

  RandomTests GetMaximumNumberOfTests (void);
    Gets the number of random tests that can be used in the RandomTestSuite object.






 


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 !