<?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: How to use encrypt and decode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987110#M5747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the RAM_KEY can be exported if it was loaded as a plaintext (command CMD_EXPORT_RAM_KEY). A key loaded by the secure protocol may not be exported.&lt;/P&gt;&lt;P&gt;There’s a function EXPORT_RAM_KEY() in the AN5401SW zip package. You can find it in file CSEc_functions.h which is included in all projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the reference manual:&lt;/P&gt;&lt;P&gt;“36.5.13.15 CMD_EXPORT_RAM_KEY&lt;/P&gt;&lt;P&gt;The Export RAM Key command exports the RAM_KEY into a format protected by the&lt;/P&gt;&lt;P&gt;SECRET_KEY. The key may be imported again by using the CMD_LOAD_KEY&lt;/P&gt;&lt;P&gt;command.&lt;/P&gt;&lt;P&gt;A RAM_KEY can only be exported if it was written as plain text, i.e., by&lt;/P&gt;&lt;P&gt;CMD_LOAD_PLAIN_KEY.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding second question, please take a look at section "4.4.4 Updating Code and resulting BOOT_MAC" in AN5401.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2019 09:12:49 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-12-11T09:12:49Z</dc:date>
    <item>
      <title>How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987105#M5742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp; About cesc， how to connfig mcu to&amp;nbsp;encrypt and decode for&amp;nbsp; can communication or uart?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; whether can config can encrypt&amp;nbsp; , uart not .&amp;nbsp; and in cesc what's function of random data ?&lt;/P&gt;&lt;P&gt;3. how to use jink download code to my board with disign stdio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wish your reply , thanks a&amp;nbsp; lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 03:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987105#M5742</guid>
      <dc:creator>814420552</dc:creator>
      <dc:date>2019-11-29T03:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987106#M5743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there's following application note including SW examples which should answer a lot of questions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401"&gt;https://www.nxp.com/webapp/Download?colCode=AN5401&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=AN5401SW&amp;amp;docLang=en"&gt;https://www.nxp.com/webapp/Download?colCode=AN5401SW&amp;amp;docLang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also SW example in SDK:&lt;/P&gt;&lt;P&gt;c:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K1xx_RTM_3.0.0\examples\S32K144\demo_apps\flexcan_encrypted\&lt;/P&gt;&lt;P&gt;See the description here:&lt;/P&gt;&lt;P&gt;&lt;A&gt;file:///C:/NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K144/flexcan_encrypted_s32k144_group.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Notice that the part needs to be configured by:&lt;/P&gt;&lt;P&gt;c:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K1xx_RTM_3.0.0\examples\S32K144\driver_examples\system\csec_keyconfig\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 12:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987106#M5743</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-11-29T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987107#M5744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The example &lt;STRONG&gt;“3_Basic_operations”&lt;/STRONG&gt; in AN5401SW has no configures part for keys,&amp;nbsp; why has no init step?&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My ECU is s32k146 ,when run the example 1_Configure_part_and_Load_keys , the result M4_out&amp;nbsp; is always 0, and the processor in s32 design studio display as following,how to change it with s32k146, or whether has examples run in s32k146,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/95702i1E9B843AD9A4C1D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Whether can I get the key’s value(128 bit)&amp;nbsp; by CMD_LOAD_KEY&lt;SPAN&gt;？&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Above those examples&lt;SPAN&gt;， &lt;/SPAN&gt;for example 4_secure_boot_and BOOT_MAC , in step2 &amp;nbsp;is M4_OUT BOOT_MAC_KEY&amp;nbsp; value? &amp;nbsp;And M4?&amp;nbsp; But when this example run in s32k146 M4_OUT is always = 0, why?&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-left: 18.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;Wish your help, thanks a lot&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 02:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987107#M5744</guid>
      <dc:creator>814420552</dc:creator>
      <dc:date>2019-12-06T02:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987108#M5745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Partitioning and key configuration is supposed to be done only once - in factory. So, there's no this initialization in other projects.&lt;/P&gt;&lt;P&gt;2. The best way is to create new project and copy the code there. If you use SDK, you can also use CSEc drivers which are included in SDK.&lt;/P&gt;&lt;P&gt;3. I'm not sure if I can understand this question. Project "1_Configure_part_and_Load_keys" shows how to do partitioning and how to load the keys and project "2_Update_user_keys"&amp;nbsp; shows how to update the keys if necessary.&lt;/P&gt;&lt;P&gt;4. I'm getting correct values. It looks like your device is not configured properly. Try to reset the device to factory state using project 5 and then use project 1 before running project 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987108#M5745</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-12-09T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987109#M5746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello，&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if someone update key_1, whether&amp;nbsp; can I get the Key_1's value (128bits) with Debug&amp;nbsp; or&amp;nbsp; print the 128 bits data with uart?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anther question,&amp;nbsp; use CMD_DEFINE to define the security boot,&amp;nbsp; reset mcu then save the boot_mac,&amp;nbsp; if&amp;nbsp; i update the boot code ,&amp;nbsp; at this time how to update the BOO_MAC's value automatic?&lt;/P&gt;&lt;P&gt;I think&amp;nbsp; security boot must be disabled with code update the MAC_BOOT'value, else will boot fail always?&amp;nbsp; &amp;nbsp; if my understanding is right, how to disable the securoty boot or have anther mechanism？&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wish your help&amp;nbsp; ,thanks&amp;nbsp; a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987109#M5746</guid>
      <dc:creator>814420552</dc:creator>
      <dc:date>2019-12-09T08:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use encrypt and decode</title>
      <link>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987110#M5747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the RAM_KEY can be exported if it was loaded as a plaintext (command CMD_EXPORT_RAM_KEY). A key loaded by the secure protocol may not be exported.&lt;/P&gt;&lt;P&gt;There’s a function EXPORT_RAM_KEY() in the AN5401SW zip package. You can find it in file CSEc_functions.h which is included in all projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the reference manual:&lt;/P&gt;&lt;P&gt;“36.5.13.15 CMD_EXPORT_RAM_KEY&lt;/P&gt;&lt;P&gt;The Export RAM Key command exports the RAM_KEY into a format protected by the&lt;/P&gt;&lt;P&gt;SECRET_KEY. The key may be imported again by using the CMD_LOAD_KEY&lt;/P&gt;&lt;P&gt;command.&lt;/P&gt;&lt;P&gt;A RAM_KEY can only be exported if it was written as plain text, i.e., by&lt;/P&gt;&lt;P&gt;CMD_LOAD_PLAIN_KEY.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding second question, please take a look at section "4.4.4 Updating Code and resulting BOOT_MAC" in AN5401.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-use-encrypt-and-decode/m-p/987110#M5747</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-12-11T09:12:49Z</dc:date>
    </item>
  </channel>
</rss>

