org.bouncycastle.jce.provider.test
Class GOST28147Test

java.lang.Object
  extended by org.bouncycastle.util.test.SimpleTest
      extended by org.bouncycastle.jce.provider.test.GOST28147Test
All Implemented Interfaces:
Test

public class GOST28147Test
extends SimpleTest

basic test class for the GOST28147 cipher


Field Summary
(package private) static java.lang.String[] cipherTests
           
 
Constructor Summary
GOST28147Test()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
private  void oidTest()
           
 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, perform, runTest, runTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cipherTests

static java.lang.String[] cipherTests
Constructor Detail

GOST28147Test

public GOST28147Test()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

testECB

public void testECB(int strength,
                    byte[] keyBytes,
                    byte[] input,
                    byte[] output)
             throws java.lang.Exception
Throws:
java.lang.Exception

testCFB

public void testCFB(int strength,
                    byte[] keyBytes,
                    byte[] input,
                    byte[] output)
             throws java.lang.Exception
Throws:
java.lang.Exception

oidTest

private void oidTest()

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)