public class HSSTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
HSSTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testHssKeyGenAndSign() |
void |
testKeyGenAndSign() |
void |
testKeyGenAndSignTwoSigsWithShard() |
void |
testKeyGenAndUsage() |
void |
testMalformedSignatureUnknownLmOtsType()
RFC 8554 / NIST SP 800-208: HSSPublicKeyParameters.generateLMSContext is the public
verify-prep reached from the JCA Signature.verify path and the lightweight HSS verify.
|
void |
testOneLevelKeyGenAndSign() |
void |
testReInitClearsTheOtherKey()
init() used to assign only the key for the mode being set, leaving the other one from a
previous init in place: a signer initialised for verification still held the private key and
would sign with it, and one initialised for signing still held the public key and would
verify.
|
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 testOneLevelKeyGenAndSign()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndSign()
throws java.lang.Exception
java.lang.Exceptionpublic void testHssKeyGenAndSign()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndUsage()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGenAndSignTwoSigsWithShard()
throws java.lang.Exception
java.lang.Exceptionpublic void testMalformedSignatureUnknownLmOtsType()
throws java.lang.Exception
java.lang.Exceptionpublic void testReInitClearsTheOtherKey()
throws java.lang.Exception
java.lang.Exception