public class LMSPromotionCompatibilityTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
LMSPromotionCompatibilityTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testHSSKeysAndSignaturesMatchAcrossImplementations()
The same for the HSS multi-tree variant, whose private key encoding carries the per-level
index state - the part most likely to drift.
|
void |
testLMSKeysAndSignaturesMatchAcrossImplementations()
The same seed drives both implementations, so a matching set of keys must come out with
identical X.509 / PKCS#8 encodings, and each side must verify the other's signature.
|
void |
testStreamingMatchesOneShot()
The promoted signers implement org.bouncycastle.crypto.Signer rather than the pqc
MessageSigner, so the streaming path must produce exactly what the one-shot call does.
|
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 testLMSKeysAndSignaturesMatchAcrossImplementations()
throws java.lang.Exception
java.lang.Exceptionpublic void testHSSKeysAndSignaturesMatchAcrossImplementations()
throws java.lang.Exception
java.lang.Exceptionpublic void testStreamingMatchesOneShot()
throws java.lang.Exception
java.lang.Exception