Skip to content

Instantly share code, notes, and snippets.

@imneme
imneme / chacha.hpp
Last active April 18, 2024 06:56 — forked from orlp/chacha.h
C++11 ChaCha implementation.
#ifndef CHACHA_HPP_INCLUDED
#define CHACHA_HPP_INCLUDED 1
/*
* A C++ version of ChaCha PRNG (*modified* from Orson Peters original code)
*
* Changes Copyright (c) 2017-18 Melissa E. O'Neill, licence as below.
*
* Changes compared to original 2015 version:
* - Some formatting fixes