Botan  2.6.0
Crypto and TLS for C++11
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 * Botan is released under the Simplified BSD License (see license.txt)
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_PUBLIC_API(2,0) EME_PKCS1v15 final : public EME
19  {
20  public:
21  size_t maximum_input_size(size_t) const override;
22  private:
23  secure_vector<uint8_t> pad(const uint8_t[], size_t, size_t,
24  RandomNumberGenerator&) const override;
25 
26  secure_vector<uint8_t> unpad(uint8_t& valid_mask,
27  const uint8_t in[],
28  size_t in_len) const override;
29  };
30 
31 }
32 
33 #endif
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:27
Definition: eme.h:20
Definition: alg_id.cpp:13
std::vector< T, secure_allocator< T > > secure_vector
Definition: secmem.h:88