[PATCH 5.16 0276/1039] crypto: stm32/cryp - fix bugs and crash in tests