Replace assert calls by a new gcry_assert at most places.