[PATCH 5.10 030/306] crypto: public_key: fix overflow during implicit conversion