58template<
bool UseCrypt>
150 std::vector<std::byte> output;
151 output.resize(input.size());
152 fsc20.Crypt(input, output);
Unrestricted ChaCha20 cipher.
static constexpr unsigned KEYLEN
Expected key length in constructor and SetKey.
ChaCha20Aligned::Nonce96 Nonce96
96-bit nonce type.
static constexpr unsigned KEYLEN
Length of keys expected by the constructor.
std::vector< T > ConsumeBytes(size_t num_bytes)
T ConsumeIntegralInRange(T min, T max)
void fillrand(std::span< std::byte > span) noexcept
Fill a span with random bytes.
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
auto MakeWritableByteSpan(V &&v) noexcept
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
FuzzedDataProvider & fuzzed_data_provider