org.bouncycastle.jce.provider.test
Class MacTest

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

public class MacTest
extends SimpleTest

MAC tester - vectors from FIP 81 and FIP 113.


Field Summary
(package private) static byte[] input
           
(package private) static byte[] inputDesEDE64
           
(package private) static byte[] inputISO9797
           
(package private) static byte[] ivBytes
           
(package private) static byte[] keyBytes
           
(package private) static byte[] keyBytesISO9797
           
(package private) static byte[] output1
           
(package private) static byte[] output2
           
(package private) static byte[] output3
           
(package private) static byte[] outputDesEDE64
           
(package private) static byte[] outputISO9797
           
 
Constructor Summary
MacTest()
           
 
Method Summary
private  void aliasTest(javax.crypto.SecretKey key, java.lang.String primary, java.lang.String[] aliases)
           
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 
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

ivBytes

static byte[] ivBytes

input

static byte[] input

output1

static byte[] output1

output2

static byte[] output2

output3

static byte[] output3

keyBytesISO9797

static byte[] keyBytesISO9797

inputISO9797

static byte[] inputISO9797

outputISO9797

static byte[] outputISO9797

inputDesEDE64

static byte[] inputDesEDE64

outputDesEDE64

static byte[] outputDesEDE64
Constructor Detail

MacTest

public MacTest()
Method Detail

aliasTest

private void aliasTest(javax.crypto.SecretKey key,
                       java.lang.String primary,
                       java.lang.String[] aliases)
                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)