aboutsummaryrefslogtreecommitdiffstats
path: root/src/emsa_raw.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-18 18:33:19 +0000
committerlloyd <[email protected]>2006-05-18 18:33:19 +0000
commita2c99d3270eb73ef2db5704fc54356c6b75096f8 (patch)
treead3d6c4fcc8dd0f403f8105598943616246fe172 /src/emsa_raw.cpp
Initial checkin1.5.6
Diffstat (limited to 'src/emsa_raw.cpp')
-rw-r--r--src/emsa_raw.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/emsa_raw.cpp b/src/emsa_raw.cpp
new file mode 100644
index 000000000..23c57d88a
--- /dev/null
+++ b/src/emsa_raw.cpp
@@ -0,0 +1,37 @@
+/*************************************************
+* EMSA-Raw Source File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#include <botan/emsa.h>
+
+namespace Botan {
+
+/*************************************************
+* EMSA-Raw Encode Operation *
+*************************************************/
+void EMSA_Raw::update(const byte input[], u32bit length)
+ {
+ message.append(input, length);
+ }
+
+/*************************************************
+* Return the raw (unencoded) data *
+*************************************************/
+SecureVector<byte> EMSA_Raw::raw_data()
+ {
+ SecureVector<byte> buf = message;
+ message.destroy();
+ return buf;
+ }
+
+/*************************************************
+* EMSA-Raw Encode Operation *
+*************************************************/
+SecureVector<byte> EMSA_Raw::encoding_of(const MemoryRegion<byte>& msg,
+ u32bit)
+ {
+ return msg;
+ }
+
+}