CODES FOR KEY GENERATION IN QUANTUM CRYPTOGRAPHY