org.bouncycastle.crypto.test
Class KeyInfoMalformedInputTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.crypto.test.KeyInfoMalformedInputTest
- All Implemented Interfaces:
- Test
- public class KeyInfoMalformedInputTest
- extends SimpleTest
Malformed PrivateKeyInfo and SubjectPublicKeyInfo structures, of the kinds a fuzzer found reaching a
ClassCastException, NullPointerException or ArithmeticException in the key factories, are refused with
the IllegalArgumentException a malformed structure gets everywhere else in the library.
| Methods inherited from class org.bouncycastle.util.test.SimpleTest |
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyInfoMalformedInputTest
public KeyInfoMalformedInputTest()
getName
public java.lang.String getName()
- Specified by:
getName in interface Test- Specified by:
getName in class SimpleTest
performTest
public void performTest()
throws java.lang.Exception
- Specified by:
performTest in class SimpleTest
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)