org.bouncycastle.jce.provider.test
Class DoFinalTest

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

public class DoFinalTest
extends java.lang.Object
implements Test

check that doFinal is properly reseting the cipher.


Constructor Summary
DoFinalTest()
           
 
Method Summary
 TestResult checkCipher(java.lang.String cipherName)
           
private  boolean equalArray(byte[] a, int aOff, byte[] b, int length)
           
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 TestResult perform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoFinalTest

public DoFinalTest()
Method Detail

equalArray

private boolean equalArray(byte[] a,
                           int aOff,
                           byte[] b,
                           int length)

checkCipher

public TestResult checkCipher(java.lang.String cipherName)

perform

public TestResult perform()
Specified by:
perform in interface Test

getName

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

main

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