public abstract class KEMBenchmarkRunner extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
ct |
protected iaik.security.kem.KeyEncapsulationMechanism |
kemDec |
protected byte[] |
rand |
Constructor and Description |
---|
KEMBenchmarkRunner() |
Modifier and Type | Method and Description |
---|---|
void |
decapsulate(org.openjdk.jmh.infra.Blackhole blackhole)
Decapsulation benchmark
|
void |
encapsulate(org.openjdk.jmh.infra.Blackhole blackhole)
Encapsulation benchmark
|
protected abstract AlgorithmParameterSpec |
generateParameterSpec() |
protected abstract String |
getAlgorithmName() |
protected abstract int |
getInputSize() |
protected Provider |
getProvider()
Registers the provider
|
KeyPair |
keyGen()
Key generation benchmark
|
static void |
main(String[] args)
Register all the runners for the KEM algorithms that should be benchmarked.
|
protected static void |
run(Class<?> klass) |
void |
setUp()
Setup global parameters.
|
void |
setUpIteration()
Set up instances for key generation, encapsulation and decapsulation.
|
protected iaik.security.kem.KeyEncapsulationMechanism kemDec
protected byte[] ct
protected byte[] rand
public void setUp() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, PQException
public void setUpIteration() throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, InvalidAlgorithmParameterException, NoSuchProviderException, DigestException
public KeyPair keyGen()
public void encapsulate(org.openjdk.jmh.infra.Blackhole blackhole) throws DigestException, InvalidKeyException
DigestException
InvalidKeyException
public void decapsulate(org.openjdk.jmh.infra.Blackhole blackhole) throws DigestException, InvalidKeyException
DigestException
InvalidKeyException
protected 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.RunnerException
protected abstract AlgorithmParameterSpec generateParameterSpec() throws PQException
PQException
protected abstract String getAlgorithmName()
protected abstract int getInputSize()
Copyright © 2020–2025 Stiftung SIC. All rights reserved.