Botan  1.11.15
src/lib/pk_pad/eme_pkcs1/eme_pkcs.h
Go to the documentation of this file.
00001 /*
00002 * EME PKCS#1 v1.5
00003 * (C) 1999-2007 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_EME_PKCS1_H__
00009 #define BOTAN_EME_PKCS1_H__
00010 
00011 #include <botan/eme.h>
00012 
00013 namespace Botan {
00014 
00015 /**
00016 * EME from PKCS #1 v1.5
00017 */
00018 class BOTAN_DLL EME_PKCS1v15 : public EME
00019    {
00020    public:
00021       size_t maximum_input_size(size_t) const;
00022    private:
00023       secure_vector<byte> pad(const byte[], size_t, size_t,
00024                              RandomNumberGenerator&) const;
00025       secure_vector<byte> unpad(const byte[], size_t, size_t) const;
00026    };
00027 
00028 }
00029 
00030 #endif