72 for (
size_t i = 0; i < length; ++i) {
82 std::vector<std::byte>
bad_key = key;
164 std::vector<std::byte>
bad_key = key;
The AEAD_CHACHA20_POLY1305 authenticated encryption algorithm from RFC8439 section 2....
ChaCha20::Nonce96 Nonce96
96-bit nonce type.
static constexpr unsigned EXPANSION
Expansion when encrypting.
Forward-secure wrapper around AEADChaCha20Poly1305.
static constexpr auto EXPANSION
Expansion when encrypting.
std::vector< T > ConsumeBytes(size_t num_bytes)
T ConsumeIntegralInRange(T min, T max)
std::vector< B > randbytes(size_t len) noexcept
Generate random bytes.
static constexpr void crypt_till_rekey(FSChaCha20Poly1305 &aead, int rekey_interval, bool encrypt)
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
FuzzedDataProvider provider
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.