ChaCha20 implementation for encryption

Add an implementation in 8051 assembler for the generation of a
ChaCha20 keystream and an encryption function using the keystream
in C.

A test function using the example from RFC7539 is provided in
chacha20_test.

Keys, nonce, and block counter and the pointers to the input plaintext,
its length and the output pointer are provided via a struct chacha20,
which also holds the working state of the ChaCha20 algorithm
This commit is contained in:
logicog
2026-04-26 10:30:55 +02:00
parent e280ccd2f9
commit 85244d85f9
6 changed files with 619 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
/*
* Select your machine type below
*/
// #define MACHINE_KP_9000_6XHML_X2
#define MACHINE_KP_9000_6XHML_X2
// #define MACHINE_KP_9000_6XH_X
// #define MACHINE_KP_9000_9XH_X_EU
// #define MACHINE_KP_9000_9XHML_X_V2_2