feat: Add ZUC stream cipher operation - #2666
Open
NihaoKangkang wants to merge 4 commits into
Open
Conversation
Implements the ZUC stream cipher in pure JavaScript based on the 3GPP confidentiality algorithm 128-EEA3/EIA3 specifications. Registers the cipher as a new Operation within CyberChef and includes test vectors to ensure correctness. Author: Kyi Wong Copyright: Crown Copyright 2026 License: Apache-2.0 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Implements the ZUC stream cipher in pure JavaScript based on the 3GPP confidentiality algorithm 128-EEA3/EIA3 specifications. Registers the cipher as a new Operation within CyberChef and includes test vectors to ensure correctness. Author: Kyi Wong Copyright: Crown Copyright 2026 License: Apache-2.0 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Implements the ZUC stream cipher in pure JavaScript based on the 3GPP confidentiality algorithm 128-EEA3/EIA3 specifications. Registers the cipher as a new Operation within CyberChef and includes test vectors to ensure correctness. Author: Kyi Wong Copyright: Crown Copyright 2026 License: Apache-2.0 Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Author
|
Reference paper / official specification: https://www.gsma.com/about-us/wp-content/uploads/2014/12/eea3eia3zucv16.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the ZUC stream cipher in pure JavaScript based on the 3GPP confidentiality algorithm 128-EEA3/EIA3 specifications. Registers the cipher as a new Operation within CyberChef and includes test vectors to ensure correctness.
Author: Kyi Wong
Copyright: Crown Copyright 2026
License: Apache-2.0
Description
This PR adds the ZUC stream cipher to CyberChef. ZUC is a stream cipher designed by the Chinese Academy of Sciences and forms the core of the 3GPP confidentiality algorithm 128-EEA3 and the 3GPP integrity algorithm 128-EIA3.
The implementation strictly follows the 3GPP TS 35.221 specification, handling the 128-bit Key and 128-bit Initialization Vector (IV) to generate the keystream.
Existing Issue
None
Screenshots

AI disclosure
AI tools (Google Labs Jules) were used to assist in translating the cryptographic algorithm mathematically safely into JavaScript and structuring the module according to the CONTRIBUTING.md guidelines. The code has been thoroughly reviewed and manually tested to guarantee cryptographic correctness and performance without external dependencies.
Test Coverage
Official Test Vectors (from the 3GPP standard specification) have been integrated into the Node API testing suite (tests/node/tests/operations.mjs) to guarantee strictly standardized keystream output. All tests pass locally (npm run test). And by the way, I developed ZUC in python before and I check these two results manually.