Bouncy Castle Cryptography Library 1.64

org.bouncycastle.jce.provider.test
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 Summary
HMacTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 void testHMac(java.lang.String hmacName, byte[] output)
           
 void testHMac(java.lang.String hmacName, int defKeySize, byte[] output)
           
 void testPBEWITHHMACSHAVariants()
          Test that BC has the same results as the SunJCA provider for PBEwithHMACSHA.
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMacTest

public HMacTest()
Method Detail

testHMac

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

testHMac

public void testHMac(java.lang.String hmacName,
                     int defKeySize,
                     byte[] output)
              throws java.lang.Exception

performTest

public void performTest()
                 throws java.lang.Exception
Overrides:
performTest in class SimpleTest

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.


getName

public java.lang.String getName()
Overrides:
getName in class SimpleTest

main

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

Bouncy Castle Cryptography Library 1.64