  In this work, we study the timestamps in the registration of single-photon
detector counts in quantum communications. The analysis of afterpulse counts on
the basis of several approaches is carried out. Robust diagnostics of keys is
proposed to increase the security of quantum networks.
