This repository belongs to the paper "Reliability and Latency Analysis for Wireless Communication Systems with a Secret-Key Budget" (K.-L. Besser, R. F. Schaefer, H. V. Poor, IEEE Transactions on Communications, vol. 72, no. 2, pp. 1033-1044, Feb. 2024).