public abstract class AbstractECDSABenchmark extends AbstractBenchmark
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractECDSABenchmark.Implementation
Curve selection
|
random_| Constructor and Description |
|---|
AbstractECDSABenchmark() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
fieldName(AbstractECDSABenchmark.Implementation impl,
int keySize) |
protected abstract AlgorithmParameterSpec |
generateParameterSpec() |
protected abstract int |
getKeySize() |
protected abstract Provider |
getProvider() |
protected static int |
implementationToKeySize(AbstractECDSABenchmark.Implementation implementation,
String identifier) |
void |
setUp()
Setup global parameters.
|
void |
setUpIteration()
Set up instances for signing and verifying.
|
byte[] |
sign()
Signing benchmark
|
boolean |
verify()
Verification signature
|
run, setUpRandomprotected static String fieldName(AbstractECDSABenchmark.Implementation impl, int keySize)
protected static int implementationToKeySize(AbstractECDSABenchmark.Implementation implementation, String identifier)
protected abstract int getKeySize()
protected abstract Provider getProvider()
protected abstract AlgorithmParameterSpec generateParameterSpec()
public void setUp()
throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException
public void setUpIteration()
throws NoSuchAlgorithmException,
InvalidKeyException,
SignatureException
public byte[] sign()
throws SignatureException
SignatureExceptionpublic boolean verify()
throws SignatureException
SignatureExceptionCopyright © 2011–2022 Stiftung SIC. All rights reserved.