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

note on HashDoS resistance #216

Merged
merged 1 commit into from
Dec 22, 2020
Merged

note on HashDoS resistance #216

merged 1 commit into from
Dec 22, 2020

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Dec 17, 2020

Looks like the comment I added in #111 was removed in #207.

I appreciate that aHash makes an effort of providing some protection against HashDoS, but in cryptography, this alone is not enough. In particular, it doesn't use full AES (unless that has changed since its inception), so no cryptographic claims can be made about the quality of the involved cipher. The wiki page I linked is somewhat misleading in this regard I think -- yes, doing a few rounds of AES does mangle the data quite a bit, but not in any way that I would place a bet on. In use for cryptography, using not enough AES rounds the way aHash does is known to lead to an easily breakable cipher. Just because there's "AES" in the name and a naive differential analysis fails doesn't mean it's secure.

Just using a key in some way is not sufficient to claim HashDoS resistance. You also need to show that there is no way to leak the key, e.g. through a timing side-channel. So given that this can be security-critical, I think we should follow the usual standards of waiting for independent analysis and confirmation of the given claims by other experts before accepting them.

The wiki page also claims it to be an "advantage" that there is no fixed standard. That is a rather questionable claim, given that all the most secure ciphers we use daily on the internet do have a fixed standard, and precisely following the standard is crucial for security.

@RalfJung RalfJung changed the title note on HashDos resistance note on HashDoS resistance Dec 17, 2020
@Amanieu Amanieu merged commit 39d6351 into rust-lang:master Dec 22, 2020
@RalfJung RalfJung deleted the readme branch April 10, 2021 12:05
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.

2 participants