From 42848be23d7bdcab95ac08da389002a952ac0d3f Mon Sep 17 00:00:00 2001 From: Aries Harbinger Date: Sat, 14 Dec 2024 11:51:39 +0800 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index f1e7019..0c93198 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,12 @@ This implementation enhances traditional stream cipher designs, introducing a la --- +# What is `stateVariant`? + +The `stateVariant` refers to an optional parameter that allows you to modify the internal cryptographic state of the cipher. It is an array of four integers that adjusts certain internal operations of the algorithm, potentially altering its behavior and the resulting encryption/decryption process. + +--- + ## Supported Environments **Node.js**: Fully compatible. @@ -67,6 +73,7 @@ Ceilidh20(data, { key: key, // 32-byte key iv: iv, // 32-byte initialization vector nonce: nonce // 24-byte nonce + stateVariant: array, // optional custom state variant isEncrypt: boolean // Flag to indicate encryption or decryption }); ```