Change cryptoutil to not throw exceptions