PSA drivers: the setup entry point can receive an operation that isn't all zero #9975
Labels
bug
component-psa
PSA keystore/dispatch layer (storage, drivers, …)
size-s
Estimated task size: small (~2d)
According to the PSA crypto driver interface specification, in multipart operations, the driver's setup entry point should receive an operation object that is initialized to 0. As of Mbed TLS 2.28.9 and 3.6.2, there are several operations where this is not always the case:
union myunion x = {0}
or the like. Such compilers also break the built-in implementation, and this case is tracked separately atHMAC-SHA-256
test failures on upcominggcc-15
(after partial union initialization changes) #9814.Workaround: if your driver needs to work with Mbed TLS versions where this issue is present, make sure that the setup entry point does not make any assumption on the content of the operation on entry.
The text was updated successfully, but these errors were encountered: