[openEuler-5.10 030/303] crypto: public_key: fix overflow during implicit conversion