{"post_stream":{"posts":[{"id":5841,"name":"Jack","username":"JSE","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png","created_at":"2021-02-12T17:22:08.635Z","cooked":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eI’ve read that the STM32F415 has a built-in hardware crypto module for AES, and found a limited description of it here: \u003ca href=\"https://rtfm.newae.com/Targets/UFO%20Targets/CW308T-STM32F/#hardware-aes\" rel=\"nofollow noopener\"\u003ehttps://rtfm.newae.com/Targets/UFO%20Targets/CW308T-STM32F/#hardware-aes\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003e“To use the hardware crypto, call HW_AES128_Init() at the beginning of your program. You can update the key with HW_AES128_LoadKey(), encrypt plaintext with HW_AES128_Enc(), and decrypt data with HW_AES128_Dec().”\u003c/p\u003e\n\u003cp\u003eIs there a working example of this available somewhere that someone could point me to that works with the ChipWhisperer?\u003c/p\u003e","post_number":1,"post_type":1,"posts_count":23,"updated_at":"2021-02-12T17:29:03.135Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":317,"reads":39,"readers_count":38,"score":1552.8,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jack","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":2,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"link_counts":[{"url":"https://rtfm.newae.com/Targets/UFO%20Targets/CW308T-STM32F/#hardware-aes","internal":false,"reflection":false,"title":"CW308T-STM32F - NewAE Hardware Product Documentation","clicks":25}],"read":true,"user_title":"","bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":958,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/1","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5842,"name":"Adewar","username":"Alex_Dewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png","created_at":"2021-02-12T17:29:59.126Z","cooked":"\u003cp\u003eYou can just use the typical AES calls with ChipWhisperer, but instead of \u003ccode\u003eCRYPTO_TARGET=TINYAES128C\u003c/code\u003e, use \u003ccode\u003eCRYPTO_TARGET=HWAES\u003c/code\u003e. We actually have a tutorial that does an attack on the STM32F4 HWAES:\u003c/p\u003e\n\u003caside class=\"onebox githubblob\"\u003e\n  \u003cheader class=\"source\"\u003e\n      \u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation.ipynb\" target=\"_blank\" rel=\"noopener\"\u003egithub.com\u003c/a\u003e\n  \u003c/header\u003e\n  \u003carticle class=\"onebox-body\"\u003e\n    \u003ch4\u003e\u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation.ipynb\" target=\"_blank\" rel=\"noopener\"\u003enewaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab 2_2 - CPA on Hardware AES Implementation.ipynb\u003c/a\u003e\u003c/h4\u003e\n\u003cpre\u003e\u003ccode class=\"lang-ipynb\"\u003e{\n \"cells\": [\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"# Topic 2, Part 2 - CPA on Hardware AES Implementation\"\n   ]\n  },\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"---\\n\",\n    \"NOTE: This lab references some (commercial) training material on [ChipWhisperer.io](https://www.ChipWhisperer.io). You can freely execute and use the lab per the open-source license (including using it in your own courses if you distribute similarly), but you must maintain notice about this source location. Consider joining our training course to enjoy the full experience.\\n\",\n    \"\\n\",\n    \"---\"\n   ]\n  },\n  {\n\u003c/code\u003e\u003c/pre\u003e\n\n  This file has been truncated. \u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation.ipynb\" target=\"_blank\" rel=\"noopener\"\u003eshow original\u003c/a\u003e\n\n  \u003c/article\u003e\n  \u003cdiv class=\"onebox-metadata\"\u003e\n    \n    \n  \u003c/div\u003e\n  \u003cdiv style=\"clear: both\"\u003e\u003c/div\u003e\n\u003c/aside\u003e\n\n\u003caside class=\"onebox githubblob\"\u003e\n  \u003cheader class=\"source\"\u003e\n      \u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation%20(HARDWARE).ipynb\" target=\"_blank\" rel=\"noopener\"\u003egithub.com\u003c/a\u003e\n  \u003c/header\u003e\n  \u003carticle class=\"onebox-body\"\u003e\n    \u003ch4\u003e\u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation%20(HARDWARE).ipynb\" target=\"_blank\" rel=\"noopener\"\u003enewaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab 2_2 - CPA on Hardware AES Implementation (HARDWARE).ipynb\u003c/a\u003e\u003c/h4\u003e\n\u003cpre\u003e\u003ccode class=\"lang-ipynb\"\u003e{\n \"cells\": [\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"# Topic 2, Part 2 - CPA on Hardware AES Implementation\"\n   ]\n  },\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"---\\n\",\n    \"NOTE: This lab references some (commercial) training material on [ChipWhisperer.io](https://www.ChipWhisperer.io). You can freely execute and use the lab per the open-source license (including using it in your own courses if you distribute similarly), but you must maintain notice about this source location. Consider joining our training course to enjoy the full experience.\\n\",\n    \"\\n\",\n    \"---\"\n   ]\n  },\n  {\n\u003c/code\u003e\u003c/pre\u003e\n\n  This file has been truncated. \u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation%20(HARDWARE).ipynb\" target=\"_blank\" rel=\"noopener\"\u003eshow original\u003c/a\u003e\n\n  \u003c/article\u003e\n  \u003cdiv class=\"onebox-metadata\"\u003e\n    \n    \n  \u003c/div\u003e\n  \u003cdiv style=\"clear: both\"\u003e\u003c/div\u003e\n\u003c/aside\u003e\n\n\u003cp\u003eAlex\u003c/p\u003e","post_number":2,"post_type":1,"posts_count":23,"updated_at":"2021-02-12T17:29:59.126Z","reply_count":2,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":2,"reads":39,"readers_count":38,"score":27.8,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Adewar","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation.ipynb","internal":false,"reflection":false,"title":"chipwhisperer-jupyter/SOLN_Lab 2_2 - CPA on Hardware AES Implementation.ipynb at master · newaetech/chipwhisperer-jupyter · GitHub","clicks":16},{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation%20(HARDWARE).ipynb","internal":false,"reflection":false,"title":"chipwhisperer-jupyter/Lab 2_2 - CPA on Hardware AES Implementation (HARDWARE).ipynb at master · newaetech/chipwhisperer-jupyter · GitHub","clicks":13}],"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":true,"admin":true,"staff":true,"user_id":512,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/2","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5843,"name":"Jack","username":"JSE","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png","created_at":"2021-02-12T17:38:43.858Z","cooked":"\u003cp\u003eOh awesome. Thank you Alex!\u003c/p\u003e","post_number":3,"post_type":1,"posts_count":23,"updated_at":"2021-02-12T17:38:43.858Z","reply_count":0,"reply_to_post_number":2,"quote_count":0,"incoming_link_count":2,"reads":32,"readers_count":31,"score":16.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jack","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":"","reply_to_user":{"id":512,"username":"Alex_Dewar","name":"Adewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":958,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/3","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5878,"name":"Jack","username":"JSE","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png","created_at":"2021-02-24T20:23:08.456Z","cooked":"\u003cp\u003eHello again. Do you know if this hardware implementation is masked or unmasked? I’d be curious to know if the provided hardware implementation for the CW305 FPGA is as well.\u003c/p\u003e","post_number":4,"post_type":1,"posts_count":23,"updated_at":"2021-02-24T20:23:08.456Z","reply_count":0,"reply_to_post_number":2,"quote_count":0,"incoming_link_count":0,"reads":30,"readers_count":29,"score":6.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jack","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":"","reply_to_user":{"id":512,"username":"Alex_Dewar","name":"Adewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":958,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/4","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5879,"name":"jmichel","username":"jmichel","avatar_template":"/letter_avatar_proxy/v4/letter/j/b3f665/{size}.png","created_at":"2021-02-24T23:08:05.784Z","cooked":"\u003cp\u003eSTM32F415 uses unmasked AES for its hardware accelerator.\u003cbr\u003e\nIf you want a hardware masked AES, you can try the K82F target for example.\u003c/p\u003e","post_number":5,"post_type":1,"posts_count":23,"updated_at":"2021-02-24T23:08:05.784Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":0,"reads":29,"readers_count":28,"score":10.8,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"jmichel","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":"","bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":509,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/5","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5880,"name":"Jack","username":"JSE","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png","created_at":"2021-02-25T00:07:00.438Z","cooked":"\u003cp\u003eOkay great, thank you.\u003c/p\u003e","post_number":6,"post_type":1,"posts_count":23,"updated_at":"2021-02-25T00:07:00.438Z","reply_count":0,"reply_to_post_number":5,"quote_count":0,"incoming_link_count":0,"reads":28,"readers_count":27,"score":5.6,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jack","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":"","reply_to_user":{"id":509,"username":"jmichel","name":"jmichel","avatar_template":"/letter_avatar_proxy/v4/letter/j/b3f665/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":958,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/6","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":5881,"name":"Jean-Pierre Thibault","username":"jpthibault","avatar_template":"/user_avatar/forum.newae.com/jpthibault/{size}/209_2.png","created_at":"2021-02-25T14:48:49.478Z","cooked":"\u003cp\u003eThe example CW305 AES implementation isn’t masked.\u003c/p\u003e","post_number":7,"post_type":1,"posts_count":23,"updated_at":"2021-02-25T14:48:49.478Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":2,"reads":26,"readers_count":25,"score":15.2,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jean-Pierre Thibault","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":true,"admin":false,"staff":true,"user_id":776,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/7","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14877,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-01-31T07:28:17.747Z","cooked":"\u003cp\u003eGood day. I can’t compile the example from this lab, when setting CRYPTO_TARGET = ‘HWAES’ the compiler gives errors. Is it possible to fix this? It seems that the code in the lab repository does not correspond to the code used for compilation.\u003c/p\u003e","post_number":8,"post_type":1,"posts_count":23,"updated_at":"2025-01-31T07:28:17.747Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":1,"reads":10,"readers_count":9,"score":12.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/8","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14881,"name":"Adewar","username":"Alex_Dewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png","created_at":"2025-01-31T14:21:40.575Z","cooked":"\u003cp\u003eWhat error message are you getting? Compilation works fine for me on the latest commit.\u003c/p\u003e","post_number":9,"post_type":1,"posts_count":23,"updated_at":"2025-01-31T14:21:40.575Z","reply_count":1,"reply_to_post_number":8,"quote_count":0,"incoming_link_count":0,"reads":10,"readers_count":9,"score":7.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Adewar","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"id":213,"username":"APK","name":"Ark011","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":true,"admin":true,"staff":true,"user_id":512,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/9","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14883,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-01-31T21:44:03.582Z","cooked":"\u003ch1\u003e\u003ca name=\"p-14883-topic-2-part-2-cpa-on-hardware-aes-implementation-1\" class=\"anchor\" href=\"#p-14883-topic-2-part-2-cpa-on-hardware-aes-implementation-1\" aria-label=\"Heading link\"\u003e\u003c/a\u003eTopic 2, Part 2 - CPA on Hardware AES Implementation\u003c/h1\u003e\n\u003cp\u003eSCOPETYPE = ‘OPENADC’\u003cbr\u003e\nPLATFORM = ‘CW308_STM32F4’\u003cbr\u003e\nCRYPTO_TARGET = ‘HWAES’\u003c/p\u003e\n\u003cp\u003e%%bash -s “$PLATFORM” “$CRYPTO_TARGET”\u003cbr\u003e\ncd ../../../firmware/mcu/simpleserial-aes\u003cbr\u003e\nmake PLATFORM=$1 CRYPTO_TARGET=$2\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eBlockquote .././hal/Makefile.hal:310: *** Missing fw-extra submodule. See \u003ca href=\"https://github.com/newaetech/chipwhisperer-fw-extra\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\"\u003eGitHub - newaetech/chipwhisperer-fw-extra: Firmware files for extra firmware targets\u003c/a\u003e.  Stop.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003chr\u003e\n\u003cp\u003eCalledProcessError                        Traceback (most recent call last)\u003cbr\u003e\nCell In[4], line 1\u003cbr\u003e\n----\u0026gt; 1 get_ipython().run_cell_magic(‘bash’, ‘-s “$PLATFORM” “$CRYPTO_TARGET”’, ‘cd ../../../firmware/mcu/simpleserial-aes\\nmake PLATFORM=$1 CRYPTO_TARGET=$2\\n’)\u003c/p\u003e\n\u003cp\u003eFile B:\\ChipWhisperer5_70_V2\\cw\\home\\portable\\WPy64-31080\\python-3.10.8.amd64\\lib\\site-packages\\IPython\\core\\interactiveshell.py:2422, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)\u003cbr\u003e\n2420 with self.builtin_trap:\u003cbr\u003e\n2421     args = (magic_arg_s, cell)\u003cbr\u003e\n → 2422     result = fn(*args, **kwargs)\u003cbr\u003e\n2423 return result\u003c/p\u003e\n\u003cp\u003eFile B:\\ChipWhisperer5_70_V2\\cw\\home\\portable\\WPy64-31080\\python-3.10.8.amd64\\lib\\site-packages\\IPython\\core\\magics\\script.py:153, in ScriptMagics._make_script_magic..named_script_magic(line, cell)\u003cbr\u003e\n151 else:\u003cbr\u003e\n152     line = script\u003cbr\u003e\n → 153 return self.shebang(line, cell)\u003c/p\u003e\n\u003cp\u003eFile B:\\ChipWhisperer5_70_V2\\cw\\home\\portable\\WPy64-31080\\python-3.10.8.amd64\\lib\\site-packages\\IPython\\core\\magics\\script.py:305, in ScriptMagics.shebang(self, line, cell)\u003cbr\u003e\n300 if args.raise_error and p.returncode != 0:\u003cbr\u003e\n301     # If we get here and p.returncode is still None, we must have\u003cbr\u003e\n302     # killed it but not yet seen its return code. We don’t wait for it,\u003cbr\u003e\n303     # in case it’s stuck in uninterruptible sleep. -9 = SIGKILL\u003cbr\u003e\n304     rc = p.returncode or -9\u003cbr\u003e\n → 305     raise CalledProcessError(rc, cell)\u003c/p\u003e\n\u003cp\u003eCalledProcessError: Command ‘b’cd ../../../firmware/mcu/simpleserial-aes\\nmake PLATFORM=$1 CRYPTO_TARGET=$2\\n’’ returned non-zero exit status 2.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eBlockquote\u003cbr\u003e\nSomething like this.. please note that for some reason it looks in the directory \u003ca href=\"https://github.com/newaetech/chipwhisperer-fw-extra\" class=\"inline-onebox\" rel=\"noopener nofollow ugc\"\u003eGitHub - newaetech/chipwhisperer-fw-extra: Firmware files for extra firmware targets\u003c/a\u003e. to which, naturally, I don’t have access.. approximately the same messages if I try to compile examples from Topic 2, Part 2 - CPA on Hardware AES Implementation\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eBuilding for platform CW308_STM32F4 with CRYPTO_TARGET=HWAES\u003cbr\u003e\n../simpleserial/Makefile.simpleserial:24: *** Invalid SimpleSerial version: HWAES; allowed verions:\u003cbr\u003e\n±--------±-------------+\u003cbr\u003e\n| Version | SS_VER value |\u003cbr\u003e\n±--------±-------------+\u003cbr\u003e\n| V1.0 | SS_VER_1_0 |\u003cbr\u003e\n| V1.1 | SS_VER_1_1 |\u003cbr\u003e\n| V2.1 | SS_VER_2_1 |\u003cbr\u003e\n±--------±-------------+\u003cbr\u003e\n. Stop.\u003c/p\u003e","post_number":10,"post_type":1,"posts_count":23,"updated_at":"2025-01-31T21:44:04.017Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":4,"reads":11,"readers_count":10,"score":22.2,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":2,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/newaetech/chipwhisperer-fw-extra","internal":false,"reflection":false,"title":"GitHub - newaetech/chipwhisperer-fw-extra: Firmware files for extra firmware targets","clicks":0}],"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":"Automatically removed quote of whole previous post.","can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/10","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14884,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-01-31T23:17:13.919Z","cooked":"\u003cp\u003eYes, I also looked and did not find any HWAES defines in the simpleserial-aes.c and simpleserial-aes.cpp files. But it is quite possible that they should not be there.\u003c/p\u003e","post_number":11,"post_type":1,"posts_count":23,"updated_at":"2025-01-31T23:17:13.919Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":0,"reads":10,"readers_count":9,"score":7.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/11","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14890,"name":"Jean-Pierre Thibault","username":"jpthibault","avatar_template":"/user_avatar/forum.newae.com/jpthibault/{size}/209_2.png","created_at":"2025-02-01T21:47:06.864Z","cooked":"\u003cp\u003eThe first error points directly to the problem: you’re missing the \u003ccode\u003echipwhisperer-fw-extra\u003c/code\u003e subm odule.\u003cbr\u003e\nGo to \u003ccode\u003efirmware/mcu/hal/\u003c/code\u003e and run \u003ccode\u003egit submodule update chipwhisperer-fw-extra\u003c/code\u003e.\u003c/p\u003e","post_number":12,"post_type":1,"posts_count":23,"updated_at":"2025-02-01T21:47:06.864Z","reply_count":0,"reply_to_post_number":11,"quote_count":0,"incoming_link_count":3,"reads":10,"readers_count":9,"score":17.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Jean-Pierre Thibault","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"id":213,"username":"APK","name":"Ark011","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":true,"admin":false,"staff":true,"user_id":776,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/12","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14891,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-02T01:09:38.067Z","cooked":"\u003cp\u003eManaged to compile by changing the address of the code location for compilation, here is the line that works:\u003cbr\u003e\n%%bash -s “$PLATFORM” “$CRYPTO_TARGET” “$SS_VER”\u003cbr\u003e\ncd …/…/…/hardware/victims/firmware/simpleserial-aes\u003cbr\u003e\nmake PLATFORM=$1 CRYPTO_TARGET=$2 SS_VER=$3\u003c/p\u003e\n\u003cp\u003eNow we need to understand which leakage model works. Are there any developments on this controller?\u003c/p\u003e","post_number":13,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T01:09:38.067Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":2,"reads":10,"readers_count":9,"score":12.0,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/13","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14892,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-02T06:02:01.243Z","cooked":"\u003cp\u003eNow a huge question has arisen why the input and output data in the project are the same, meaning textins=textouts. The data collection module is organized as follows from the example Lab 2_2 - CPA on Hardware AES Implementation (HARDWARE):\u003cbr\u003e\nproject = cw.create_project(“traces/STM32F4_HW_AES.cwp”, overwrite=True)\u003cbr\u003e\n\u003cspan class=\"hashtag-raw\"\u003e#Capture\u003c/span\u003e Traces\u003cbr\u003e\nfrom tqdm.notebook import trange, trange\u003cbr\u003e\nimport numpy as np\u003cbr\u003e\nimport time\u003c/p\u003e\n\u003cp\u003ektp = cw.ktp.Basic()\u003c/p\u003e\n\u003cp\u003etraces = \u003cspan class=\"chcklst-box fa fa-square-o fa-fw\"\u003e\u003c/span\u003e\u003cbr\u003e\nN = 200000  # Number of traces\u003cbr\u003e\nscope.adc.samples=2000\u003c/p\u003e\n\u003cp\u003escope.gain.db = 32\u003cbr\u003e\nscope.glitch.arm_timing = “no_glitch”\u003c/p\u003e\n\u003cp\u003efor i in trange(N, desc=‘Capturing traces’):\u003cbr\u003e\nkey, text = ktp.next()  # manual creation of a key, text pair can be substituted here\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003etrace = cw.capture_trace(scope, target, text, key)\nif trace is None:\n    continue\nproject.traces.append(trace)\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eprint(scope.adc.trig_count)\u003c/p\u003e","post_number":14,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T06:02:01.243Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":1,"reads":12,"readers_count":11,"score":7.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/14","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14893,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-02T07:25:47.751Z","cooked":"\u003cp\u003eIs there a ready study to get the correct leakage model for Textins? tested HW and HD leakage at the entrance to the first SBOX. Unfortunately, the result is negative.\u003c/p\u003e","post_number":15,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T07:25:47.751Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":0,"reads":12,"readers_count":11,"score":7.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/15","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14897,"name":"Adewar","username":"Alex_Dewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png","created_at":"2025-02-02T19:21:03.699Z","cooked":"\u003cp\u003eHardware implementations of AES will generally only leak good amounts of information as the Hamming distance between the new and old state of its internal register. As such, the SBox output doesn’t work very well against hardware AES.\u003c/p\u003e\n\u003cp\u003eThe lab explains this, but the final two states of the register end up being a good point to run an attack against.\u003c/p\u003e","post_number":16,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T19:21:03.699Z","reply_count":1,"reply_to_post_number":15,"quote_count":0,"incoming_link_count":0,"reads":12,"readers_count":11,"score":7.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Adewar","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"reply_to_user":{"id":213,"username":"APK","name":"Ark011","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png"},"bookmarked":false,"actions_summary":[],"moderator":true,"admin":true,"staff":true,"user_id":512,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/16","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14898,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-02T19:36:56.943Z","cooked":"\u003cp\u003eThen it turns out that the data obtained after encryption is needed. Which is practically impossible to obtain in real devices. Well, I also understand the attack on the last round. By the way, wouldn’t an attack through profiling work on a real device?\u003c/p\u003e","post_number":17,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T19:36:57.218Z","reply_count":1,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":0,"reads":12,"readers_count":11,"score":7.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":2,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":"Automatically removed quote of whole previous post.","can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/17","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14899,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-02T19:42:22.910Z","cooked":"\u003cp\u003eAnd another question… what example of a project should I consider so that I could build these different crypto keys and different input data? Or do I need to write it myself?\u003c/p\u003e","post_number":18,"post_type":1,"posts_count":23,"updated_at":"2025-02-02T19:42:22.910Z","reply_count":0,"reply_to_post_number":null,"quote_count":0,"incoming_link_count":0,"reads":12,"readers_count":11,"score":2.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/18","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14901,"name":"Adewar","username":"Alex_Dewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png","created_at":"2025-02-03T14:59:16.851Z","cooked":"\u003caside class=\"quote no-group\" data-username=\"APK\" data-post=\"17\" data-topic=\"2295\"\u003e\n\u003cdiv class=\"title\"\u003e\n\u003cdiv class=\"quote-controls\"\u003e\u003c/div\u003e\n\u003cimg loading=\"lazy\" alt=\"\" width=\"24\" height=\"24\" src=\"https://forum.newae.com/letter_avatar_proxy/v4/letter/a/f1d935/48.png\" class=\"avatar\"\u003e APK:\u003c/div\u003e\n\u003cblockquote\u003e\n\u003cp\u003eThen it turns out that the data obtained after encryption is needed. Which is practically impossible to obtain in real devices\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/aside\u003e\n\u003cp\u003eI disagree. It does limit the attack, but I can think of many situations where you would have access to the ciphertext and not the plaintext.\u003c/p\u003e\n\u003caside class=\"quote no-group\" data-username=\"APK\" data-post=\"17\" data-topic=\"2295\"\u003e\n\u003cdiv class=\"title\"\u003e\n\u003cdiv class=\"quote-controls\"\u003e\u003c/div\u003e\n\u003cimg loading=\"lazy\" alt=\"\" width=\"24\" height=\"24\" src=\"https://forum.newae.com/letter_avatar_proxy/v4/letter/a/f1d935/48.png\" class=\"avatar\"\u003e APK:\u003c/div\u003e\n\u003cblockquote\u003e\n\u003cp\u003eBy the way, wouldn’t an attack through profiling work on a real device?\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/aside\u003e\n\u003cp\u003eI can see that being the case, considering the information is still there, just very weak. We’ve done attacks against the normal SBox output before, getting a partial key recovery after a few million traces.\u003c/p\u003e\n\u003cp\u003eThere is also a chosen plaintext attack that is quite a bit more complicated, but does allow you to attack across mixcolumns: \u003ca href=\"https://github.com/newaetech/chipwhisperer-jupyter/blob/main/courses/sca201/Lab%202_3%20-%20Attacking%20Across%20MixColumns.ipynb\" class=\"inline-onebox\"\u003echipwhisperer-jupyter/courses/sca201/Lab 2_3 - Attacking Across MixColumns.ipynb at main · newaetech/chipwhisperer-jupyter · GitHub\u003c/a\u003e.\u003c/p\u003e","post_number":19,"post_type":1,"posts_count":23,"updated_at":"2025-02-03T14:59:16.851Z","reply_count":1,"reply_to_post_number":null,"quote_count":1,"incoming_link_count":2,"reads":12,"readers_count":11,"score":17.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Adewar","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"link_counts":[{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/main/courses/sca201/Lab%202_3%20-%20Attacking%20Across%20MixColumns.ipynb","internal":false,"reflection":false,"title":"chipwhisperer-jupyter/courses/sca201/Lab 2_3 - Attacking Across MixColumns.ipynb at main · newaetech/chipwhisperer-jupyter · GitHub","clicks":5}],"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":true,"admin":true,"staff":true,"user_id":512,"hidden":false,"trust_level":4,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/19","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null},{"id":14902,"name":"Ark011","username":"APK","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","created_at":"2025-02-03T16:01:36.062Z","cooked":"\u003caside class=\"quote no-group\" data-username=\"Alex_Dewar\" data-post=\"19\" data-topic=\"2295\"\u003e\n\u003cdiv class=\"title\"\u003e\n\u003cdiv class=\"quote-controls\"\u003e\u003c/div\u003e\n\u003cimg loading=\"lazy\" alt=\"\" width=\"24\" height=\"24\" src=\"https://forum.newae.com/letter_avatar_proxy/v4/letter/a/ea5d25/48.png\" class=\"avatar\"\u003e Alex_Dewar:\u003c/div\u003e\n\u003cblockquote\u003e\n\u003cp\u003eMixColumns\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/aside\u003e\n\u003cp\u003eThank you for your answers. Briefly, what I understood is that a leak through SBOX is possible, but through a MixColumns attack. Or the second option through Template attacks, but it is necessary to perform profiling on several million routes, detect points of interest and there is no guarantee that all the bits will be found. By the way, is there a ready-made example of code for this attack? I saw a PDF file where there was an attack on EFM32 and STM32, but unfortunately they did not contact me, no matter how I asked them to)\u003c/p\u003e","post_number":20,"post_type":1,"posts_count":23,"updated_at":"2025-02-03T16:01:36.062Z","reply_count":1,"reply_to_post_number":null,"quote_count":1,"incoming_link_count":0,"reads":12,"readers_count":11,"score":7.4,"yours":false,"topic_id":2295,"topic_slug":"stm32f415-hardware-crypto","display_username":"Ark011","primary_group_name":null,"flair_name":null,"flair_url":null,"flair_bg_color":null,"flair_color":null,"flair_group_id":null,"badges_granted":[],"version":1,"can_edit":false,"can_delete":false,"can_recover":false,"can_see_hidden_post":false,"can_wiki":false,"read":true,"user_title":null,"bookmarked":false,"actions_summary":[],"moderator":false,"admin":false,"staff":false,"user_id":213,"hidden":false,"trust_level":1,"deleted_at":null,"user_deleted":false,"edit_reason":null,"can_view_edit_history":true,"wiki":false,"post_url":"/t/stm32f415-hardware-crypto/2295/20","reactions":[],"current_user_reaction":null,"reaction_users_count":0,"current_user_used_main_reaction":false,"can_accept_answer":false,"can_unaccept_answer":false,"accepted_answer":false,"topic_accepted_answer":null}],"stream":[5841,5842,5843,5878,5879,5880,5881,14877,14881,14883,14884,14890,14891,14892,14893,14897,14898,14899,14901,14902,14903,14906,14907]},"timeline_lookup":[[1,2090],[4,2077],[8,641],[10,640],[12,639],[16,638],[22,637]],"fancy_title":"STM32F415 Hardware Crypto","id":2295,"title":"STM32F415 Hardware Crypto","posts_count":23,"created_at":"2021-02-12T17:22:08.451Z","views":1598,"reply_count":7,"like_count":0,"last_posted_at":"2025-02-04T15:04:44.102Z","visible":true,"closed":false,"archived":false,"has_summary":false,"archetype":"regular","slug":"stm32f415-hardware-crypto","category_id":9,"word_count":1465,"deleted_at":null,"user_id":958,"featured_link":null,"pinned_globally":false,"pinned_at":null,"pinned_until":null,"image_url":null,"slow_mode_seconds":0,"draft":null,"draft_key":"topic_2295","draft_sequence":null,"unpinned":null,"pinned":false,"current_post_number":1,"highest_post_number":23,"deleted_by":null,"actions_summary":[{"id":4,"count":0,"hidden":false,"can_act":false},{"id":8,"count":0,"hidden":false,"can_act":false},{"id":10,"count":0,"hidden":false,"can_act":false},{"id":7,"count":0,"hidden":false,"can_act":false}],"chunk_size":20,"bookmarked":false,"topic_timer":null,"message_bus_last_id":0,"participant_count":5,"show_read_indicator":false,"thumbnails":null,"slow_mode_enabled_until":null,"tags_disable_ads":false,"summarizable":false,"has_cached_summary":false,"valid_reactions":["heart","+1","laughing","open_mouth","clap","confetti_ball","hugs"],"has_accepted_answer":false,"can_create_shared_issue":false,"shared_issue_visible":false,"discourse_zendesk_plugin_zendesk_id":null,"discourse_zendesk_plugin_zendesk_url":"https://your-url.zendesk.com/agent/tickets/","details":{"can_edit":false,"notification_level":1,"participants":[{"id":213,"username":"APK","name":"Ark011","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png","post_count":11,"primary_group_name":null,"flair_name":null,"flair_url":null,"flair_color":null,"flair_bg_color":null,"flair_group_id":null,"trust_level":1},{"id":512,"username":"Alex_Dewar","name":"Adewar","avatar_template":"/letter_avatar_proxy/v4/letter/a/ea5d25/{size}.png","post_count":5,"primary_group_name":null,"flair_name":null,"flair_url":null,"flair_color":null,"flair_bg_color":null,"flair_group_id":null,"admin":true,"moderator":true,"trust_level":4},{"id":958,"username":"JSE","name":"Jack","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png","post_count":4,"primary_group_name":null,"flair_name":null,"flair_url":null,"flair_color":null,"flair_bg_color":null,"flair_group_id":null,"trust_level":1},{"id":776,"username":"jpthibault","name":"Jean-Pierre Thibault","avatar_template":"/user_avatar/forum.newae.com/jpthibault/{size}/209_2.png","post_count":2,"primary_group_name":null,"flair_name":null,"flair_url":null,"flair_color":null,"flair_bg_color":null,"flair_group_id":null,"moderator":true,"trust_level":4},{"id":509,"username":"jmichel","name":"jmichel","avatar_template":"/letter_avatar_proxy/v4/letter/j/b3f665/{size}.png","post_count":1,"primary_group_name":null,"flair_name":null,"flair_url":null,"flair_color":null,"flair_bg_color":null,"flair_group_id":null,"trust_level":1}],"created_by":{"id":958,"username":"JSE","name":"Jack","avatar_template":"/user_avatar/forum.newae.com/jse/{size}/384_2.png"},"last_poster":{"id":213,"username":"APK","name":"Ark011","avatar_template":"/letter_avatar_proxy/v4/letter/a/f1d935/{size}.png"},"links":[{"url":"https://rtfm.newae.com/Targets/UFO%20Targets/CW308T-STM32F/#hardware-aes","title":"CW308T-STM32F - NewAE Hardware Product Documentation","internal":false,"attachment":false,"reflection":false,"clicks":25,"user_id":958,"domain":"rtfm.newae.com","root_domain":"newae.com"},{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/SOLN_Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation.ipynb","title":"chipwhisperer-jupyter/SOLN_Lab 2_2 - CPA on Hardware AES Implementation.ipynb at master · newaetech/chipwhisperer-jupyter · GitHub","internal":false,"attachment":false,"reflection":false,"clicks":16,"user_id":512,"domain":"github.com","root_domain":"github.com"},{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/master/courses/sca201/Lab%202_2%20-%20CPA%20on%20Hardware%20AES%20Implementation%20(HARDWARE).ipynb","title":"chipwhisperer-jupyter/Lab 2_2 - CPA on Hardware AES Implementation (HARDWARE).ipynb at master · newaetech/chipwhisperer-jupyter · GitHub","internal":false,"attachment":false,"reflection":false,"clicks":13,"user_id":512,"domain":"github.com","root_domain":"github.com"},{"url":"https://github.com/newaetech/chipwhisperer-jupyter/blob/main/courses/sca201/Lab%202_3%20-%20Attacking%20Across%20MixColumns.ipynb","title":"chipwhisperer-jupyter/courses/sca201/Lab 2_3 - Attacking Across MixColumns.ipynb at main · newaetech/chipwhisperer-jupyter · GitHub","internal":false,"attachment":false,"reflection":false,"clicks":5,"user_id":512,"domain":"github.com","root_domain":"github.com"}]},"bookmarks":[]}