public class MLKEMTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
MLKEMTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testEncapDecap_decapsulation() |
void |
testEncapDecap_encapsulation() |
void |
testEncapDecapCombinedVectorSet() |
void |
testInputs() |
void |
testKeyGen() |
void |
testKeyGenCombinedVectorSet() |
void |
testKeys() |
void |
testMLKEM() |
void |
testMLKEMRandom() |
void |
testModulus() |
void |
testParameters() |
void |
testPreferredFormatCopyIsIndependent() |
void |
testPrivateKeyInfoChoiceArms()
RFC 9935 sec. 6: the privateKey is CHOICE { seed [0] OCTET STRING (SIZE (64)), expandedKey OCTET STRING,
both SEQUENCE { seed, expandedKey } } and the tag says which arm is present.
|
void |
testPrivateKeyRejectsMalformedLength() |
void |
testPrivInfoGeneration() |
void |
testRNG() |
void |
testWithPreferredFormat() |
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 testKeys()
public void testPreferredFormatCopyIsIndependent()
public void testPrivateKeyRejectsMalformedLength()
public void testPrivateKeyInfoChoiceArms()
throws java.lang.Exception
java.lang.Exceptionpublic void testInputs()
throws java.lang.Exception
java.lang.Exceptionpublic void testKeyGen()
throws java.io.IOException
java.io.IOExceptionpublic void testKeyGenCombinedVectorSet()
throws java.io.IOException
java.io.IOExceptionpublic void testEncapDecap_encapsulation()
throws java.io.IOException
java.io.IOExceptionpublic void testEncapDecap_decapsulation()
throws java.io.IOException
java.io.IOExceptionpublic void testEncapDecapCombinedVectorSet()
throws java.io.IOException
java.io.IOExceptionpublic void testModulus()
throws java.io.IOException
java.io.IOExceptionpublic void testPrivInfoGeneration()
throws java.io.IOException
java.io.IOExceptionpublic void testMLKEM()
public void testRNG()
public void testParameters()
throws java.lang.Exception
java.lang.Exceptionpublic void testMLKEMRandom()
public void testWithPreferredFormat()