org.bouncycastle.jce.provider.test

Class GOST28147Test

Implemented Interfaces:
Test

public class GOST28147Test
extends java.lang.Object
implements Test

basic test class for the GOST28147 cipher

Method Summary

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

Method Details

getName

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


main

public static void main(String[] args)


perform

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


testCFB

public TestResult testCFB(int strength,
                          byte[] keyBytes,
                          byte[] input,
                          byte[] output)


testECB

public TestResult testECB(int strength,
                          byte[] keyBytes,
                          byte[] input,
                          byte[] output)