#include <cycle_group.fuzzer.hpp>
|
| enum | OPCODE {
CONSTANT
, WITNESS
, CONSTANT_WITNESS
, ASSERT_EQUAL
,
COND_ASSIGN
, SET
, ADD
, SUBTRACT
,
NEG
, DBL
, MULTIPLY
, BATCH_MUL
,
RANDOMSEED
, _LAST
} |
| |
|
template<typename T >
requires SimpleRng<T> |
| static Instruction | generateRandom (T &rng) |
| | Generates a random instruction.
|
| |
| template<typename FF > |
| static uint256_t | to_uint256_montgomery (const FF &value, bool as_montgomery) |
| | Convert a scalar field element to uint256_t, optionally using Montgomery form.
|
| |
| template<typename FF > |
| static FF | from_uint256_montgomery (const uint256_t &data, bool from_montgomery) |
| | Convert uint256_t back to scalar field element, optionally from Montgomery form.
|
| |
template<typename T >
requires SimpleRng<T> |
| static Element | mutateGroupElement (Element e, T &rng, HavocSettings &havoc_config) |
| | Mutate the value of a group element.
|
| |
template<typename T >
requires SimpleRng<T> |
| static ScalarField | mutateScalarElement (ScalarField e, T &rng, HavocSettings &havoc_config) |
| | Mutate the value of a scalar element.
|
| |
template<typename T >
requires SimpleRng<T> |
| static Instruction | mutateInstruction (Instruction instruction, T &rng, HavocSettings &havoc_config) |
| | Mutate a single instruction.
|
| |
template<typename
Builder>
class CycleGroupBase< Builder >::Instruction
Definition at line 144 of file cycle_group.fuzzer.hpp.
◆ OPCODE
| Enumerator |
|---|
| CONSTANT | |
| WITNESS | |
| CONSTANT_WITNESS | |
| ASSERT_EQUAL | |
| COND_ASSIGN | |
| SET | |
| ADD | |
| SUBTRACT | |
| NEG | |
| DBL | |
| MULTIPLY | |
| BATCH_MUL | |
| RANDOMSEED | |
| _LAST | |
Definition at line 146 of file cycle_group.fuzzer.hpp.
◆ from_uint256_montgomery()
Convert uint256_t back to scalar field element, optionally from Montgomery form.
Definition at line 327 of file cycle_group.fuzzer.hpp.
◆ generateRandom()
◆ mutateGroupElement()
Mutate the value of a group element.
- Template Parameters
-
- Parameters
-
| e | Initial element value |
| rng | PRNG |
| havoc_config | Mutation configuration |
- Returns
- Mutated element
Definition at line 345 of file cycle_group.fuzzer.hpp.
◆ mutateInstruction()
Mutate a single instruction.
- Template Parameters
-
- Parameters
-
| instruction | The instruction |
| rng | PRNG |
| havoc_config | Mutation configuration |
- Returns
- Mutated instruction
Definition at line 494 of file cycle_group.fuzzer.hpp.
◆ mutateScalarElement()
Mutate the value of a scalar element.
- Template Parameters
-
- Parameters
-
| e | Initial scalar value |
| rng | PRNG |
| havoc_config | Mutation configuration |
- Returns
- Mutated element
Definition at line 426 of file cycle_group.fuzzer.hpp.
◆ to_uint256_montgomery()
Convert a scalar field element to uint256_t, optionally using Montgomery form.
Definition at line 316 of file cycle_group.fuzzer.hpp.
◆ arguments
◆ id
The documentation for this class was generated from the following file: