7#include <botan/internal/eme_raw.h>
9#include <botan/mem_ops.h>
10#include <botan/internal/ct_utils.h>
14size_t EME_Raw::pad(std::span<uint8_t> output,
15 std::span<const uint8_t> input,
17 RandomNumberGenerator& rng)
const {
21 copy_mem(output.first(input.size()), input);
25CT::Option<size_t> EME_Raw::unpad(std::span<uint8_t> output, std::span<const uint8_t> input)
const {
29 return CT::Option<size_t>(0);
36size_t EME_Raw::maximum_input_size(
size_t keybits)
const {
#define BOTAN_ASSERT_NOMSG(expr)
static constexpr Choice yes()
BOTAN_TEST_API CT::Option< size_t > copy_output(CT::Choice accept, std::span< uint8_t > output, std::span< const uint8_t > input, size_t offset)
size_t count_leading_zero_bytes(std::span< const uint8_t > input)
constexpr void copy_mem(T *out, const T *in, size_t n)