Package gnu.crypto.tool

Class Summary

CipherSpeed A tool to exercise a block cipher in order to measure its performance in terms of encrypted/decrypted bytes per second.
Ent 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:

  • Chi-square test: The chi-square test is the most commonly used test for the randomness of data, and is extremely sensitive to errors in pseudorandom sequence generators.
HashSpeed A tool to exercise a hash in order to measure its performance in terms of number of bytes per second.
NessieCipherTVEmitter A utility class to generate NESSIE test vectors for a designated cipher algorithm and optionally a key size (in bits).

NOTE: The set4 test vectors set will be generated iff the global system environment variable named "TORTURE" is set.

NessieHashTVEmitter A utility class to generate NESSIE test vectors for a designated hash algorithm.

NOTE: The test3 test vector will be generated iff the global system environment variable named "TORTURE" is set.

NistKat For a designated symmetric block cipher algorithm, this command generates and exercises Known Answer Tests data for either, or both, Variable Key and Variable Text suites.

NistKat's output file format is in conformance with the layout described in Section 3 of NIST's document "Description of Known Answer Tests and Monte Carlo Tests for Advanced Encryption Standard (AES) Candidate Algorithm Submissions" dated January 7, 1998.

References:

  1. Known Answer Test (KAT) and Monte Carlo Test (MCT) Information
NistMCT For a designated symmetric block cipher algorithm, this command generates and exercises Monte Carlo Tests data for both Encryption and Decryption in Electronic Codebook (ECB) and Cipher Block Chaining (CBC) modes.

NistMCT's output file format is in conformance with the layout described in Section 4 of NIST's document "Description of Known Answer Tests and Monte Carlo Tests for Advanced Encryption Standard (AES) Candidate Algorithm Submissions" dated January 7, 1998.

References:

  1. Known Answer Test (KAT) and Monte Carlo Test (MCT) Information
SaslC A basic client-side test class to exercise SASL mechanisms.

The main() method accepts two arguments: the first is the number of threads, and the second is the port number on which the (local) server is listening.

SaslConnection A sample client-side protocol driver.
SaslS A basic server-side test class to exercise SASL mechanisms that exchange their response/challenge in SASL Buffers.
SimpleCallbackHandler A simple CallbackHandler for test purposes.
SMTPClient

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