diff options
author | lloyd <lloyd@randombit.net> | 2010-09-08 00:03:15 +0000 |
---|---|---|
committer | lloyd <lloyd@randombit.net> | 2010-09-08 00:03:15 +0000 |
commit | 995277d11e900475aff1cc418021569968394590 (patch) | |
tree | ee36518274c423b970aa8a4dcc1cbee98cc8f1e1 /src/pk_pad | |
parent | 02ed6ebc954683cd2a25a81b6e707ab481e41e26 (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.cpp | 6 |
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; } /* |