cryptix.test

Class TestSAFER


(package private) class TestSAFER
extends BaseTest

Tests the output of the SAFER cipher algorithm implementation against certified pre-computed output for a given set of reference input.

Test data is taken from check.ref file in Richard De Moliner's SAFER toolkit V1.2. As this is the distribution of the author of the algorithm, this is understood to be conformance data, cautious label of Examples notwithstanding.

One test is not present, that of testing a text key (more a test for the test program).

$Revision: 1.7 $

Authors:
Raif S. Naffah
David Hopwood

Field Summary

Fields inherited from class cryptix.util.test.BaseTest

out, status

Method Summary

protected void
engineTest()
This method should be overridden by test subclasses, to perform the actual testing.
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
This method should be overridden by test subclasses, to perform the actual testing.
Overrides:
engineTest in interface BaseTest

main

public static void main(String[] args)