<?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>topic Re: OTFAD encryption in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1575941#M23138</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/40101"&gt;@jay_heng&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is there any luck on my query regarding otfad encrytion?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathishkumar K&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 05:21:45 GMT</pubDate>
    <dc:creator>sathishkumar-rk</dc:creator>
    <dc:date>2023-01-02T05:21:45Z</dc:date>
    <item>
      <title>OTFAD encryption</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1563464#M22756</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I'm using i.MXRT1160_EVK board for my sample development work, where I want to enable the XiP encryption with OTFAD module.&lt;/P&gt;&lt;P&gt;My work plan is create the bootloader which will execute the slot-0 application. if any update image is available in slot-1 it has to swap the image between slots and execute content.&lt;/P&gt;&lt;P&gt;I'm using zephyr and mcuboot code for my project work. Can able to encrypt the mcuboot and slot-0 application and run it successfully!!&lt;/P&gt;&lt;TABLE class="lia-align-center" border="1" width="30%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;MCUBOOT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;Slot-0 (application)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;Slot-1 (upgradable image)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem i'm facing is when create encrypted upgraded image it was not able to decrypt correctly.&lt;/P&gt;&lt;P&gt;I assume OTFAD decryption is having flash location dependent. If i prepare image for slot-0 location and flash it directly to that location it's working.&lt;/P&gt;&lt;P&gt;In-case, if i do prepare image for slot-0 and flash it on slot-1 location then moving to slot-0 location and then execute it's getting failed. So, OTFAD will decrypt the content in the content remains same on same location else it will not decrypt properly?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is that my assumption correct or am i missing something here?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;commands used for creating encrypted binaries:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCUboot:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;iimage_enc.exe ifile=.\bootloader.signed.bin ofile=bootloader_enc.bin base_addr=0x30001000 kek=DAD4561645792590D5946289F043BECD otfad_arg=[0123456789abcdeffedcba9876543210,0020406001030507,0x30001000,0x0001F000],[383D4385A925D2EE734843817589F955,0020406001030508,0x30020000,0x002FE000]otfad_ctx_lock=0,0,0,0 is_boot_image=0 hw_eng=otfad&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Slot-0:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;image_enc.exe ifile=.\zephyr.signed.bin ofile=image1_enc.bin base_addr=0x30020000 kek=DAD4561645792590D5946289F043BECD otfad_arg="[383D4385A925D2EE734843817589F955,0020406001030508,0x30020000,0x02fe000]" is_boot_image=0 hw_eng=otfad&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Slot-1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;image_enc.exe ifile=.\zephyr.signed.bin ofile=image2_enc.bin base_addr=0x30020000 kek=DAD4561645792590D5946289F043BECD otfad_arg="[383D4385A925D2EE734843817589F955,0020406001030508,0x30020000,0x02fe000]" is_boot_image=0 hw_eng=otfad&lt;/P&gt;&lt;P&gt;Let me if any further information is required.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sathishkumar K&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 11:42:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1563464#M22756</guid>
      <dc:creator>sathishkumar-rk</dc:creator>
      <dc:date>2022-12-02T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: OTFAD encryption</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1563882#M22768</link>
      <description>&lt;P&gt;Have you tried to debug bootloader project to see what solt-1 image data is after swapping? Let's see it is swap issue or OTFAD decrypted issue.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 11:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1563882#M22768</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2022-12-04T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: OTFAD encryption</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1565945#M22856</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/40101"&gt;@jay_heng&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have a observation on execution, if I used didn't swap the content between slots, then it able to execute.&lt;/P&gt;&lt;P&gt;Questions:&lt;BR /&gt;1. Is OTFAD has location dependency? because if do same content with different flash location the otfad keyblob is different.&lt;/P&gt;&lt;P&gt;2. While do swapping which content is getting swapped is encrypted text or plain text?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sathishkumar K&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 07:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1565945#M22856</guid>
      <dc:creator>sathishkumar-rk</dc:creator>
      <dc:date>2022-12-28T07:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: OTFAD encryption</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1575941#M23138</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/40101"&gt;@jay_heng&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Is there any luck on my query regarding otfad encrytion?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathishkumar K&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 05:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/OTFAD-encryption/m-p/1575941#M23138</guid>
      <dc:creator>sathishkumar-rk</dc:creator>
      <dc:date>2023-01-02T05:21:45Z</dc:date>
    </item>
  </channel>
</rss>

