gnu.crypto.tool

Class Ent


public class Ent
extends java.lang.Object

This is a Java implementation of Ent (A Pseudorandom Number Sequence Test Program) developed by John Walker) which applies various tests to sequences of bytes generated by the GNU Crypto library pseudo-random number generator implementations.

It is useful for those evaluating pseudorandom number generators for encryption and statistical sampling applications, compression algorithms, and other applications where the various computed indices are of interest.

For a designated PRNG algorithm, this class computes the following indices:

Version:
$Revision: 1.3 $

Constructor Summary

Ent(String name, SecureRandom prng)
Ent(IRandom prng)

Method Summary

void
computeIndices()
double
getChiSquare()
double
getChiSquareProbability()
long
getDuration()
double
getMean()
double
getMeanPercentDeviation()
double
getPi()
double
getPiPercentDeviation()
double
getSerialCorrelationCoefficient()
long
getSetBits()
long
getTotalBits()
static void
main(String[] args)

Constructor Details

Ent

public Ent(String name,
           SecureRandom prng)


Ent

public Ent(IRandom prng)

Method Details

computeIndices

public void computeIndices()
            throws LimitReachedException


getChiSquare

public double getChiSquare()


getChiSquareProbability

public double getChiSquareProbability()


getDuration

public long getDuration()


getMean

public double getMean()


getMeanPercentDeviation

public double getMeanPercentDeviation()


getPi

public double getPi()


getPiPercentDeviation

public double getPiPercentDeviation()


getSerialCorrelationCoefficient

public double getSerialCorrelationCoefficient()


getSetBits

public long getSetBits()


getTotalBits

public long getTotalBits()


main

public static void main(String[] args)


Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.