monotone

monotone Mtn Source Tree

Root/botan/emsa_raw.cpp

1/*************************************************
2* EMSA-Raw Source File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#include <botan/emsa.h>
7
8namespace Botan {
9
10/*************************************************
11* EMSA-Raw Encode Operation *
12*************************************************/
13void EMSA_Raw::update(const byte input[], u32bit length)
14 {
15 message.append(input, length);
16 }
17
18/*************************************************
19* Return the raw (unencoded) data *
20*************************************************/
21SecureVector<byte> EMSA_Raw::raw_data()
22 {
23 SecureVector<byte> buf = message;
24 message.destroy();
25 return buf;
26 }
27
28/*************************************************
29* EMSA-Raw Encode Operation *
30*************************************************/
31SecureVector<byte> EMSA_Raw::encoding_of(const MemoryRegion<byte>& msg,
32 u32bit)
33 {
34 return msg;
35 }
36
37}

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status