org.mozilla.jss.tests
Class HMACTest

java.lang.Object
  extended by org.mozilla.jss.tests.HMACTest

public class HMACTest
extends java.lang.Object

HMAC is a hash function based message authentication code. HMACTest compares the HMAC created by Mozilla, IBM and Sun JCE.


Constructor Summary
HMACTest()
           
 
Method Summary
static void doHMAC(SecretKeyFacade sk, java.lang.String alg)
          Initialize and compare hashes generated by Mozilla-JSS and platform JDK vendor JCE.
static void main(java.lang.String[] argv)
          Main test method.
 
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

doHMAC

public static void doHMAC(SecretKeyFacade sk,
                          java.lang.String alg)
                   throws java.lang.Exception
Initialize and compare hashes generated by Mozilla-JSS and platform JDK vendor JCE.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] argv)
Main test method.

Parameters:
argv -