#include <eme_raw.h>
Definition at line 16 of file eme_raw.h.
◆ EME_Raw()
Botan::EME_Raw::EME_Raw |
( |
| ) |
|
|
default |
◆ encode() [1/2]
Encode an input
- Parameters
-
in | the plaintext |
key_length | length of the key in bits |
rng | a random number generator |
- Returns
- encoded plaintext
Definition at line 86 of file eme.cpp.
89 {
90 return pad(msg.data(), msg.size(), key_bits, rng);
91 }
virtual secure_vector< uint8_t > pad(const uint8_t in[], size_t in_length, size_t key_length, RandomNumberGenerator &rng) const =0
References Botan::EME::pad().
◆ encode() [2/2]
Encode an input
- Parameters
-
in | the plaintext |
in_length | length of plaintext in bytes |
key_length | length of the key in bits |
rng | a random number generator |
- Returns
- encoded plaintext
Definition at line 76 of file eme.cpp.
79 {
80 return pad(msg, msg_len, key_bits, rng);
81 }
References Botan::EME::pad().
◆ maximum_input_size()
size_t Botan::EME_Raw::maximum_input_size |
( |
size_t |
keybits | ) |
const |
|
overridevirtual |
Return the maximum input size in bytes we can support
- Parameters
-
keybits | the size of the key in bits |
- Returns
- upper bound of input in bytes
Implements Botan::EME.
Definition at line 27 of file eme_raw.cpp.
28 {
29 return keybits / 8;
30 }
The documentation for this class was generated from the following files: