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

Test cases for symmetric ciphers with empty input for encrypt and deccrypt #173

Merged
merged 2 commits into from Mar 9, 2023

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Mar 9, 2023

Also, fix #172 by providing a 0 case in the chache20 crypt loop

…rypt

Also, fix mirage#172 by providing a `0` case in the chache20 crypt loop
@reynir
Copy link
Member

reynir commented Mar 9, 2023

This is as well what I arrived at in https://github.com/reynir/mirage-crypto/tree/fix-chacha20. I tested a few values against a python implementation and got the same results. I can't say I understand chacha20 so take it with a LD50 dose of salt.

@hannesm hannesm merged commit 5d540ae into mirage:main Mar 9, 2023
@hannesm hannesm deleted the test-fix-172 branch March 9, 2023 13:16
hannesm added a commit to hannesm/opam-repository that referenced this pull request Mar 9, 2023
…age, mirage-crypto-rng-lwt, mirage-crypto-rng-eio, mirage-crypto-rng-async, mirage-crypto-pk and mirage-crypto-ec (0.11.1)

CHANGES:

* BUGFIX Chacha20 decrypt and encrypt with empty data (previously lead to
  segmentation fault, reported by @smondet in mirage/mirage-crypto#172, fix in mirage/mirage-crypto#173 by @reynir
  @hannesm), added tests with empty data for all symmetric ciphers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mirage_crypto.Chacha20.authenticate_encrypt seg-faults on empty message
2 participants