Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Side by Side Diff: syzygy/experimental/protect/protect_lib/equation_gen.h

Issue 2535563002: Added all code for integrity check transform (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifndef SYZYGY_PROTECT_PROTECT_LIB_EQUATION_GEN_H_
2 #define SYZYGY_PROTECT_PROTECT_LIB_EQUATION_GEN_H_
3
4 #include <vector>
5
6 #include "syzygy/assm/assembler.h"
7 #include "syzygy/assm/assembler_base.h"
8 #include "syzygy/block_graph/basic_block_subgraph.h"
9 #include "syzygy/block_graph/basic_block_assembler.h"
10
11 class Equation {
12 public:
13 // Maximum of 2 unknown variables
14 std::vector<int> x_exp;
15 std::vector<int> x_coef;
16 std::vector<int> y_exp;
17 std::vector<int> y_coef;
18
19 Equation(std::vector<int> x_exp, std::vector<int> x_coef,
20 std::vector<int> y_exp, std::vector<int> y_coef) :
21 x_exp(x_exp), x_coef(x_coef), y_exp(y_exp), y_coef(y_coef) {};
22
23 assm::ConditionCode Generate(block_graph::BasicBlockAssembler &assm,
24 std::vector<assm::Register32> &temp_regs,
25 std::vector<assm::Reg ister32> &source_regs);
26 };
27
28 #endif // SYZYGY_PROTECT_PROTECT_LIB_EQUATION_CHECKER_H_
OLDNEW
« no previous file with comments | « syzygy/experimental/protect/protect_lib/code_randomizer.cc ('k') | syzygy/experimental/protect/protect_lib/equation_gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698