<?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: openssl &amp; crypto , caam</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642444#M98071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; When using Linux L4.1.15 : the CAAM drivers are accelerated through the CryptoDev interface. Please refer to Chapter 50 [CAAM (Cryptographic Acceleration and Assurance Module)] of “i.MX_Linux_Reference_Manual.pdf” describes CAAM driver options. Section 9 (Security) of “i.MX_Linux_User's_Guide.pdf” shows how to test CAAM driver with openssl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note: If this post answers your question, please click the Correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 05:57:12 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2016-10-18T05:57:12Z</dc:date>
    <item>
      <title>encrypt &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642442#M98069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding-right: 30px;"&gt;Hello,&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;I am a new&amp;nbsp;on the subject of caam with imx6.&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;I saw some questions on this subject, so please excuse me if I might repeat a question which was asked (though I could not find the answer yet).&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;&lt;SPAN&gt;We are dealing with a new project, so we shall use the latest BSP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;1. Encapsulate message from ethernet port #1,&amp;nbsp;&amp;nbsp;Encrypt (AES256\128) data, and send through ethernet port #2&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;&lt;SPAN&gt;2. Decapsulate &lt;/SPAN&gt;&lt;SPAN&gt;message from ethernet port #2&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Dencrypt data, and send through ethernet port #1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;Thank you for any suggestions and link to documentation !&lt;/P&gt;&lt;P style="padding-right: 30px;"&gt;Ran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 05:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642442#M98069</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2016-10-18T05:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: openssl &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642443#M98070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check the reply in &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/436552"&gt;https://community.nxp.com/thread/436552&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 05:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642443#M98070</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-10-18T05:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: openssl &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642444#M98071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; When using Linux L4.1.15 : the CAAM drivers are accelerated through the CryptoDev interface. Please refer to Chapter 50 [CAAM (Cryptographic Acceleration and Assurance Module)] of “i.MX_Linux_Reference_Manual.pdf” describes CAAM driver options. Section 9 (Security) of “i.MX_Linux_User's_Guide.pdf” shows how to test CAAM driver with openssl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Note: If this post answers your question, please click the Correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 05:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642444#M98071</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-10-18T05:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642445#M98072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="direction: ltr;"&gt;Hi,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Thank you for the responses!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Now If I basicly just need&amp;nbsp;to encrypt/decrypt specific messages with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;AES256:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Should I catch messages and use direct call to CAAM according to &lt;SPAN&gt;CAAM driver APIs (such solution must involve&amp;nbsp;a kernel module solution I suppose), or&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;should I use openssl to encrypt/decrypt as done in the following example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://web.mit.edu/sit/Sipb/iadev/doc/SSLeay/ssl-client.c" title="http://web.mit.edu/sit/Sipb/iadev/doc/SSLeay/ssl-client.c"&gt;http://web.mit.edu/sit/Sipb/iadev/doc/SSLeay/ssl-client.c&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thank you for the suggestions,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Ran&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 12:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642445#M98072</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2016-10-18T12:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642446#M98073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="direction: ltr;"&gt;Hi Yuri,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;I think that for packet encrypt/decrypt, I better use cryptodev instead of openssl APIs, Right ?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Does &lt;SPAN&gt;cryptodev &lt;/SPAN&gt;should be used with "AF_ALG" APIs or "/dev/crypto" APIs ?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;I also see that there are many oprtions in cryptodev , see&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;A class="link-titled" href="https://godoc.org/github.com/shanemhansen/gocryptodev" title="https://godoc.org/github.com/shanemhansen/gocryptodev"&gt;gocryptodev - GoDoc&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Does CAAM support all of them ?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;I wonder what is aes 128/256 among these many options.&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Regards,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Ran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 05:45:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642446#M98073</guid>
      <dc:creator>rans</dc:creator>
      <dc:date>2016-10-19T05:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt &amp; crypto , caam</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642447#M98074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, You may use the cryptodev.&lt;/P&gt;&lt;P&gt;Supported options, that should be registered in kernel, are described in&lt;/P&gt;&lt;P&gt;mentioned above &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Chapter 50 &amp;nbsp;of “i.MX_Linux_Reference_Manual.pdf”&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 02:40:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/encrypt-crypto-caam/m-p/642447#M98074</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-10-20T02:40:01Z</dc:date>
    </item>
  </channel>
</rss>

