<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101755/sample-code-for-tinycrypt-aes-encryption</link><description>I would like to use Tinycrypt library to do AES encryption. Does Nordic provide sample code?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2023 22:46:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101755/sample-code-for-tinycrypt-aes-encryption" /><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/438641?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 22:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:392979e4-b916-4764-80e1-6cbce22a318a</guid><dc:creator>Raoul</dc:creator><description>[quote user="snowuyl"]&lt;p&gt;I encounter another warning message as follows.&lt;/p&gt;
&lt;p&gt;WARNING: Using default MCUBoot key, it should not be used for production.&lt;/p&gt;[/quote]
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If I&amp;#39;m not mistaken, you&amp;#39;ve also created another ticket for this issue. I think you&amp;#39;ll get an answer there. But the answer is what it says in the warning (and in the documentation) - the default MCUboot key should be replaced when you go into production, otherwise every NCS user in the world will know your key.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/438240?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 11:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c4c938-5039-43fc-af4a-0403d28b61b9</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WARNING_5F00_Using_5F00_default_5F00_MCUBoot_5F00_key.txt"&gt;devzone.nordicsemi.com/.../WARNING_5F00_Using_5F00_default_5F00_MCUBoot_5F00_key.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/438239?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 11:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ef1ae1-355a-44a2-b6d0-60aa3c69f81a</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1057.hello_2D00_world.zip"&gt;devzone.nordicsemi.com/.../1057.hello_2D00_world.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/438238?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 11:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a72835-5323-4fcd-aa29-db9d40c9f77f</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;I encounter another warning message as follows.&lt;/p&gt;
&lt;p&gt;WARNING: Using default MCUBoot key, it should not be used for production.&lt;/p&gt;
&lt;p&gt;Procedures to reproduce this issue are as follows.&lt;/p&gt;
&lt;p&gt;1. Unzipping &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1057.hello_2D00_world.zip"&gt;hello-world.zip&lt;/a&gt; to D:\ncs\v2.3.0\bootloader\mcuboot\samples\zephyr\ folder.&lt;/p&gt;
&lt;p&gt;2. cd D:\ncs\v2.3.0\bootloader\mcuboot\samples\zephyr\&lt;/p&gt;
&lt;p&gt;3. west build -b nrf5340dk_nrf5340_cpuapp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/437765?ContentTypeID=1</link><pubDate>Sun, 23 Jul 2023 22:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76f0e9e2-fa61-4a93-bf71-360739e5f690</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Snowuyl,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t had time to look more closely at this, sorry. We are very busy in the summer weeks since we have fewer staff than usual.&lt;/p&gt;
&lt;p&gt;If you still have this issue, I&amp;#39;ll try to take a look at it soon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/437108?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 01:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c0d8482-45a6-455f-a410-ea3353445d48</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6746.warning_5F00_BOOT_5F00_ECDSA_5F00_TINYCRYPT_5F00_was_5F00_selected.txt"&gt;devzone.nordicsemi.com/.../6746.warning_5F00_BOOT_5F00_ECDSA_5F00_TINYCRYPT_5F00_was_5F00_selected.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/437107?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 01:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db97ef1c-412f-452d-8b88-12c092d17936</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6330.mcuboot.conf"&gt;devzone.nordicsemi.com/.../6330.mcuboot.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/437106?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 01:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43850b8f-240a-4ab1-81e3-47fe6d64c008</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I have added the following configuration in D:\ncs\v2.3.0\bootloader\mcuboot\samples\zephyr\hello-world\child_image\&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6330.mcuboot.conf"&gt;mcuboot.conf&lt;/a&gt; file.&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_ECDSA_TINYCRYPT=y&lt;/p&gt;
&lt;p&gt;But west build shows the following warning messages.&lt;/p&gt;
&lt;p&gt;warning: The choice symbol BOOT_ECDSA_TINYCRYPT (defined at&lt;br /&gt;D:/ncs/v2.3.0/bootloader/mcuboot/boot/zephyr/Kconfig:98) was selected (set =y), but no symbol ended&lt;br /&gt;up as the choice selection. See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BOOT_ECDSA_TINYCRYPT"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;BOOT_ECDSA_TINYCRYPT in the menuconfig/guiconfig interface. The Application Development Primer,&lt;br /&gt;Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be&lt;br /&gt;helpful too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/437047?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 13:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fd5b841-a270-48d7-b969-014a16bae4ec</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You usually configure mcuboot by creating &amp;quot;child_image/mcuboot.conf&amp;quot; in your application folder. My colleague describes it well here: &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples#how-to-configure-the-bootloader"&gt;How to configure the bootloader&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alternatively you can assign custom project configurations for the bootloader with&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;-Dmcuboot_CONF_FILE=&amp;lt;filename&amp;gt;.conf&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;as described here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/bootloader_config.html#using-custom-project-configurations"&gt;Using custom project configurations&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you try doing this? Remember to undo your previous CMake change, in that case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436863?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 01:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d1108f7-bfac-4a60-bd70-e0b21b212792</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/no_5F00_log_5F00_messages_5F00_related_5F00_to_5F00_Tinycrypt.txt"&gt;devzone.nordicsemi.com/.../no_5F00_log_5F00_messages_5F00_related_5F00_to_5F00_Tinycrypt.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436862?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 01:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f73abd0-50af-4c4b-bbd4-68e027829dba</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6011.CMakeLists.txt"&gt;devzone.nordicsemi.com/.../6011.CMakeLists.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436861?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 01:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:460dc815-5c0e-458b-8c62-ce2f17ee77dd</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I have added the following setting in D:\ncs\v2.3.0\bootloader\mcuboot\boot\zephyr\&lt;a class="ui-tip filename" title="Download 6011.CMakeLists.txt" href="https://devzone.nordicsemi.com/cfs-filesystemfile/__key/communityserver-discussions-components-files/4/6011.CMakeLists.txt?_=638252407208674615"&gt;CMakeLists.txt&lt;/a&gt;. But west build and west flash doesn&amp;#39;t show any log messages related to Tinycrypt. How can I make sure Tinycrypt is built with MCUboot?&lt;/p&gt;
&lt;p&gt;set(CONFIG_BOOT_ECDSA_TINYCRYPT y)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436783?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 13:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22ace89-fc86-4ef3-a40a-5d9f3c7be516</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/release-notes.html#id16"&gt;this release note&lt;/a&gt;, TinyCrypt has been included in the mcuboot code base, you should be able to enable it via Kconfig.&lt;/p&gt;
&lt;p&gt;I was unable to find reference documentation, but I see mention of the CONFIG_BOOT_USE_TINYCRYPT option here: &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/823fd369c1430b50d263ccd6fbcf98bdd44001ba/boot/zephyr/Kconfig#L28"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/823fd369c1430b50d263ccd6fbcf98bdd44001ba/boot/zephyr/Kconfig#L28&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also see that there is CONFIG_BOOT_ECDSA_TINYCRYPT, discussed in this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99711/bulid-mcuboot-with-tinycrypt-to-support-dfu-image-cipher-encryption"&gt;Bulid MCUBoot with TINYCRYPT to support DFU image cipher/encryption&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Would you mind trying these?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry I can&amp;#39;t dig deeper into this at the moment, we are quite busy during the summer weeks.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436366?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 01:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3db49f9f-ff1f-4978-98ac-6470f4c01996</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your reply! I would like to build MCUboot with TinyCrypt. Could you kindly to provide reference documentation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample code for Tinycrypt AES encryption</title><link>https://devzone.nordicsemi.com/thread/436300?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 14:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:840b0221-1ca3-400b-a9e1-49d6d031ff7e</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Snowuyl,&lt;/p&gt;
&lt;p&gt;As far as I know we don&amp;#39;t have a sample for this, sorry. I do see that there is some test code available for it, which might be useful: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/tests/crypto/tinycrypt/src/sha256.c"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/main/tests/crypto/tinycrypt/src/sha256.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And of course the documentation:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/crypto/tinycrypt.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/crypto/tinycrypt.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If Tinycrypt is not a necessity, then we do have other AES Crypto samples: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/crypto.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/crypto.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>