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 Details

  • Constructor Details

    • RainbowSignatureTest

      public RainbowSignatureTest()
  • Method Details

    • setUp

      public void setUp()
      Overrides:
      setUp in class junit.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 passes
      numPassesSigVer - the number of sign/verify passes
      kpgParams - 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 passes
      numPassesSigVer - the number of sign/verify passes
      kpgParams - the parameters for the key pair generator
      messageSize - 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 passes
      numPassesSigVer - the number of sign/verify passes
      keySize - the key size for the key pair generator
      Throws:
      Exception
    • testRainbowWithSHA224

      public void testRainbowWithSHA224() throws Exception
      Using ParameterSpecs to initialize the key pair generator without initialization.
      Throws:
      Exception
    • testRainbowithSHA256

      public void testRainbowithSHA256() throws Exception
      Throws:
      Exception
    • testRainbowWithSHA384

      public void testRainbowWithSHA384() throws Exception
      Throws:
      Exception
    • testRainbowWithSHA512

      public void testRainbowWithSHA512() throws Exception
      Throws:
      Exception
    • test_KeyFactory

      public void test_KeyFactory() throws Exception
      Throws:
      Exception
    • testSignVerifyWithRandomParams

      public void testSignVerifyWithRandomParams() throws Exception
      Throws:
      Exception
    • testSignVerifyWithDefaultParams

      public void testSignVerifyWithDefaultParams() throws Exception
      Throws:
      Exception
    • getPublicKey

      public PublicKey getPublicKey(String file) throws Exception
      Throws:
      Exception
    • getBytesFromFile

      public byte[] getBytesFromFile(File file) throws IOException
      Throws:
      IOException