<?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: aead using sec over af_alg in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1575332#M11551</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Sorry for the delay. here is the update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;##### &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you check if you are setting up the sockaddr_alg structure correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following is one example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;struct sockaddr_alg sa = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_family = AF_ALG,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_type = "aead", /* this selects the symmetric cipher */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_name = "gcm(aes)" /* this is the cipher name */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is that this is a standard Linux interface. We (NXP) can only control the ciphers registered by the SEC driver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, it would be good know which specific algorithm are you trying to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#####&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 01:22:53 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2022-12-29T01:22:53Z</dc:date>
    <item>
      <title>aead using sec over af_alg</title>
      <link>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1563522#M11459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;im working on the lx2160a with the sec engine. I can use the accelerators for hashing and ciphers successfully but I am struggling with use it for AEAD. I'm using the af_alg socket to communicate with the linux crypto api. At the marked position i get the error&lt;EM&gt;&lt;U&gt; invalid Argument&lt;/U&gt;&lt;/EM&gt;. I have no idead what to change, since i followed the documentation fof the kernel for the crypto api user interface.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;TD&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="td71522_0-1669986938772.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202658iD224C4498CAB6286/image-size/large?v=v2&amp;amp;px=999" role="button" title="td71522_0-1669986938772.png" alt="td71522_0-1669986938772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 13:20:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1563522#M11459</guid>
      <dc:creator>td71522</dc:creator>
      <dc:date>2022-12-02T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: aead using sec over af_alg</title>
      <link>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1563525#M11460</link>
      <description>the length in cmsg-&amp;gt;cmsg_len = CMSG_LEN(CMSG_SPACE());&lt;BR /&gt;is meant to be cmsg-&amp;gt;cmsg_len = CMSG_LEN(CMSG_SPACE(sizeof(initVector)));&lt;BR /&gt;idk why its missing&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Dec 2022 13:22:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1563525#M11460</guid>
      <dc:creator>td71522</dc:creator>
      <dc:date>2022-12-02T13:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: aead using sec over af_alg</title>
      <link>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1575332#M11551</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry for the delay. here is the update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;##### &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you check if you are setting up the sockaddr_alg structure correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following is one example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;struct sockaddr_alg sa = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_family = AF_ALG,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_type = "aead", /* this selects the symmetric cipher */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .salg_name = "gcm(aes)" /* this is the cipher name */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is that this is a standard Linux interface. We (NXP) can only control the ciphers registered by the SEC driver. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, it would be good know which specific algorithm are you trying to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#####&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 01:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1575332#M11551</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-12-29T01:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: aead using sec over af_alg</title>
      <link>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1579061#M11636</link>
      <description>Thanks for the reply, i had an mistake in configuring the sec. I was able to fix the mistake and everything is working fine now.</description>
      <pubDate>Mon, 09 Jan 2023 07:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/aead-using-sec-over-af-alg/m-p/1579061#M11636</guid>
      <dc:creator>td71522</dc:creator>
      <dc:date>2023-01-09T07:28:02Z</dc:date>
    </item>
  </channel>
</rss>

