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

transports/noise: Migrate away from deprecated sodiumoxide for tests #2817

Merged
merged 10 commits into from
Aug 30, 2022

Conversation

pinkforest
Copy link
Contributor

@pinkforest pinkforest commented Aug 13, 2022

Description

Sodiumoxide is used for testing the legacy noise protocol crypto

Sodiumoxide is deprecated which brings for testing comparison in noise proto context;

  • sodiumoxide for ed25519 for Secret | Public -Key test ref
  • libsodium-sys 0.2.7 bindings (about 1 year ago)
  • libsodium C: crypto_sign_ed25519_pk_to_curve25519
  • libsodium C: crypto_sign_ed25519_sk_to_curve25519

This change migrates from sodiumoxide to:

Links to any relevant issues

Fixes #2811

Open Questions

Change checklist

  • Migrate testing from against sodiumoxide to libsodium-sys-stable and ed25519-compact

  • I have performed a self-review of my own code

  • I have made corresponding changes to the documentation

  • I have added tests that prove my fix is effective or that my feature works

  • A changelog entry has been made in the appropriate crates

Signed-off-by: pinkforest <36498018+pinkforest@users.noreply.github.com>
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this @pinkforest!

transports/noise/Cargo.toml Show resolved Hide resolved
transports/noise/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks! Two ideas from my end :)

transports/noise/src/protocol/x25519.rs Outdated Show resolved Hide resolved
transports/noise/src/protocol/x25519.rs Outdated Show resolved Hide resolved
@thomaseizinger thomaseizinger changed the title Migrate from deprecated sodiumoxide testing on noise protocol transports/noise: Migrate away from deprecated sodiumoxide for tests Aug 19, 2022
@thomaseizinger thomaseizinger mentioned this pull request Aug 19, 2022
4 tasks
Signed-off-by: pinkforest <36498018+pinkforest@users.noreply.github.com>
Signed-off-by: pinkforest <36498018+pinkforest@users.noreply.github.com>
Signed-off-by: pinkforest <36498018+pinkforest@users.noreply.github.com>
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for the follow ups @pinkforest.

Will wait for another review from @thomaseizinger before merging.

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Sorry for the long delay and thanks for fixing this!

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.

RUSTSEC-2021-0137: sodiumoxide is deprecated
3 participants