Bouncy Castle Cryptography Library 1.85

org.bouncycastle.pqc.crypto.test
Class FalconTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.bouncycastle.pqc.crypto.test.FalconTest
All Implemented Interfaces:
junit.framework.Test

public class FalconTest
extends junit.framework.TestCase


Constructor Summary
FalconTest()
           
 
Method Summary
 void testPublicKeyDerivationWithoutStoredPublicKey()
          github #2297: when only the private encoding (f ‖ g ‖ F) was persisted — no public key bytes, no key-generation seed — the public key h must be recomputed from the private polynomials (h = g * f^-1 mod q) by the fall-back.
 void testPublicKeyRecoveryFromPrivateKey()
          github #2297: FalconPrivateKeyParameters.getPublicKeyParameters() should return a FalconPublicKeyParameters whose encoded form matches the keypair's original public key, and a signature produced under the private key must verify under the recovered public key.
 void testRandom()
           
 void testVectors()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FalconTest

public FalconTest()
Method Detail

testVectors

public void testVectors()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testRandom

public void testRandom()
                throws java.lang.Exception
Throws:
java.lang.Exception

testPublicKeyRecoveryFromPrivateKey

public void testPublicKeyRecoveryFromPrivateKey()
                                         throws java.lang.Exception
github #2297: FalconPrivateKeyParameters.getPublicKeyParameters() should return a FalconPublicKeyParameters whose encoded form matches the keypair's original public key, and a signature produced under the private key must verify under the recovered public key.

Throws:
java.lang.Exception

testPublicKeyDerivationWithoutStoredPublicKey

public void testPublicKeyDerivationWithoutStoredPublicKey()
                                                   throws java.lang.Exception
github #2297: when only the private encoding (f ‖ g ‖ F) was persisted — no public key bytes, no key-generation seed — the public key h must be recomputed from the private polynomials (h = g * f^-1 mod q) by the fall-back. The recovered h must match the keypair's original public key and verify a signature made under the reconstructed private key.

Throws:
java.lang.Exception

Bouncy Castle Cryptography Library 1.85