public class XMSSPrivateKeyEncodingTest
extends junit.framework.TestCase
Before the fix, the SP 800-208 sets either threw during encoding (SHAKE256-LEN, unknown to the legacy tree-digest table) or silently round-tripped to a different set (SHA-256/192, which shares id-sha256 with the RFC 8391 SHA-256/256 set and lost n=24), and every set's private key carried the legacy PQCObjectIdentifiers.xmss(_mt) OID rather than the public key's RFC 9802 OID.
| Constructor and Description |
|---|
XMSSPrivateKeyEncodingTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testXmssMtRfc8391SetSharesRfc9802Oid() |
void |
testXmssMtSha256_192PrivateKeyRoundTrip() |
void |
testXmssMtShake256_192PrivateKeyRoundTrip() |
void |
testXmssRfc8391SetSharesRfc9802Oid() |
void |
testXmssSha256_192PrivateKeyRoundTrip() |
void |
testXmssShake256_192PrivateKeyRoundTrip() |
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic void testXmssRfc8391SetSharesRfc9802Oid()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmssSha256_192PrivateKeyRoundTrip()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmssShake256_192PrivateKeyRoundTrip()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmssMtRfc8391SetSharesRfc9802Oid()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmssMtSha256_192PrivateKeyRoundTrip()
throws java.lang.Exception
java.lang.Exceptionpublic void testXmssMtShake256_192PrivateKeyRoundTrip()
throws java.lang.Exception
java.lang.Exception