aboutsummaryrefslogtreecommitdiffstats
path: root/checks/ecdsa.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-15 13:44:42 +0000
committerlloyd <[email protected]>2010-09-15 13:44:42 +0000
commit180c5358cb31e9c003cada3705bb30cf01732878 (patch)
tree951038dfaf2c33bcee5e27c4b1d2980eb35494a3 /checks/ecdsa.cpp
parenta9d0f37596e5413cae45f32740738c5c68abcce1 (diff)
Update all uses of MemoryRegion::append to use either push_back or operator+=
Diffstat (limited to 'checks/ecdsa.cpp')
-rw-r--r--checks/ecdsa.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp
index 9cacad70a..91ea8cfbb 100644
--- a/checks/ecdsa.cpp
+++ b/checks/ecdsa.cpp
@@ -52,11 +52,9 @@ void test_hash_larger_than_n(RandomNumberGenerator& rng)
// 0x0100000000000000000001f4c8f927aed3ca752257 // 21 bytes
// -> shouldn't work with SHA224 which outputs 23 bytes
ECDSA_PrivateKey priv_key(rng, dom_pars);
- SecureVector<byte> message;
- for (unsigned j= 0; j<20; j++)
- {
- message.append(j);
- }
+ SecureVector<byte> message(20);
+ for (unsigned i = 0; i != 20; ++i)
+ message[i] = i;
for (int i = 0; i<3; i++)
{