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

optimize(udp): use address type to filter wrong password early #5

Merged
merged 4 commits into from
Dec 31, 2020

Conversation

ghost
Copy link

@ghost ghost commented Dec 30, 2020

AEAD data can be partially decrypted without check tag, so we can see address type without decrypt full packet. Then we can use it to filter out 253/256 wrong situation.

Note: Not tested

Note: Partially decrypt AEAD cipher text is not suggested, we lost integrity check when doing so.

Student Main and others added 2 commits December 31, 2020 07:01
AEAD data can be partially decrypted *without check tag*, so we can see address type without decrypt full packet. Then we can use it to filter out 253/256 wrong situation.
@mzz2017
Copy link
Contributor

mzz2017 commented Dec 31, 2020

Thanks for your hard work! I will add some unit test to verify its feasibility.

@mzz2017
Copy link
Contributor

mzz2017 commented Dec 31, 2020

All tests passed.

@DuckSoft
Copy link
Member

crypto is hard. I go die.

@mzz2017 mzz2017 merged commit 92be769 into main Dec 31, 2020
@ghost ghost deleted the fast_udp branch December 31, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants