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

Implementation of improvements: Security HardeningandEnhanced Randomness #240662

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

Conversation

mrfelpa
Copy link

@mrfelpa mrfelpa commented Feb 13, 2025

  • The cryptography implemented in the original code was not fully secure, so I implemented a replacement of rand::thread_rng() with rand::rngs::OsRng, which provides a higher quality and cryptographically secure source of entropy.

  • I also implemented the constant_time_eq crate and used its constant_time_eq, this helps prevent attempts to reverse engineer a valid signature by timing how long the comparison takes.

- The cryptography implemented in the original code was not fully secure, so I implemented a replacement of rand::thread_rng() with rand::rngs::OsRng, which provides a higher quality and cryptographically secure source of entropy.

- I also implemented the constant_time_eq crate and used its constant_time_eq, this helps prevent attempts to reverse engineer a valid signature by timing how long the comparison takes.
@mrfelpa
Copy link
Author

mrfelpa commented Feb 13, 2025

@microsoft-github-policy-service agree

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.

3 participants