 After Bob has measured all the photons, he communicates with Alice over the public classical channel.Alice broadcasts the basis each photon was sent in, and Bob the basis each was measured in.They both discard photon measurements (bits) where Bob used a different basis, which is half on average, leaving half the bits as a shared key.