Skip to content

Instantly share code, notes, and snippets.

@imneme
imneme / chacha.hpp
Last active Nov 19, 2021 — forked from orlp/chacha.h
C++11 ChaCha implementation.
View chacha.hpp
#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