<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Data alignment when using mbedtls with i.MX RT1170</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788253#M218665</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP support.&lt;/P&gt;
&lt;P&gt;Regarding your first Q1 you mean you needed to perform changes in order to make work an SDK example?&lt;/P&gt;
&lt;P&gt;On question 2 from my point of view I do not think you missed something.&lt;/P&gt;
&lt;P&gt;I will only add that we have a latest version of the SDK 2.14.0.&lt;/P&gt;
&lt;P&gt;Please let me know if there is anything else where I can help you.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 23:00:29 GMT</pubDate>
    <dc:creator>nxf77486</dc:creator>
    <dc:date>2024-01-12T23:00:29Z</dc:date>
    <item>
      <title>Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1785499#M218485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m currently working on cryptography topic and I have 2 questions related to the use of the mbedtls (SDK 2.13.1) along with the CAAM of i.MX RT1170.&lt;/P&gt;&lt;P&gt;Q1: Basically, I noticed that all CAAM accesses from mbedtls need to be performed from 32 bytes aligned data. This is not performed in SDK 2.13.1 mbedtls so I had to implement some fixes to make things work. Did I miss something ?&lt;/P&gt;&lt;P&gt;Q2: During RSA encryption using PKCS 1.5 padding, mbedtls calls the CAAM random number generation function every time a single random byte needs to be generated. However this process is very long because the CAAM requires 125ms to generate random bytes, no matter the number of bytes to be generated. I could update mbedtls in order to generate directly the number of bytes I need but I would prefer not to change NXP SDK in order to ease further maintainability. Perhaps I missed something there as well ?&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Freddy&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 20:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1785499#M218485</guid>
      <dc:creator>Freddy_</dc:creator>
      <dc:date>2024-01-09T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788253#M218665</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP support.&lt;/P&gt;
&lt;P&gt;Regarding your first Q1 you mean you needed to perform changes in order to make work an SDK example?&lt;/P&gt;
&lt;P&gt;On question 2 from my point of view I do not think you missed something.&lt;/P&gt;
&lt;P&gt;I will only add that we have a latest version of the SDK 2.14.0.&lt;/P&gt;
&lt;P&gt;Please let me know if there is anything else where I can help you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 23:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788253#M218665</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2024-01-12T23:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788329#M218677</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Regarding Q1, indeed I needed to perform some changes in function '&lt;SPAN&gt;mbedtls_rsa_rsaes_oaep_encrypt()'. When '&lt;/SPAN&gt;&lt;SPAN&gt;mbedtls_md(&amp;nbsp;md_info,&amp;nbsp;label,&amp;nbsp;label_len,&amp;nbsp;p&amp;nbsp;)' is called, I needed to make sure 'p' is 32 bytes aligned. I did that using an intermediate static variable and '&lt;/SPAN&gt;&lt;SPAN&gt;__ALIGNED(&lt;/SPAN&gt;&lt;SPAN&gt;32&lt;/SPAN&gt;&lt;SPAN&gt;)' tag. I wonder if this doesn't have something to see with DMA or data cache.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I didn't find any SDK example execising 'mbedtls_rsa_pkcs1_encrypt()' function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regarding Q2, ok with your answer.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 17:30:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788329#M218677</guid>
      <dc:creator>Freddy_</dc:creator>
      <dc:date>2024-01-13T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788924#M218721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It is correct we unfortunately do not have an example where we access the&lt;/P&gt;
&lt;P&gt;mbedtls_rsa_pkcs1_encrypt()', but before continue I think I did not formulated my question properly for query 1.&lt;/P&gt;
&lt;P&gt;So none of the SDK example available for mbedtls are working on the SDK, or is just that this example changes you are performing are exclusively for our software design?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 18:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788924#M218721</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2024-01-15T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788943#M218725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, the changes I made are exclusively related to our software design.&lt;/P&gt;&lt;P&gt;Freddy&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 19:04:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788943#M218725</guid>
      <dc:creator>Freddy_</dc:creator>
      <dc:date>2024-01-15T19:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788972#M218728</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for clarifying this information, so after reviewing the information. The changes you perform ed seem to be fine.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 20:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1788972#M218728</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2024-01-15T20:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data alignment when using mbedtls with i.MX RT1170</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1809223#M219996</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Unfortunately, I'm struggling again using mbedtls with&amp;nbsp;i.MX RT1170. This time, when I sign data with 'security_rsa_pkcs1_sign' and verify the generated signature with 'security_rsa_pkcs1_verify', I get the error&amp;nbsp;MBEDTLS_ERR_RSA_VERIFY_FAILED.&lt;/P&gt;&lt;P&gt;I did the signing and the verification steps in a continuous sequence, so I'm sure to use exactly the same RSA key. An interesting thing is that my signing/verification test works when mbedtls is configured to use PKCS#1 v1.5 but it does not work when mbedtls is configured to use PKCS#1 v2.1. This lets me think the issue related to the use of mbedtls with&amp;nbsp;i.MX RT1170.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:55:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Data-alignment-when-using-mbedtls-with-i-MX-RT1170/m-p/1809223#M219996</guid>
      <dc:creator>Freddy_</dc:creator>
      <dc:date>2024-02-15T15:55:38Z</dc:date>
    </item>
  </channel>
</rss>

