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

Add fuzz tests to show equivalence between stdlib cryptographic functions and rust implementations #6141

Open
TomAFrench opened this issue Sep 24, 2024 · 2 comments
Assignees

Comments

@TomAFrench
Copy link
Member

We should add some fuzz tests which generates random inputs and feeds them into the stdlib implementations of keccak256/sha256/etc. alongside an off-the-shelf rust implementation to give greater assurances about correctness.

Note that this won't work with just a regular fuzz test but will need a rust harness.

@TomAFrench
Copy link
Member Author

@TomAFrench
Copy link
Member Author

compile from string snippet:

fn prepare_source(source: String, state: &mut LspState) -> (Context<'static, 'static>, CrateId) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants