- All Implemented Interfaces:
Test
basic test class for the GOST28147 cipher
-
Constructor Summary
Constructors
-
Method Summary
static void
void
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, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GOST28147Test
public GOST28147Test()
-
Method Details
-
-
testECB
public void testECB(int strength,
byte[] keyBytes,
byte[] input,
byte[] output)
throws Exception
- Throws:
Exception
-
testCFB
public void testCFB(int strength,
byte[] keyBytes,
byte[] input,
byte[] output)
throws Exception
- Throws:
Exception
-
-
main
public static void main(String[] args)