Class FIPSDESTest

  • All Implemented Interfaces:
    Test

    public class FIPSDESTest
    extends java.lang.Object
    implements Test
    basic FIPS test class for a block cipher, just to make sure ECB/CBC/OFB/CFB are behaving correctly. Tests from FIPS 81.
    • Constructor Summary

      Constructors 
      Constructor Description
      FIPSDESTest()  
    • Constructor Detail

      • FIPSDESTest

        public FIPSDESTest()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Test
      • test

        public TestResult test​(java.lang.String algorithm,
                               byte[] input,
                               byte[] output)
      • main

        public static void main​(java.lang.String[] args)
                         throws java.security.KeyException,
                                java.security.InvalidAlgorithmParameterException
        Throws:
        java.security.KeyException
        java.security.InvalidAlgorithmParameterException