org.bouncycastle.jce.provider.test

Class FIPSDESTest

Implemented Interfaces:
Test

public class FIPSDESTest
extends java.lang.Object
implements Test

basic FIPS test class for a block cipher, just to make sure ECB/CBC/OFB/CFB are behaving correctly. Tests from FIPS 81.

Method Summary

String
getName()
static void
main(String[] args)
TestResult
perform()
TestResult
test(String algorithm, byte[] input, byte[] output)

Method Details

getName

public String getName()
Specified by:
getName in interface Test

main

public static void main(String[] args)
            throws KeyException,
                   InvalidAlgorithmParameterException

perform

public TestResult perform()
Specified by:
perform in interface Test

test

public TestResult test(String algorithm,
                       byte[] input,
                       byte[] output)