edu.rit.clu.monte
Class AesTestClu
- java.lang.Object
-
- edu.rit.clu.monte.AesTestClu
-
public class AesTestClu extends java.lang.ObjectClass AesTestClu is a cluster parallel program that tests the randomness of the AES block cipher.Usage: java -Dpj.np=K edu.rit.clu.monte.AesTestClu key N
K = Number of parallel processes
key = Block cipher key
N = Number of blocksThe program:
- Initializes the AES block cipher with the key.
- Generates N ciphertext blocks by encrypting the plaintext blocks 0, 1, 2, and so on (counter mode).
- Takes the most significant halves of the 128-bit ciphertext blocks as a series of 64-bit long values.
- Divides the long values by 264, yielding a series of supposedly-random double values in the range 0.0 to 1.0.
- Performs a Kolmogorov-Smirnov (K-S) test on the data to try to disprove the null hypothesis that the data are drawn from a uniform distribution.
- Prints the K-S statistic and the p-value.
The computation is performed in parallel in multiple processors. The program measures the computation's running time.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)Main program.
-
DMelt 3.0 © DataMelt by jWork.ORG