There are two kinds of code. One is wriiten in c++ and the other is written in sage.
-
The c++ code can only be used to test the 2-round attack on smalle-state Rasta and it is much more efficient than the sage code.
-
The sage code can be used to test the 3-round attack and we can benefit from its simplicity.
-
In the sage code, you can change the parameter for n (denoting the block size) and Round (denoting the number of rounds). You can run the code with the command ''sage algebraicAttack.sage''
-
In the c++ code, you can change the parameter BS (block size) in Rasta.h.