public class LMSTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
LMSTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
test_malformedSignatureUnknownLmOtsType()
RFC 8554 / NIST SP 800-208: an attacker-supplied LMS signature carries the LM-OTS type code
in its bytes.
|
void |
test_malformedSignatureUnknownLmsType()
The companion of
test_malformedSignatureUnknownLmOtsType() for the LMS (tree) type
code, which the parser reads after the LM-OTS signature. |
void |
test_should_verify_sha256_n24_w1() |
void |
test_should_verify_shake_n24_w1() |
void |
test_should_verify_shake_n24_w2_2() |
void |
test_should_verify_shake_n24_w2() |
void |
test_should_verify_shake_n24_w4() |
void |
test_should_verify_shake_n24_w8() |
void |
test_should_verify_shake_n32_w1() |
void |
test_should_verify_shake_n32_w8() |
void |
test_shouldRecogniseInvalidSignature() |
void |
testKeyGenAndSign() |
void |
testKeyGenAndSignSha256_192() |
void |
testKeyGenAndSignShake256_192() |
void |
testKeyGenAndSignTwoSigsWithShard() |
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 testKeyGenAndSign()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndSignSha256_192()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndSignShake256_192()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndSignTwoSigsWithShard()
throws java.lang.Exception
java.lang.Exceptionpublic void test_shouldRecogniseInvalidSignature()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_sha256_n24_w1()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n24_w1()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n24_w2()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n24_w4()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n24_w8()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n24_w2_2()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n32_w8()
throws java.lang.Exception
java.lang.Exceptionpublic void test_should_verify_shake_n32_w1()
throws java.lang.Exception
java.lang.Exceptionpublic void test_malformedSignatureUnknownLmOtsType()
throws java.lang.Exception
java.lang.Exceptionpublic void test_malformedSignatureUnknownLmsType()
throws java.lang.Exception
test_malformedSignatureUnknownLmOtsType() for the LMS (tree) type
code, which the parser reads after the LM-OTS signature. The LM-OTS portion below is
well-formed (valid type, zero-filled C and y); only the trailing LMS type code is unknown.java.lang.Exception