diff options
author | lloyd <[email protected]> | 2008-11-28 19:07:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-28 19:07:14 +0000 |
commit | 71fe0cbd5c8a1c358f206f59a150d4ad935ec5da (patch) | |
tree | c56827273068af99e81002b6f051aadb179e0317 /src/pk_pad | |
parent | 2a8ba7de7b5d6bd52da9305a78391e22e3a5da74 (diff) |
In EMSA3_Raw::raw_data, clear message buffer (reset) before returning
Diffstat (limited to 'src/pk_pad')
-rw-r--r-- | src/pk_pad/emsa3/emsa3.cpp | 4 |
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; } /** |