Skip to content

Commit

Permalink
Parse SHA-256 instructions in rom.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Nov 23, 2023
1 parent ef6e2b9 commit 5d70c3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main_sm/fork_7/main/rom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ void Rom::loadProgram(Goldilocks &fr, json &romJson)
if (l["hashP1"].is_number_integer()) line[i].hashP1 = l["hashP1"]; else line[i].hashP1 = 0;
if (l["hashPLen"].is_number_integer()) line[i].hashPLen = l["hashPLen"]; else line[i].hashPLen = 0;
if (l["hashPDigest"].is_number_integer()) line[i].hashPDigest = l["hashPDigest"]; else line[i].hashPDigest = 0;
if (l["hashS"].is_number_integer()) line[i].hashS = l["hashS"]; else line[i].hashS = 0;
if (l["hashS1"].is_number_integer()) line[i].hashS1 = l["hashS1"]; else line[i].hashS1 = 0;
if (l["hashSLen"].is_number_integer()) line[i].hashSLen = l["hashSLen"]; else line[i].hashSLen = 0;
if (l["hashSDigest"].is_number_integer()) line[i].hashSDigest = l["hashSDigest"]; else line[i].hashSDigest = 0;

if (l["JMP"].is_number_integer()) line[i].JMP = l["JMP"]; else line[i].JMP = 0;
if (l["JMPC"].is_number_integer()) line[i].JMPC = l["JMPC"]; else line[i].JMPC = 0;
Expand Down

0 comments on commit 5d70c3a

Please sign in to comment.