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

update: remove rnd from security-iv-printable-prefix feature #844

Merged
merged 3 commits into from
May 22, 2022

Conversation

chuxi
Copy link
Contributor

@chuxi chuxi commented May 22, 2022

I wrote little rust. So it is welcome to tell me any problems in the commit.

The feature security-iv-printable-prefix works well for me. I found the original solution used Rand package to generate the index. It is repeated for nonce calculation. So I updated the codes to prefix processing of nonce.

@zonyitoo
Copy link
Collaborator

Clever move.

@zonyitoo
Copy link
Collaborator

Your test fn generate_nonce() fails to compile.

@chuxi
Copy link
Contributor Author

chuxi commented May 22, 2022

yes. I tested it on v1.14.3. So missed the test on master branch. just fixed it.

crates/shadowsocks/src/context.rs Outdated Show resolved Hide resolved
@zonyitoo zonyitoo merged commit c27a3de into shadowsocks:master May 22, 2022
@chuxi chuxi deleted the nonce-prefix branch May 22, 2022 15:39
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