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

feat(client): add custom prefix support to the Client library #127

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

bemasc
Copy link

@bemasc bemasc commented Oct 21, 2022

No description provided.

@bemasc bemasc requested a review from a team as a code owner October 21, 2022 15:46
Copy link

@fortuna fortuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great implementation, thanks!

I have a comment about the collision probability.

client/salt.go Outdated
//
// Note: Prefixes steal entropy from the initialization vector. This weakens
// security by increasing the likelihood that the same IV is used in two
// different connections (which becomes likely once 2^-N/2 connections are
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that 2^(-N/2)? That doesn't seem right.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, should be 2^(N/2). Fixed!

Ben Schwartz added 2 commits October 21, 2022 12:58
@bemasc bemasc merged commit a9a52e8 into master Oct 21, 2022
@bemasc bemasc deleted the bemasc-prefix branch October 21, 2022 17:06
@database64128
Copy link

Implementing this solely on the client side will lead to misuse by users that server administrators have no means to detect or stop. See shadowsocks/shadowsocks-org#204.

@fortuna fortuna changed the title Add custom prefix support to the Client library feat: add custom prefix support to the Client library Nov 30, 2022
@fortuna fortuna changed the title feat: add custom prefix support to the Client library feat(client): add custom prefix support to the Client library Nov 30, 2022
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.

3 participants