The New Math of Quantum Cryptography