<?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>Secure AuthenticationのトピックSetting AES-GCM Authentication Tag Length to 12 Bytes for DLMS with SE050E2</title>
    <link>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2150265#M1864</link>
    <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I am currently using the SE050E2 secure element for AES-GCM encryption and decryption operations. The encryption and decryption APIs work well, specifically the following function:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;STRONG&gt;sss_status_t sss_aead_one_go( sss_aead_t *context, const uint8_t *srcData, uint8_t *destData, size_t size, uint8_t *nonce, size_t nonceLen, const uint8_t *aad, size_t aadLen, uint8_t *tag, size_t *tagLen);&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;This API functions perfectly when the authentication tag length is 16 bytes. However, I am working with DLMS protocol payloads that require the authentication tag to be only 12 bytes in length.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;When I use this API to encrypt DLMS plain data, it generates an authentication tag of 16 bytes, but the DLMS standard expects a 12-byte tag. Similarly, for decryption, when the encrypted DLMS payload arrives with a 12-byte authentication tag, passing this 12-byte tag to the API results in a decryption failure, because the API expects the tag to be 16 bytes.&lt;/P&gt;&lt;P class=""&gt;My question is:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there any way to configure or set the authentication tag length in the SE050E2 or its middleware so it can use a 12-byte tag as required by the DLMS standard?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Currently, the API always returns a 16-byte tag after encryption, and requires a 16-byte tag for decryption. I want to ensure compatibility with DLMS devices that use 12-byte tags without causing decryption errors.&lt;/P&gt;&lt;P class=""&gt;Any guidance on configuring AES-GCM tag length for SE050E2, or recommended approaches for handling this DLMS tag size mismatch, would be highly appreciated.&lt;/P&gt;&lt;P class=""&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Faizy&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 18:06:53 GMT</pubDate>
    <dc:creator>Faizy98</dc:creator>
    <dc:date>2025-08-11T18:06:53Z</dc:date>
    <item>
      <title>Setting AES-GCM Authentication Tag Length to 12 Bytes for DLMS with SE050E2</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2150265#M1864</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;I am currently using the SE050E2 secure element for AES-GCM encryption and decryption operations. The encryption and decryption APIs work well, specifically the following function:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;STRONG&gt;sss_status_t sss_aead_one_go( sss_aead_t *context, const uint8_t *srcData, uint8_t *destData, size_t size, uint8_t *nonce, size_t nonceLen, const uint8_t *aad, size_t aadLen, uint8_t *tag, size_t *tagLen);&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;This API functions perfectly when the authentication tag length is 16 bytes. However, I am working with DLMS protocol payloads that require the authentication tag to be only 12 bytes in length.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;When I use this API to encrypt DLMS plain data, it generates an authentication tag of 16 bytes, but the DLMS standard expects a 12-byte tag. Similarly, for decryption, when the encrypted DLMS payload arrives with a 12-byte authentication tag, passing this 12-byte tag to the API results in a decryption failure, because the API expects the tag to be 16 bytes.&lt;/P&gt;&lt;P class=""&gt;My question is:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Is there any way to configure or set the authentication tag length in the SE050E2 or its middleware so it can use a 12-byte tag as required by the DLMS standard?&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Currently, the API always returns a 16-byte tag after encryption, and requires a 16-byte tag for decryption. I want to ensure compatibility with DLMS devices that use 12-byte tags without causing decryption errors.&lt;/P&gt;&lt;P class=""&gt;Any guidance on configuring AES-GCM tag length for SE050E2, or recommended approaches for handling this DLMS tag size mismatch, would be highly appreciated.&lt;/P&gt;&lt;P class=""&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Faizy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 18:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2150265#M1864</guid>
      <dc:creator>Faizy98</dc:creator>
      <dc:date>2025-08-11T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting AES-GCM Authentication Tag Length to 12 Bytes for DLMS with SE050E2</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2152249#M1865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253702"&gt;@Faizy98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is defined when you create the key for AEAD operation. please kindly refer to the following for details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_1-1755162576795.png" style="width: 569px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352423iF3080388BF9D9892/image-dimensions/569x498?v=v2" width="569" height="498" role="button" title="Kan_Li_1-1755162576795.png" alt="Kan_Li_1-1755162576795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 09:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2152249#M1865</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2025-08-14T09:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting AES-GCM Authentication Tag Length to 12 Bytes for DLMS with SE050E2</title>
      <link>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2152408#M1866</link>
      <description>&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Faizy&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 14:23:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Secure-Authentication/Setting-AES-GCM-Authentication-Tag-Length-to-12-Bytes-for-DLMS/m-p/2152408#M1866</guid>
      <dc:creator>Faizy98</dc:creator>
      <dc:date>2025-08-14T14:23:34Z</dc:date>
    </item>
  </channel>
</rss>

