org.mozilla.jss.tests

Class 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.

Method Summary

static void
doHMAC(SecretKeyFacade sk, String alg)
Initialize and compare hashes generated by Mozilla-JSS and platform JDK vendor JCE.
static void
main(String[] argv)
Main test method.

Method Details

doHMAC

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

main

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