From 017d9eaa188b6edc7ac5e8220db0fff8b566e726 Mon Sep 17 00:00:00 2001 From: yhql Date: Wed, 15 Nov 2023 09:58:47 +0100 Subject: [PATCH] fix unmapped RAM region --- examples/SecAESSTM32/go.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/SecAESSTM32/go.py b/examples/SecAESSTM32/go.py index dafa02f..37f78a4 100755 --- a/examples/SecAESSTM32/go.py +++ b/examples/SecAESSTM32/go.py @@ -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_): @@ -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 @@ -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()