org.bouncycastle.jce.provider.test
Class CipherStreamTest

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

public class CipherStreamTest
extends SimpleTest

check that cipher input/output streams are working correctly


Field Summary
private static byte[] HC128A
           
private static byte[] HC256A
           
private static byte[] HCIN
           
private static byte[] HCIV
           
private static byte[] HCK128A
           
private static byte[] HCK256A
           
private static byte[] RIN
           
private static byte[] RK
           
private static byte[] ROUT
           
private static byte[] SIN
           
private static byte[] SIV
           
private static byte[] SK
           
private static byte[] SOUT
           
 
Constructor Summary
CipherStreamTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
private  void runTest(java.lang.String name)
           
private  void testAlgorithm(java.lang.String name, byte[] keyBytes, byte[] iv, byte[] plainText, byte[] cipherText)
           
private  void testException(java.lang.String name)
           
 
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

RK

private static byte[] RK

RIN

private static byte[] RIN

ROUT

private static byte[] ROUT

SIN

private static byte[] SIN

SK

private static final byte[] SK

SIV

private static final byte[] SIV

SOUT

private static final byte[] SOUT

HCIN

private static final byte[] HCIN

HCIV

private static final byte[] HCIV

HCK256A

private static final byte[] HCK256A

HC256A

private static final byte[] HC256A

HCK128A

private static final byte[] HCK128A

HC128A

private static final byte[] HC128A
Constructor Detail

CipherStreamTest

public CipherStreamTest()
Method Detail

runTest

private void runTest(java.lang.String name)
              throws java.lang.Exception
Throws:
java.lang.Exception

testAlgorithm

private void testAlgorithm(java.lang.String name,
                           byte[] keyBytes,
                           byte[] iv,
                           byte[] plainText,
                           byte[] cipherText)
                    throws java.lang.Exception
Throws:
java.lang.Exception

testException

private void testException(java.lang.String name)

performTest

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

getName

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

main

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