Security of quantum key distributions with entangled qudits (11 pages)