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

Fuzzing methods #901

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Fuzzing methods #901

wants to merge 12 commits into from

Conversation

jaromil
Copy link
Member

@jaromil jaromil commented Jul 17, 2024

Add some handy functions to flip bits and bytes in random positions inside octets, or at beginning or end, using xor or random values.

@FilippoTrotter
Copy link
Collaborator

Based on the implementation of the Matasano challenge solutions, some others useful methods to have in Zenroom would be bitwise operations between octets, including AND, OR, and shift. Lua already implements these methods on integers, and it would be convenient to be able to do the same with zenroom.octet.

@matteo-cristino
Copy link
Collaborator

Please pay attention to indentation, in C it is tabs 8 spaces long

@FilippoTrotter FilippoTrotter marked this pull request as ready for review October 3, 2024 07:35
@jaromil
Copy link
Member Author

jaromil commented Oct 8, 2024

Waiting for @FilippoTrotter to complete it with deterministic state change checks: fuzzing should always change the contents of an octet and check the remote case in which random_bytes return same value or bitshift makes a full rotation.

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