Avoid overflow in EVP_EncodeUpdate