aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/dlies
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 14:24:51 +0000
committerlloyd <[email protected]>2012-05-18 14:24:51 +0000
commitab5c922f0e2635dc0e45fc757b27be9f28986acb (patch)
treec21a18bbfb316196b1b13488ef05f184f12be9f0 /src/pubkey/dlies
parent2c3dc93d6466a9215d585613fb55f5222ce70d10 (diff)
Remove all uses of MemoryRegion::copy outside of internal uses in
secmem.h. Mostly replaced by assign or copy_mem.
Diffstat (limited to 'src/pubkey/dlies')
-rw-r--r--src/pubkey/dlies/dlies.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey/dlies/dlies.cpp b/src/pubkey/dlies/dlies.cpp
index 129cc46d9..80dde048b 100644
--- a/src/pubkey/dlies/dlies.cpp
+++ b/src/pubkey/dlies/dlies.cpp
@@ -43,7 +43,7 @@ SecureVector<byte> DLIES_Encryptor::enc(const byte in[], size_t length,
throw Invalid_State("DLIES: The other key was never set");
SecureVector<byte> out(my_key.size() + length + mac->output_length());
- out.copy(&my_key[0], my_key.size());
+ buffer_insert(out, 0, my_key);
buffer_insert(out, my_key.size(), in, length);
SecureVector<byte> vz = my_key;