aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa3
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/emsa3')
-rw-r--r--src/pk_pad/emsa3/emsa3.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pk_pad/emsa3/emsa3.cpp b/src/pk_pad/emsa3/emsa3.cpp
index fc772e796..5d8ce5442 100644
--- a/src/pk_pad/emsa3/emsa3.cpp
+++ b/src/pk_pad/emsa3/emsa3.cpp
@@ -115,7 +115,9 @@ void EMSA3_Raw::update(const byte input[], u32bit length)
*/
SecureVector<byte> EMSA3_Raw::raw_data()
{
- return message;
+ SecureVector<byte> ret = message;
+ message.clear();
+ return ret;
}
/**