<?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>nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96587/nrf9160-hash-md5-calculation</link><description>I did not find how to manage MD5 calculation. 
 The closiest exapmle is `samples/crypto/sha256` and I have started to play with it. Simple replacement of &amp;quot;alg&amp;quot; parameter from &amp;quot;PSA_ALG_SHA_256&amp;quot; to &amp;quot;PSA_ALG_MD5&amp;quot; in functions psa_hash_compute ( psa_algorithm_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Feb 2023 13:15:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96587/nrf9160-hash-md5-calculation" /><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411976?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 13:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:119ef2af-1141-4e88-a3cf-255d7b5db3b0</guid><dc:creator>ANDRIJ GRABCZAK</dc:creator><description>&lt;p&gt;Defining &amp;quot;MBEDTLS_MD5_C&amp;quot; in Kconfig of my project works, but it is weird and logicless... Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411965?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 12:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72978ad3-7acd-4651-aab7-133093535ec3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Since&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MBEDTLS_MD5_C"&gt;CONFIG_MBEDTLS_MD5_C&lt;/a&gt; has no prompt in its Kconfig, it is &lt;em&gt;not directly user assignable.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;To set these, there are two alternatives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Find a configuration that selects this, and set the other configuration&lt;/li&gt;
&lt;li&gt;Define it in Kconfig in your project.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did the second one in my project. See its Kconfig file.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411964?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 12:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8839075-4653-4369-9bde-46a0c450d5ee</guid><dc:creator>ANDRIJ GRABCZAK</dc:creator><description>&lt;p&gt;Yes, your example is fine. I added the &amp;quot;CONFIG_NORDIC_SECURITY_BACKEND=y&amp;quot; option to the configuration, but my project still does not compile. I compared the resulting configuration files &amp;quot;build/zephyr/.config&amp;quot; and noticed that I did not have the &amp;quot;CONFIG_MBEDTLS_MD5_C=y&amp;quot; option set. However, this option cannot be set manually in the project configuration. Zephyr documentation does not explain how to set this option. How to find out it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411839?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 08:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d8078a-63aa-47b1-b1c5-701f59413b7a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Aha,&lt;/p&gt;
&lt;p&gt;Here is a project calling &lt;a href="https://github.com/nrfconnect/sdk-mbedtls/blob/main/include/mbedtls/md5.h"&gt;mbedtls_md5_init&lt;/a&gt;. This project builds, but I have not tested MD5 operations.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/md5_5F00_build_5F00_example.zip"&gt;devzone.nordicsemi.com/.../md5_5F00_build_5F00_example.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411723?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 15:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d75715-6cab-4396-8f95-59c7de70e4cb</guid><dc:creator>ANDRIJ GRABCZAK</dc:creator><description>&lt;p&gt;I didn&amp;#39;t find how to activate calls to the old api in the given post. Actually my problem is that I am using old api in my big project on sdk version 2.0.2. And when trying to switch to a new SDK, linker errors appears of type: &amp;quot;an undefined reference to &amp;#39;mbedtls_md5_...&amp;#39; .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411592?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 09:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35df6a30-cbbb-493d-a657-33a00579a231</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Our implementation of the PSA Crypto API does not support MD5.&lt;/p&gt;
&lt;p&gt;A warning, remember that MD5 is generally &lt;a href="https://armmbed.github.io/mbed-crypto/html/api/ops/hashes.html#PSA_ALG_MD5"&gt;not recommended&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677145879641v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I suggest using the legacy API if you need to use MD5 with the nRF Connect SDK.&lt;br /&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95814/rsa-example-fails-on-psa_sign_hash-returning--133"&gt;RSA example fails on psa_sign_hash returning -133&lt;/a&gt; for an example of how to do this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411424?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 14:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca3019df-384d-43b5-86ec-3993caaede58</guid><dc:creator>ANDRIJ GRABCZAK</dc:creator><description>&lt;p&gt;No progress, patiently waiting for an answer...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 hash MD5 calculation</title><link>https://devzone.nordicsemi.com/thread/411413?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 14:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8fcd0fd-fbee-435c-ae39-bff98ba8b4ce</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, this case got lost in our system for a while. Sorry about the delay.&lt;br /&gt;However, I will help you now.&lt;/p&gt;
&lt;p&gt;Let me know if you have already had some progress on this case.&lt;/p&gt;
&lt;p&gt;I have been able to reproduce your issue.&lt;/p&gt;
&lt;p&gt;I will check if the MD5 is supported in our PSA Crypto API yet.&lt;br /&gt;Then I will come back tomorrow or Friday with what I have found.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>