Botan: src/pk_pad/eme_pkcs/eme_pkcs.h Source File

Botan 1.10.16

eme_pkcs.h
Go to the documentation of this file.
1 /*
2 * EME PKCS#1 v1.5
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_EME_PKCS1_H__
9 #define BOTAN_EME_PKCS1_H__
10
11 #include <botan/eme.h>
12
13 namespace Botan {
14
15 /**
16 * EME from PKCS #1 v1.5
17 */
18 class BOTAN_DLL EME_PKCS1v15 : public EME
19 {
20 public:
21 size_t maximum_input_size(size_t) const;
22 private:
23 SecureVector<byte> pad(const byte[], size_t, size_t,
24 RandomNumberGenerator&) const;
25 SecureVector<byte> unpad(const byte[], size_t, size_t) const;
26 };
27
28 }
29
30 #endif
Botan::RandomNumberGenerator
Definition: rng.h:20
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::EME
Definition: eme.h:19
Botan
Definition: algo_base.h:14
Botan::EME_PKCS1v15
Definition: eme_pkcs.h:18
Botan::SecureVector< byte >