ChaCha20 implementation in x86_64 nasm ASM
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
chacha20.asm
test.asm

README.md

ChaCha20

A homemade ChaCha20 implementation in x86_64 nasm ASM

Note that this code is NOT optimized, has NOT been thoroughly checked, and breaks all calling conventions ever made.
It Works On My Machine, but please use an official implementation for any serious project.

An example test file is provided, it can be compiled and run like this :

nasm chacha20.asm -f elf64 -g -F dwarf
nasm test.asm -f elf64 -g -F dwarf
ld chacha20.o test.o -o test
./test | xxd

The output should match the all-zero test vector provided here