[PATCH openEuler-1.0-LTS 1/2] crypto: public_key: fix overflow during implicit conversion