public class ModeReinitTest extends SimpleTest
CBC and CFB differ here. CBC goes back to a zero IV when re-initialised without one, and cannot change direction without a key. CFB keeps the IV from its last init, and can change direction without a key, as its underlying cipher is only ever used to encrypt.
Expected values come from a reference built on the raw block cipher, not from the mode under test.SimpleTest.TestExceptionOperation| Constructor and Description |
|---|
ModeReinitTest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
static void |
main(java.lang.String[] args) |
void |
performTest() |
public java.lang.String getName()
getName in interface TestgetName in class SimpleTestpublic void performTest()
throws java.lang.Exception
performTest in class SimpleTestjava.lang.Exceptionpublic static void main(java.lang.String[] args)