[PATCH openEuler-5.10 v2 157/548] crypto: stm32/cryp - fix bugs and crash in tests