Overview Package Class Use Tree Deprecated Index Help
For the latest news and information visit
The GNU Crypto project
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

gnu.crypto.tool
Class Ent

java.lang.Object
 extended bygnu.crypto.tool.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.2 $

Constructor Summary
Ent(IRandom prng)
Ent(java.lang.String name, java.security.SecureRandom 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(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Ent

public Ent(IRandom prng)

Ent

public Ent(java.lang.String name,
 java.security.SecureRandom prng)
Method Detail

main

public static void main(java.lang.String[] args)

computeIndices

public void computeIndices()
 throws LimitReachedException
Throws:
LimitReachedException

getDuration

public long getDuration()

getTotalBits

public long getTotalBits()

getSetBits

public long getSetBits()

getMean

public double getMean()

getMeanPercentDeviation

public double getMeanPercentDeviation()

getChiSquare

public double getChiSquare()

getChiSquareProbability

public double getChiSquareProbability()

getSerialCorrelationCoefficient

public double getSerialCorrelationCoefficient()

getPi

public double getPi()

getPiPercentDeviation

public double getPiPercentDeviation()

Overview Package Class Use Tree Deprecated Index Help
For the latest news and information visit
The GNU Crypto project
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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

AltStyle によって変換されたページ (->オリジナル) /