Bouncy Castle Cryptography Library 1.64

org.bouncycastle.jce.provider.test
Class SM4Test

java.lang.Object
  |
  +--org.bouncycastle.util.test.SimpleTest
        |
        +--org.bouncycastle.jce.provider.test.BaseBlockCipherTest
              |
              +--org.bouncycastle.jce.provider.test.SM4Test
All Implemented Interfaces:
Test

public class SM4Test
extends BaseBlockCipherTest

basic test class for SM4


Constructor Summary
SM4Test()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void performTest()
           
 void test(int strength, byte[] keyBytes, byte[] input, byte[] output)
           
 
Methods inherited from class org.bouncycastle.jce.provider.test.BaseBlockCipherTest
getName, oidTest, wrapOidTest, wrapTest, wrapTest
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
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 Detail

SM4Test

public SM4Test()
Method Detail

test

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

performTest

public void performTest()
                 throws java.lang.Exception
Overrides:
performTest in class SimpleTest

main

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

Bouncy Castle Cryptography Library 1.64