使用stm32-cryp-lib,例程可参考,en.x-cube-cryptolib\STM32CubeExpansion_Crypto_V3.1.0\Fw_Crypto\STM32F1\Projects\STM32F103RB-Nucleo