Distance-bounding proof of knowledge to avoid real-time attacks