Skip to content

Commit

Permalink
fix unmapped RAM region
Browse files Browse the repository at this point in the history
  • Loading branch information
yhql committed Nov 15, 2023
1 parent ba656a6 commit 588973d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/SecAESSTM32/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from binascii import hexlify
from rainbow import TraceConfig, HammingWeight, Print
from Crypto.Cipher import AES
from rainbow.generics import rainbow_arm
from rainbow.devices import rainbow_stm32f215


def f_aes(e, key, input_):
Expand All @@ -36,7 +36,7 @@ def f_aes(e, key, input_):
e[input_p] = input_
e['r3'] = input_p

# output
# output
output_p = 0xdead0000
e[output_p] = 0
# ARM calling convention : 4th+ parameter is on stack
Expand All @@ -59,7 +59,7 @@ def f_aes(e, key, input_):


if __name__ == "__main__":
e = rainbow_arm(print_config=Print.Code | Print.Functions, trace_config=TraceConfig(register=HammingWeight()))
e = rainbow_stm32f215(print_config=Print.Functions, trace_config=TraceConfig(register=HammingWeight()))
e.load('firmware.elf')
e.setup()

Expand Down

0 comments on commit 588973d

Please sign in to comment.