STM32H7 AES HAL与参考手册不一致

Inconsistency between STM32H7 AES HAL and Reference Manual

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

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

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

但是参考手册第 7 版中没有记录这些位。

是否只是 HAL 的错误?

IP 块在不同的 STM32 系列之间共享是很常见的,所以如果您在设备的参考手册中找不到信息,那就是 worth looking at the documentation of other devices

AN5312 提到在版本 V 中添加了 NPBLB 位,但没有提供有关位含义的文档:

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.

然而reference manual of STM32MP1却有这些位的说明,如下图: