org.bouncycastle.jce.provider.test
Class HMacTest

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

public class HMacTest
extends SimpleTest

HMAC tester


Field Summary
(package private) static byte[] keyBytes
           
(package private) static byte[] message
           
(package private) static byte[] output1
           
(package private) static byte[] output224
           
(package private) static byte[] output256
           
(package private) static byte[] output384
           
(package private) static byte[] output512
           
(package private) static byte[] outputMD2
           
(package private) static byte[] outputMD4
           
(package private) static byte[] outputMD5
           
(package private) static byte[] outputOld384
           
(package private) static byte[] outputOld512
           
(package private) static byte[] outputRipeMD128
           
(package private) static byte[] outputRipeMD160
           
(package private) static byte[] outputTiger
           
 
Constructor Summary
HMacTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
private  void testExceptions()
           
 void testHMac(java.lang.String hmacName, byte[] output)
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, fail, fail, fail, perform, runTest, runTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyBytes

static byte[] keyBytes

message

static byte[] message

output1

static byte[] output1

outputMD5

static byte[] outputMD5

outputMD2

static byte[] outputMD2

outputMD4

static byte[] outputMD4

output224

static byte[] output224

output256

static byte[] output256

output384

static byte[] output384

output512

static byte[] output512

outputRipeMD128

static byte[] outputRipeMD128

outputRipeMD160

static byte[] outputRipeMD160

outputTiger

static byte[] outputTiger

outputOld384

static byte[] outputOld384

outputOld512

static byte[] outputOld512
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

testExceptions

private void testExceptions()
                     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

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

main

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