From 0d27bc0f8763cb6dd6307dbab7713058dee18b2c Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 17 Nov 2009 05:03:06 +0000 Subject: Rename/remove some secmem member variables for better matching with STL containers (specifically vector). Rename is_empty to empty Remove has_items Rename create to resize --- checks/pk_bench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'checks/pk_bench.cpp') diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index 9a94d8474..31c48c1da 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(); -- cgit v1.2.3