org.bouncycastle.jce.provider.test

Class GOST28147Test

Implemented Interfaces:
Test

public class GOST28147Test
extends SimpleTest

basic test class for the GOST28147 cipher

Method Summary

String
getName()
static void
main(String[] args)
void
performTest()
void
testCFB(int strength, byte[] keyBytes, byte[] input, byte[] output)
void
testECB(int strength, byte[] keyBytes, byte[] input, byte[] output)

Methods inherited from class org.bouncycastle.util.test.SimpleTest

areEqual, fail, fail, fail, getName, perform, performTest, runTest, runTest

Method Details

getName

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

main

public static void main(String[] args)

performTest

public void performTest()
            throws Exception
Overrides:
performTest in interface SimpleTest

testCFB

public void testCFB(int strength,
                    byte[] keyBytes,
                    byte[] input,
                    byte[] output)
            throws Exception

testECB

public void testECB(int strength,
                    byte[] keyBytes,
                    byte[] input,
                    byte[] output)
            throws Exception