Class BaseBlockCipherTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.jce.provider.test.BaseBlockCipherTest
-
- All Implemented Interfaces:
Test
- Direct Known Subclasses:
AESTest
,ARIATest
,CamelliaTest
,DSTU7624Test
,NoekeonTest
,SEEDTest
,SM4Test
public abstract class BaseBlockCipherTest extends SimpleTest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
protected void
oidTest(java.lang.String[] oids, java.lang.String[] names, int groupSize)
protected void
wrapOidTest(java.lang.String[] oids, java.lang.String name)
protected void
wrapTest(int id, java.lang.String wrappingAlgorithm, byte[] kek, byte[] in, byte[] out)
protected void
wrapTest(int id, java.lang.String wrappingAlgorithm, byte[] kek, byte[] iv, java.security.SecureRandom rand, byte[] in, byte[] out)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceTest
- Specified by:
getName
in classSimpleTest
-
oidTest
protected void oidTest(java.lang.String[] oids, java.lang.String[] names, int groupSize) throws java.lang.Exception
- Throws:
java.lang.Exception
-
wrapOidTest
protected void wrapOidTest(java.lang.String[] oids, java.lang.String name) throws java.lang.Exception
- Throws:
java.lang.Exception
-
wrapTest
protected void wrapTest(int id, java.lang.String wrappingAlgorithm, byte[] kek, byte[] in, byte[] out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
wrapTest
protected void wrapTest(int id, java.lang.String wrappingAlgorithm, byte[] kek, byte[] iv, java.security.SecureRandom rand, byte[] in, byte[] out) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-