Botan 3.6.1
Crypto and TLS for C&
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/internal/eme.h>
11
12namespace Botan {
13
14class EME_Raw final : public EME {
15 public:
16 EME_Raw() = default;
17
18 private:
19 size_t maximum_input_size(size_t i) const override;
20
21 size_t pad(std::span<uint8_t> output,
22 std::span<const uint8_t> input,
23 size_t key_length,
24 RandomNumberGenerator& rng) const override;
25
26 CT::Option<size_t> unpad(std::span<uint8_t> output, std::span<const uint8_t> input) const override;
27};
28
29} // namespace Botan
30
31#endif
EME_Raw()=default
int(* final)(unsigned char *, CTX *)