<?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 RT Crossover MCUsのトピックRe: How can I create encrypted data for i.MX-RT 1050's BEE ?</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879585#M2411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;Shinya Kondo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the project of encrypted data with MCUXpresso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nhan Nguyen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2019 09:05:54 GMT</pubDate>
    <dc:creator>ng_h_nhan0207</dc:creator>
    <dc:date>2019-08-05T09:05:54Z</dc:date>
    <item>
      <title>How can I create encrypted data for i.MX-RT 1050's BEE ?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879582#M2408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I create encrypted data for i.MX-RT 1050's BEE ?&lt;BR /&gt;I tried to create it using openssl, but I can not decode it successfully with BEE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin-left: 18.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #1f497d;"&gt;$ openssl enc -e -aes-128-ctr -iv 0 –K 010203040506070809000A0B0C0D0E0F -nosalt -in TEST.BIN -out TEST_ENC.BIN&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-left: 18.0pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: #1f497d;"&gt;&amp;nbsp;write TEST_ENC.BIN to QSPI serial flash rom at target board ( offset: 0x00030000, abs address 0x60030000 )&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px; "&gt;// use fsl_bee.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px; "&gt;#include "fsl_bee.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define FLEXSPI_START_ADDR 0x60030000U&lt;/P&gt;&lt;P&gt;#define BEE_USE_USER_KEY 1&lt;/P&gt;&lt;P&gt;#define REG0_START_ADDR_GPR GPR18&lt;BR /&gt;#define REG0_END_ADDR_GPR GPR19&lt;BR /&gt;#define REG0_DECRYPT_EN_GPR GPR11&lt;BR /&gt;#define REG0_DECRYPT_EN IOMUXC_GPR_GPR11_BEE_DE_RX_EN(1)&lt;/P&gt;&lt;P&gt;#define AES_KEY_LEN 16&lt;/P&gt;&lt;P&gt;#define AES_NONCE_LEN 16&lt;/P&gt;&lt;P&gt;#define BEE_REGION_SIZE 0x1000U&lt;/P&gt;&lt;P&gt;static const uint8_t aesKey[] = {0x0F, 0x0E, 0x0D, 0x0C, 0x0B, 0x0A, 0x00, 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01};&lt;/P&gt;&lt;P&gt;static const uint8_t aesNonce[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void TestBee()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; bee_region_config_t beeConfig;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;IOMUXC_GPR_Type *iomuxc = IOMUXC_GPR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_Init(BEE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_GetDefaultConfig(&amp;amp;beeConfig);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;beeConfig.region0Mode = kBEE_AesCtrMode;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;beeConfig.region1Bot = 0U;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;beeConfig.region1Top = 0U;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;iomuxc-&amp;gt;REG0_START_ADDR_GPR = FLEXSPI_START_ADDR;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;iomuxc-&amp;gt;REG0_END_ADDR_GPR = FLEXSPI_START_ADDR + BEE_REGION_SIZE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iomuxc-&amp;gt;REG0_DECRYPT_EN_GPR = REG0_DECRYPT_EN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_SetConfig(BEE, &amp;amp;beeConfig);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_SetRegionKey(BEE, kBEE_Region0, aesKey, AES_KEY_LEN);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_SetRegionNonce(BEE, kBEE_Region0, aesNonce, AES_NONCE_LEN);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_Enable(BEE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// dump 0x60030000 -&amp;gt; NG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;BEE_Deinit(BEE);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 08:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879582#M2408</guid>
      <dc:creator>shinyakondo</dc:creator>
      <dc:date>2019-02-01T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create encrypted data for i.MX-RT 1050's BEE ?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879583#M2409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shinya Kondo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SDK you can find an example of the Bus Encryption Engine (BEE). I recommend you checking this example and use it as a base for your project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_790.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71942i1C97AD17101B0E48/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_790.png" alt="pastedImage_790.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can download the SDK from the following &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879583#M2409</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-02-11T23:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create encrypted data for i.MX-RT 1050's BEE ?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879584#M2410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We solved the problem by setting as follows.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;openssl's iv&lt;UL&gt;&lt;LI&gt;bit 128:32 is unique value&lt;/LI&gt;&lt;LI&gt;bit 31:0 is top address &amp;gt;&amp;gt; 4&lt;/LI&gt;&lt;LI&gt;ex.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;nonce&amp;nbsp;unique value: 1234567890ABCDEF01020304&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crypt top address: &lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;0x60030000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iv:&amp;nbsp; &amp;nbsp; &amp;nbsp;1234567890ABCDEF0102030406003000&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aesKey:&amp;nbsp;&lt;SPAN style="color: #1f497d; background-color: #ffffff;"&gt;010203040506070809000A0B0C0D0E0F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;$ openssl enc -e -aes-128-ctr -nopad -nosalt -K 010203040506070809000A0B0C0D0E0F&amp;nbsp;-iv 1234567890ABCDEF0102030406003000&amp;nbsp;&lt;SPAN style="color: #1f497d; background-color: #ffffff;"&gt;-in TEST.BIN -out TEST_ENC.BIN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;need endianSwapEn option&lt;/LI&gt;&lt;/UL&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;beeConfig.endianSwapEn = kBEE_EndianSwapEnabled;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;Bit 32: 0 of BEE_SetRegionNonce() 's aesNonce needs to set 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6; font-family: terminal, monaco, monospace;"&gt;static const uint8_t aesNonce[] = {0x00, 0x00, 0x00, 0x00, 0x04, 0x03, 0x02, 0x01, 0xEF, 0xCD, 0xAB, 0x90, 0x78, 0x56, 0x34, 0x12};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 02:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879584#M2410</guid>
      <dc:creator>shinyakondo</dc:creator>
      <dc:date>2019-02-15T02:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create encrypted data for i.MX-RT 1050's BEE ?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879585#M2411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;Shinya Kondo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the project of encrypted data with MCUXpresso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nhan Nguyen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 09:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-can-I-create-encrypted-data-for-i-MX-RT-1050-s-BEE/m-p/879585#M2411</guid>
      <dc:creator>ng_h_nhan0207</dc:creator>
      <dc:date>2019-08-05T09:05:54Z</dc:date>
    </item>
  </channel>
</rss>

