Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: CipherSaber2 decrypt fails the tests on http://ciphersaber.gurus.org/ #1723

Closed
i4kp3e opened this issue Feb 19, 2024 · 0 comments · Fixed by #1765
Closed

Bug report: CipherSaber2 decrypt fails the tests on http://ciphersaber.gurus.org/ #1723

i4kp3e opened this issue Feb 19, 2024 · 0 comments · Fixed by #1765
Labels

Comments

@i4kp3e
Copy link

i4kp3e commented Feb 19, 2024

Describe the bug
The implementation of CipherSaber2 decrypt fails to decode a test message published on http://ciphersaber.gurus.org/.

There are a handful of test vectors on the ciphersaber homepage. The CyberChef2_decrypt implementation fails to decode any of them.

For example the input

    6f 6d 0b ab f3 aa 67 19 03 15 30 ed b6 77 ca 74 e0 08 9d d0 
    e7 b8 85 43 56 bb 14 48 e3 7c db ef e7 f3 a8 4f 4f 5f b3 fd 

decrypted with key="asdfg",rounds=1 is supposed to produce text, but it produces garbage.

Would be nice to use the "official" test vectors as unit tests to ensure interoperability.

To Reproduce

  • Version: 10.8.0
  • Compile time: 18/02/2024 03:55:04 UTC
  • User-Agent:
    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
  • Link to reproduce

Expected behaviour
The ciphersaber homepage promises a text file:

This is a short text file encrypted with "asdfg" as the user key.

So I expected human readable English text to be produced by this test input, and not garbage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant