From a2c99d3270eb73ef2db5704fc54356c6b75096f8 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 18 May 2006 18:33:19 +0000 Subject: Initial checkin --- src/emsa_raw.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/emsa_raw.cpp (limited to 'src/emsa_raw.cpp') 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 + +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 EMSA_Raw::raw_data() + { + SecureVector buf = message; + message.destroy(); + return buf; + } + +/************************************************* +* EMSA-Raw Encode Operation * +*************************************************/ +SecureVector EMSA_Raw::encoding_of(const MemoryRegion& msg, + u32bit) + { + return msg; + } + +} -- cgit v1.2.3