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

0.0.7: Update to *ring* 0.9.4. #6

Merged
merged 1 commit into from
May 9, 2017
Merged

0.0.7: Update to *ring* 0.9.4. #6

merged 1 commit into from
May 9, 2017

Conversation

briansmith
Copy link
Contributor

Before ring 0.9.3, it was possible to link multiple versions of ring into a program, e.g. if one version depended on ring 0.6 and another depended on ring 0.9. Unfortunately, this doesn't work, because the linker doesn't know to how to link ring's C/asm code correctly in that kind of situation. ring 0.9.3 added a flag to its Cargo.toml to tell the Rust toolchain to stop allowing multiple versions of ring to be linked into the same program, to prevent any problems this may cause.

ring 0.9.4 was released with an update to make some crates easier to update to 0.9.x.

@heartsucker
Copy link
Owner

Blocked by rwf2/cookie-rs#90

@@ -7,7 +7,7 @@ use crypto::aes::KeySize;
use crypto::aes_gcm::AesGcm;
use crypto::chacha20poly1305::ChaCha20Poly1305;
use crypto::scrypt::{scrypt, ScryptParams};
use ring::rand::SystemRandom;
use ring::rand::{SecureRandom, SystemRandom};
Copy link
Owner

Choose a reason for hiding this comment

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

Is this implication by adding this that SystemRandom is insecure? And would that mean you recommend changing the usage of SystemRandom to SecureRandom everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SystemRandom implements the SecureRandom trait. Previously there was a SystemRandom:fill() in addition to the fill() from SecureRandom. However, now that extra SystemRandom:fill() is gone, so you have to call fill() through the trait, and that requires the trait to be used.

Copy link
Owner

Choose a reason for hiding this comment

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

Got it. Thanks.

@heartsucker heartsucker merged commit 809e74a into heartsucker:develop May 9, 2017
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.

None yet

2 participants