[PATCH 4.14 041/267] crypto: ecc - check for invalid values in the key verification test