aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2010-09-08 00:03:15 +0000
committerlloyd <lloyd@randombit.net>2010-09-08 00:03:15 +0000
commit995277d11e900475aff1cc418021569968394590 (patch)
treeee36518274c423b970aa8a4dcc1cbee98cc8f1e1 /src/pk_pad
parent02ed6ebc954683cd2a25a81b6e707ab481e41e26 (diff)
Rename MemoryRegion::destroy to MemoryRegion::clear to match STL
Diffstat (limited to 'src/pk_pad')
-rw-r--r--src/pk_pad/emsa_raw/emsa_raw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pk_pad/emsa_raw/emsa_raw.cpp b/src/pk_pad/emsa_raw/emsa_raw.cpp
index 734dc3698..696c6bc5c 100644
--- a/src/pk_pad/emsa_raw/emsa_raw.cpp
+++ b/src/pk_pad/emsa_raw/emsa_raw.cpp
@@ -22,9 +22,9 @@ void EMSA_Raw::update(const byte input[], u32bit length)
*/
SecureVector<byte> EMSA_Raw::raw_data()
{
- SecureVector<byte> buf = message;
- message.destroy();
- return buf;
+ SecureVector<byte> output;
+ std::swap(message, output);
+ return output;
}
/*