STM32H7 AES HAL与参考手册不一致

发布于 2025-01-19 10:48:24 字数 230 浏览 1 评论 0原文

我开始在 STM32H753 (rev V) 上实现 AES-GCM。

我发现 HAL 和参考手册之间存在不一致之处。

如果产品版本高于版本 B,则适用于 STM32H7x3 的 AES 的 STMicro HAL 会在 CRYP_CR 寄存器中设置一些名为 NPBLB 的位。

但这些位未记录在参考手册版本中7.

这只是HAL的错误吗?

I'm starting to implement AES-GCM on STM32H753 (rev V).

I've found an inconsistency between the HAL and the Ref Manual.

The STMicro HAL for AES for STM32H7x3 is setting some bits called NPBLB in CRYP_CR register if the product revision is above rev B.

But these bits are not documented in the ref manual rev 7.

Is it just an error of the HAL ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仙气飘飘 2025-01-26 10:48:24

IP块在不同的STM32家族之间共享是常见的,因此,如果您在设备的参考手册中找不到信息,则它是值得研究其他设备的文档

an5312 提到在修订V中添加了npblb位,但没有提供有关位的含义的文档:

REVV支持用于GCM加密或CCM解密的硬件管理
有效载荷尺寸不到128位的最后一个块。这是
由于添加了NPBLB位字段(
图5中突出显示了CRYP_CR寄存器中的单元格。

具有这些位的描述:

“

It is common for the IP blocks to be shared between different STM32 families, so if you cannot find info in the reference manual of your device, it is worth looking at the documentation of other devices.

AN5312 mentions that NPBLB bits were added in revision V, but gives no documentation about the meaning of the bits:

RevV supports hardware management for GCM encryption or CCM decryption
with the last block of payload size inferior to 128 bits. This is
possible thanks to the addition of the NPBLB bit field (the
highlighted cells in Figure 5) in the CRYP_CR register.

The reference manual of STM32MP1, however, has the description of these bits, as shown below:

CRYP_CR

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文