Class HMacTest

java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.jce.provider.test.HMacTest
All Implemented Interfaces:
Test

public class HMacTest extends SimpleTest
HMAC tester
  • Constructor Details

    • HMacTest

      public HMacTest()
  • Method Details

    • testHMac

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

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

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

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

      Test courtesy of the Android project.

      Throws:
      Exception
    • getName

      public String getName()
      Specified by:
      getName in interface Test
      Specified by:
      getName in class SimpleTest
    • main

      public static void main(String[] args)