Quantum key distribution and quantum cryptography General and foundational topics mathematics