Skip to content

Commit

Permalink
Import regs_hw_sum_trace outside of sca_code_trace
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-ledger committed Apr 7, 2022
1 parent 1ea9815 commit 533c119
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rainbow/rainbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
from pygments.formatters import TerminalFormatter as formatter
from pygments.lexers import NasmLexer

from rainbow.color_functions import color
from rainbow.loaders import load_selector
from .color_functions import color
from .loaders import load_selector
from .tracers import regs_hw_sum_trace


class HookWeakMethod:
Expand Down Expand Up @@ -362,10 +363,9 @@ def print_asmline(self, adr, ins, op_str):
)
print("\n" + color("YELLOW", f"{adr:8X} ") + line, end=";")

def sca_code_trace(self, uci, address, size, data):
from .tracers import regs_hw_sum_trace
def sca_code_trace(self, _uci, address, size, data):
regs_hw_sum_trace(self, address, size, data)

def sca_code_traceHD(self, uci, address, size, data):
"""
Hook that traces modified register values in side-channel mode.
Expand Down

0 comments on commit 533c119

Please sign in to comment.