Skip to content

Comments

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

Merged
mxinden merged 10 commits intolibp2p:masterfrom
pinkforest:sunset/libsodium
Aug 30, 2022
Merged

transports/noise: Migrate away from deprecated sodiumoxide for tests#2817
mxinden merged 10 commits intolibp2p:masterfrom
pinkforest:sunset/libsodium

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>
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!

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 :)

@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