Bouncy Castle Cryptography Library 1.86

org.bouncycastle.pqc.crypto.test
Class TestUtils.SignerOperation

java.lang.Object
  extended byorg.bouncycastle.pqc.crypto.test.TestUtils.SignerOperation
Enclosing class:
org.bouncycastle.pqc.crypto.test.TestUtils

public abstract static class TestUtils.SignerOperation
extends java.lang.Object


Constructor Summary
TestUtils.SignerOperation()
           
 
Method Summary
abstract  AsymmetricCipherKeyPairGenerator getAsymmetricCipherKeyPairGenerator(int fileIndex, java.security.SecureRandom random)
           
abstract  MessageSigner getMessageSigner()
           
abstract  byte[] getPrivateKeyEncoded(CipherParameters privParams)
           
abstract  byte[] getPublicKeyEncoded(CipherParameters pubParams)
           
abstract  java.security.SecureRandom getSecureRandom(byte[] seed)
           
abstract  Signer getSigner()
           
 CipherParameters setSignParameters(CipherParameters privParams, java.security.SecureRandom random)
           
 CipherParameters setVerifyParameters(CipherParameters pubParams, CipherParameters privParams)
           
 byte[] toVectorSignature(byte[] signature, byte[] message)
          Rebuild the value the KAT file records from the signature generateSignature() returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUtils.SignerOperation

public TestUtils.SignerOperation()
Method Detail

getSecureRandom

public abstract java.security.SecureRandom getSecureRandom(byte[] seed)

getAsymmetricCipherKeyPairGenerator

public abstract AsymmetricCipherKeyPairGenerator getAsymmetricCipherKeyPairGenerator(int fileIndex,
                                                                                     java.security.SecureRandom random)

getPublicKeyEncoded

public abstract byte[] getPublicKeyEncoded(CipherParameters pubParams)

getPrivateKeyEncoded

public abstract byte[] getPrivateKeyEncoded(CipherParameters privParams)

getSigner

public abstract Signer getSigner()

getMessageSigner

public abstract MessageSigner getMessageSigner()

setSignParameters

public CipherParameters setSignParameters(CipherParameters privParams,
                                          java.security.SecureRandom random)

setVerifyParameters

public CipherParameters setVerifyParameters(CipherParameters pubParams,
                                            CipherParameters privParams)

toVectorSignature

public byte[] toVectorSignature(byte[] signature,
                                byte[] message)
Rebuild the value the KAT file records from the signature generateSignature() returned. The default is the identity - the file records the signature itself. A scheme whose vectors record the NIST crypto_sign "sm" (signed message) envelope overrides this to wrap the signature the way the reference harness did, so that the signer itself can return the bare signature. FalconTest does the same reconstruction inline, Falcon's envelope being too involved to express here.


Bouncy Castle Cryptography Library 1.86