Class RainbowSignatureTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.bouncycastle.pqc.jcajce.provider.test.RainbowSignatureTest
- All Implemented Interfaces:
junit.framework.Test
public class RainbowSignatureTest
extends junit.framework.TestCase
Test cases for the use of Rainbow with the BCPQC provider.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytesFromFile
(File file) getPublicKey
(String file) protected final void
performSignVerifyTest
(int numPassesKPG, int numPassesSigVer, int keySize) Test signature generation and verificationprotected final void
performSignVerifyTest
(int numPassesKPG, int numPassesSigVer, AlgorithmParameterSpec kpgParams) Test signature generation and verificationprotected final void
performSignVerifyTest
(int numPassesKPG, int numPassesSigVer, AlgorithmParameterSpec kpgParams, int messageSize) Test signature generation and verificationvoid
setUp()
void
void
void
Using ParameterSpecs to initialize the key pair generator without initialization.void
void
void
void
Methods inherited from class junit.framework.TestCase
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, tearDown, toString
-
Field Details
-
kpg
-
sig
-
-
Constructor Details
-
RainbowSignatureTest
public RainbowSignatureTest()
-
-
Method Details
-
setUp
public void setUp()- Overrides:
setUp
in classjunit.framework.TestCase
-
performSignVerifyTest
protected final void performSignVerifyTest(int numPassesKPG, int numPassesSigVer, AlgorithmParameterSpec kpgParams) throws Exception Test signature generation and verification- Parameters:
numPassesKPG
- the number of key pair generation passesnumPassesSigVer
- the number of sign/verify passeskpgParams
- the parameters for the key pair generator- Throws:
Exception
-
performSignVerifyTest
protected final void performSignVerifyTest(int numPassesKPG, int numPassesSigVer, AlgorithmParameterSpec kpgParams, int messageSize) throws Exception Test signature generation and verification- Parameters:
numPassesKPG
- the number of key pair generation passesnumPassesSigVer
- the number of sign/verify passeskpgParams
- the parameters for the key pair generatormessageSize
- length of the messages which are signed in bytes- Throws:
Exception
-
performSignVerifyTest
protected final void performSignVerifyTest(int numPassesKPG, int numPassesSigVer, int keySize) throws Exception Test signature generation and verification- Parameters:
numPassesKPG
- the number of key pair generation passesnumPassesSigVer
- the number of sign/verify passeskeySize
- the key size for the key pair generator- Throws:
Exception
-
testRainbowWithSHA224
Using ParameterSpecs to initialize the key pair generator without initialization.- Throws:
Exception
-
testRainbowithSHA256
- Throws:
Exception
-
testRainbowWithSHA384
- Throws:
Exception
-
testRainbowWithSHA512
- Throws:
Exception
-
test_KeyFactory
- Throws:
Exception
-
testSignVerifyWithRandomParams
- Throws:
Exception
-
testSignVerifyWithDefaultParams
- Throws:
Exception
-
getPublicKey
- Throws:
Exception
-
getBytesFromFile
- Throws:
IOException
-