[PATCH 4.14 107/217] crypto: public_key: fix overflow during implicit conversion