Skip to content

Fix CurveMQ for libsodium feature #400

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

esemeniuc
Copy link

@esemeniuc esemeniuc commented May 30, 2024

I tried https://github.com/bartols/rust-zmq, https://github.com/SylvainMartel/rust-zmq, and https://github.com/conanoc/rust-zmq/tree/libsodium, they didn't work for me. Only 0.9.2 worked.

Simple test:

        let publisher_keypair = zmq::CurveKeyPair::new().unwrap();
        let subscriber_keypair = zmq::CurveKeyPair::new().unwrap();

        println!("Publisher Public Key: {:?}", publisher_keypair.public_key);
        println!("Publisher Secret Key: {:?}", publisher_keypair.secret_key);
        println!("Subscriber Public Key: {:?}", subscriber_keypair.public_key);
        println!("Subscriber Secret Key: {:?}", subscriber_keypair.secret_key);

Fixes: #357

References:
jean-airoldie/zeromq-src-rs#32

@havok4u
Copy link

havok4u commented Mar 17, 2025

Is this getting fixed in 0.10.0? Seems like a lot of time has gone by and still get Err on the call, but if I back down to the following config
[dependencies] zmq = { version = "0.9.2", features = ["vendored"] }
Then it seems to work.

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.

Curve encryption does not work with 0.10.0
2 participants