Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecAESSTM32 example: fix unmapped RAM region #57

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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