|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.bouncycastle.pqc.crypto.test.MLDSAWycheproofTest
ML-DSA signature verification against the Project Wycheproof vectors in crypto/wycheproof/mldsa_<n>_verify_test.json.
These complement the ACVP and NIST KAT batteries driven from MLDSATest: where those
confirm the specified paths, the majority of these cases are invalid by construction - signatures
violating the infinity norm bound, malformed hint encodings, wrong-length keys and signatures,
zero public keys and out-of-range contexts - and the point of them is that verification says no.
A verifier is allowed to reject at any stage, so a case the file marks invalid passes here whether the key is refused when it is constructed, the signer refuses it at init, or verification returns false. A case marked valid has to construct, initialise and verify cleanly.
| Constructor Summary | |
MLDSAWycheproofTest()
|
|
| Method Summary | |
void |
testMLDSA44Verify()
|
void |
testMLDSA65Verify()
|
void |
testMLDSA87Verify()
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MLDSAWycheproofTest()
| Method Detail |
public void testMLDSA44Verify()
throws java.lang.Exception
java.lang.Exception
public void testMLDSA65Verify()
throws java.lang.Exception
java.lang.Exception
public void testMLDSA87Verify()
throws java.lang.Exception
java.lang.Exception
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||