-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
base: master
Are you sure you want to change the base?
Fuzzing methods #901
Conversation
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. |
Please pay attention to indentation, in C it is tabs 8 spaces long |
add random byte xor TODO: change function names in fuzz_(random|begin|end)_(byte|bit) and optional suffix _xor
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. |
Add some handy functions to flip bits and bytes in random positions inside octets, or at beginning or end, using xor or random values.