You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




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.