Documentation of 'edu.rit.clu.monte.AesTestClu' Java class
AesTestClu
edu.rit.clu.monte

Class AesTestClu



  • public class AesTestClu
    extends java.lang.Object
    Class 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 blocks

    The 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 void main(java.lang.String[] args)
      Main program.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Main program.
        Throws:
        java.lang.Exception

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.