aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk_bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-17 05:44:33 +0000
committerlloyd <[email protected]>2009-11-17 05:44:33 +0000
commitc12e0e4f45497f8ecb628ba7d753f87aa8db0813 (patch)
tree5f2d3c4efd7efe0ac99366a84ebd50a062e15503 /checks/pk_bench.cpp
parent435965ac3b199d31b799ebefc012d928bc415621 (diff)
parent0d27bc0f8763cb6dd6307dbab7713058dee18b2c (diff)
propagate from branch 'net.randombit.botan' (head cfb19182987fc95b2a8885584a38edb10b4709b3)
to branch 'net.randombit.botan.c++0x' (head 1570877c463fed4b632bc49a5b5ee27c57de2cb5)
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r--checks/pk_bench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index e7b5db4d0..43d15010a 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -81,7 +81,7 @@ void benchmark_enc_dec(PK_Encryptor& enc, PK_Decryptor& dec,
{
if(enc_timer.seconds() < seconds || ciphertext.size() == 0)
{
- plaintext.create(enc.maximum_input_size());
+ plaintext.resize(enc.maximum_input_size());
// Ensure for Raw, etc, it stays large
if((i % 100) == 0)
@@ -122,7 +122,7 @@ void benchmark_sig_ver(PK_Verifier& ver, PK_Signer& sig,
{
if((i % 100) == 0)
{
- message.create(48);
+ message.resize(48);
rng.randomize(message.begin(), message.size());
}
@@ -142,7 +142,7 @@ void benchmark_sig_ver(PK_Verifier& ver, PK_Signer& sig,
if((i % 100) == 0)
{
- sig_random.create(signature.size());
+ sig_random.resize(signature.size());
rng.randomize(sig_random, sig_random.size());
verify_timer.start();