Class HMacTest

  • All Implemented Interfaces:
    Test

    public class HMacTest
    extends SimpleTest
    HMAC tester
    • Constructor Detail

      • HMacTest

        public HMacTest()
    • Method Detail

      • testHMac

        public void testHMac​(java.lang.String hmacName,
                             byte[] output)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHMac

        public void testHMac​(java.lang.String hmacName,
                             int defKeySize,
                             byte[] output)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • performTest

        public void performTest()
                         throws java.lang.Exception
        Specified by:
        performTest in class SimpleTest
        Throws:
        java.lang.Exception
      • testPBEWITHHMACSHAVariants

        public void testPBEWITHHMACSHAVariants()
                                        throws java.lang.Exception
        Test that BC has the same results as the SunJCA provider for PBEwithHMACSHA.

        Test courtesy of the Android project.

        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)