Botan  2.4.0
Crypto and TLS for C++11
eme_raw.h
Go to the documentation of this file.
1 /*
2 * (C) 2015 Jack Lloyd
3 *
4 * Botan is released under the Simplified BSD License (see license.txt)
5 */
6 
7 #ifndef BOTAN_EME_RAW_H_
8 #define BOTAN_EME_RAW_H_
9 
10 #include <botan/eme.h>
11 
12 namespace Botan {
13 
14 class BOTAN_PUBLIC_API(2,0) EME_Raw final : public EME
15  {
16  public:
17  size_t maximum_input_size(size_t i) const override;
18 
19  EME_Raw() = default;
20  private:
21  secure_vector<uint8_t> pad(const uint8_t[], size_t, size_t,
22  RandomNumberGenerator&) const override;
23 
24  secure_vector<uint8_t> unpad(uint8_t& valid_mask,
25  const uint8_t in[],
26  size_t in_len) const override;
27  };
28 
29 }
30 
31 #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