cryptix.test

Class TestHMAC


public class TestHMAC
extends BaseTest

Tests the output of the HMAC message authentication code implementation against certified pre-computed output for a given set of reference input.

Copyright © 1998 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.4 $

Author:
David Hopwood

Field Summary

Fields inherited from class cryptix.util.test.BaseTest

out, status

Method Summary

protected void
engineTest()
Test using the data from RFC 2202.
static void
main(String[] args)

Methods inherited from class cryptix.util.test.BaseTest

commandline, commandline, describeOptions, describeUsage, engineTest, error, error, error, fail, getErrors, getExpectedPasses, getFailures, getName, getPasses, getSkipped, init, isGuiEnabled, isOverallPass, isVerbose, parseOption, parseOptions, pass, passIf, report, setExpectedPasses, setGuiEnabled, setName, setOutput, setVerbose, skip, test, waitForExit

Method Details

engineTest

protected void engineTest()
            throws Exception
Test using the data from RFC 2202. Note that this will fail if the MD5 or SHA-1 MessageDigest classes are incorrect.
Overrides:
engineTest in interface BaseTest


main

public static void main(String[] args)