public abstract class SignatureBenchmarkRunner extends Object
| Constructor and Description |
|---|
SignatureBenchmarkRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AlgorithmParameterSpec |
generateParameterSpec() |
protected abstract String |
getAlgorithmName() |
protected abstract AlgorithmParameterSpec |
getParams(String name) |
protected Provider |
getProvider()
Registers the provider
|
KeyPair |
keyGen()
Key generation benchmark
|
static void |
main(String[] args)
Register all the runners for the signature algorithms that should be benchmarked.
|
protected static void |
run(Class<?> klass) |
void |
setUp()
Setup global parameters.
|
void |
setUpIteration()
Set up instances for signing and verifying.
|
byte[] |
sign()
Signing benchmark
|
boolean |
verify()
Verification benchmark
|
public void setUp()
throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException,
InvalidKeyException,
PQException
public void setUpIteration()
throws NoSuchAlgorithmException,
InvalidKeyException,
SignatureException,
InvalidAlgorithmParameterException
public KeyPair keyGen() throws SignatureException
SignatureExceptionpublic byte[] sign()
throws SignatureException
SignatureExceptionpublic boolean verify()
throws SignatureException
SignatureExceptionprotected Provider getProvider()
public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
args - emptyorg.openjdk.jmh.runner.RunnerException - Errors from the sub-runnersprotected static void run(Class<?> klass) throws org.openjdk.jmh.runner.RunnerException
org.openjdk.jmh.runner.RunnerExceptionprotected abstract AlgorithmParameterSpec getParams(String name) throws PQException
PQExceptionprotected abstract AlgorithmParameterSpec generateParameterSpec() throws PQException
PQExceptionprotected abstract String getAlgorithmName()
Copyright © 2020–2025 Stiftung SIC. All rights reserved.