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

Class AesTestSeq



  • public class AesTestSeq
    extends java.lang.Object
    Class AesTestSeq is a sequential program that tests the randomness of the AES block cipher.

    Usage: java edu.rit.clu.monte.AesTestSeq key N
    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 sequentially in a single processor. The program measures the computation's running time. This establishes a benchmark for measuring the computation's running time on a parallel processor.

    • 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.