feat: add PRESENT and Twofish ciphers #2157
Open
+2,363
−0
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.
Summary
Adds two new block cipher implementations to CyberChef:
New Operations
PRESENT (ISO/IEC 29192-2:2019)
Twofish (AES Finalist)
Padding Options (Both Ciphers)
Use Cases
Files Changed
src/core/lib/Present.mjssrc/core/lib/Twofish.mjssrc/core/operations/PRESENTEncrypt.mjssrc/core/operations/PRESENTDecrypt.mjssrc/core/operations/TwofishEncrypt.mjssrc/core/operations/TwofishDecrypt.mjssrc/core/config/Categories.jsontests/operations/tests/PRESENT.mjstests/operations/tests/Twofish.mjstests/operations/index.mjsTesting
PRESENT Test Vectors (CHES 2007)
0000000000000000000000000000000000005579c1387b228445ffffffffffffffffffff0000000000000000e72c46c0f594504900000000000000000000000000000000000000000000000096db702a2e6900afTwofish Test Vectors (Schneier)
0000...0000(32 hex)0000...0000(32 hex)9f589f5cf6122c32b6bfec2f2ae8c35a0000...0000(48 hex)0000...0000(32 hex)efa71f788965bd4453f860178fc191010000...0000(64 hex)0000...0000(32 hex)57ff739d4dc92c1bd7fc01700cc8216fImplementation Notes
References