/src/botan/build/include/botan/eme_raw.h
Line | Count | Source (jump to first uncovered line) |
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 | | BOTAN_FUTURE_INTERNAL_HEADER(eme_raw.h) |
13 | | |
14 | | namespace Botan { |
15 | | |
16 | | class BOTAN_PUBLIC_API(2,0) EME_Raw final : public EME |
17 | | { |
18 | | public: |
19 | | size_t maximum_input_size(size_t i) const override; |
20 | | |
21 | 0 | EME_Raw() = default; |
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 |