org.bouncycastle.pqc.crypto.test
Class TestUtils.SignerOperation
java.lang.Object
org.bouncycastle.pqc.crypto.test.TestUtils.SignerOperation
- Enclosing class:
- org.bouncycastle.pqc.crypto.test.TestUtils
- public abstract static class TestUtils.SignerOperation
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestUtils.SignerOperation
public TestUtils.SignerOperation()
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.