Adds support to the transformations parity[even|odd|zero]7bit

Issues: #968, #969, #967
This commit is contained in:
Felipe Zimmerle
2016-05-27 10:45:05 -03:00
parent 59b1fe0305
commit 8d49903279
8 changed files with 126 additions and 52 deletions

View File

@@ -30,9 +30,10 @@ namespace transformations {
class ParityZero7bit : public Transformation {
public:
explicit ParityZero7bit(std::string action);
std::string evaluate(std::string exp,
Transaction *transaction) override;
explicit ParityZero7bit(std::string action) : Transformation(action) { }
std::string evaluate(std::string exp, Transaction *transaction) override;
static bool inplace(unsigned char *input, u_int64_t input_len);
};
} // namespace transformations