Botan  1.11.15
src/lib/pk_pad/emsa_raw/emsa_raw.h
Go to the documentation of this file.
00001 /*
00002 * EMSA-Raw
00003 * (C) 1999-2007 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_EMSA_RAW_H__
00009 #define BOTAN_EMSA_RAW_H__
00010 
00011 #include <botan/emsa.h>
00012 
00013 namespace Botan {
00014 
00015 /**
00016 * EMSA-Raw - sign inputs directly
00017 * Don't use this unless you know what you are doing.
00018 */
00019 class BOTAN_DLL EMSA_Raw : public EMSA
00020    {
00021    private:
00022       void update(const byte[], size_t);
00023       secure_vector<byte> raw_data();
00024 
00025       secure_vector<byte> encoding_of(const secure_vector<byte>&, size_t,
00026                                      RandomNumberGenerator&);
00027       bool verify(const secure_vector<byte>&, const secure_vector<byte>&,
00028                   size_t);
00029 
00030       secure_vector<byte> message;
00031    };
00032 
00033 }
00034 
00035 #endif