aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-28 19:07:14 +0000
committerlloyd <[email protected]>2008-11-28 19:07:14 +0000
commit71fe0cbd5c8a1c358f206f59a150d4ad935ec5da (patch)
treec56827273068af99e81002b6f051aadb179e0317
parent2a8ba7de7b5d6bd52da9305a78391e22e3a5da74 (diff)
In EMSA3_Raw::raw_data, clear message buffer (reset) before returning
-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;
}
/**