monotone

monotone Mtn Source Tree

Root/botan/eme.h

1/*************************************************
2* EME Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_EME_H__
7#define BOTAN_EME_H__
8
9#include <botan/pk_util.h>
10
11namespace Botan {
12
13/*************************************************
14* EME1 *
15*************************************************/
16class EME1 : public EME
17 {
18 public:
19 u32bit maximum_input_size(u32bit) const;
20
21 EME1(const std::string&, const std::string&, const std::string& = "");
22 ~EME1() { delete mgf; }
23 private:
24 SecureVector<byte> pad(const byte[], u32bit, u32bit) const;
25 SecureVector<byte> unpad(const byte[], u32bit, u32bit) const;
26 const u32bit HASH_LENGTH;
27 SecureVector<byte> Phash;
28 MGF* mgf;
29 };
30
31/*************************************************
32* EME_PKCS1v15 *
33*************************************************/
34class EME_PKCS1v15 : public EME
35 {
36 public:
37 u32bit maximum_input_size(u32bit) const;
38 private:
39 SecureVector<byte> pad(const byte[], u32bit, u32bit) const;
40 SecureVector<byte> unpad(const byte[], u32bit, u32bit) const;
41 };
42
43}
44
45#endif

Archive Download this file

Branches

Tags

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