chacha20poly1305 icon indicating copy to clipboard operation
chacha20poly1305 copied to clipboard

Simple ChaCha20Poly1305@Bitcoin C implementation

Build Status

chacha20poly1305@bitcoin AEAD

Simple C module for ChaCha20Poly1305@bitcoin AEAD

Features:

  • Simple, pure C code without any dependencies.

Build steps

Object code:

$ gcc -lm -O3 -c poly1305.c chacha.c chachapoly_aead.c

Tests:

$ gcc -O3 poly1305.c chacha.c chachapoly_aead.c tests.c -o test

Benchmark:

$ gcc -lm -O3 poly1305.c chacha.c chachapoly_aead.c bench.c -o bench