Using quantum key distribution for cryptographic purposes: A survey