2412274_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2412274_en-US

2412274_en-US

Question about GCM IV Length Support in HSE FW 2.40.0 and 2.55.0

Hello,

I have a question regarding the GCM operation of the HSE on the S32K358.

In the AEAD service description of the HSE Service API Reference Manual, both HSE FW 2.40.0 and 2.55.0 specify the following for GCM:

GCM: 1 <= ivLength <= 2^32-1. Recommended 12 bytes or greater.

However, the HSE FW 2.40.0 manual contains the following additional note, which is not present in the HSE FW 2.55.0 manual:

In GCM operations, it is recommended to use IV values of exactly 12 bytes. For any IV size different from 12 bytes, the authentication tag generated by the GCM encryption operation might not be correct. In GCM decryption operations, the authentication check might fail.

In this regard, I would like to clarify the following:

1. Can GCM operations be used normally in HSE FW 2.40.0 when the IV length is not 12 bytes?
2. Is there any behavioral difference in GCM operations between HSE FW 2.40.0 and 2.55.0 when using an IV length other than 12 bytes?
3. Is there any difference in the reliability of GCM operations between HSE FW 2.40.0 and 2.55.0 when using an IV length other than 12 bytes?

In our tests, GCM encryption and decryption were performed successfully even when the IV length was not 12 bytes, and the authentication results were also correct.

Therefore, I would like to confirm whether using an IV length other than 12 bytes is fully supported in HSE FW 2.40.0, and whether there is any functional difference compared to using HSE FW 2.55.0 in this case.

Thank you for your clarification.

Re: Question about GCM IV Length Support in HSE FW 2.40.0 and 2.55.0

Hi @wodudwo 

Technically, ivLength can be configured with a different length; however, doing so is not recommended because the behavior is not guaranteed to be reliable. As you correctly pointed out, the documentation states that for GCM decryption operations, the authentication check may fail when IV lengths other than 12 bytes are used.

While your test may have passed using a different IV length, this does not guarantee that the operation will always succeed. In other words, a successful result in a particular test case should not be interpreted as an indication that the configuration is fully supported or will work consistently in all scenarios. 

Additionally, if you review the release notes for both firmware versions, you will find that the List of Limitations includes the same recommendation: use IV values of exactly 12 bytes.

Although the note was removed from the HSE Service API Reference Manual starting with HSE FW 2.55.0, the limitation itself remains unchanged. 


BR, VaneB

标记 (1)
无评分
版本历史
最后更新:
星期五
更新人: