Zenroom icon indicating copy to clipboard operation
Zenroom copied to clipboard

Fuzzing methods

Open jaromil opened this issue 1 year ago • 3 comments

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

jaromil avatar Jul 17 '24 07:07 jaromil

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.

FilippoTrotter avatar Jul 22 '24 15:07 FilippoTrotter

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

matteo-cristino avatar Oct 01 '24 08:10 matteo-cristino

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.

jaromil avatar Oct 08 '24 14:10 jaromil