Security proof for variable-length quantum key distribution | Synapse