diff options
Diffstat (limited to 'src/pk_pad/emsa3/emsa3.cpp')
-rw-r--r-- | src/pk_pad/emsa3/emsa3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pk_pad/emsa3/emsa3.cpp b/src/pk_pad/emsa3/emsa3.cpp index 82981d38c..aa1b85f05 100644 --- a/src/pk_pad/emsa3/emsa3.cpp +++ b/src/pk_pad/emsa3/emsa3.cpp @@ -117,8 +117,8 @@ void EMSA3_Raw::update(const byte input[], u32bit length) */ SecureVector<byte> EMSA3_Raw::raw_data() { - SecureVector<byte> ret = message; - message.clear(); + SecureVector<byte> ret; + std::swap(ret, message); return ret; } |