I didn't dive into the technical details of how pairing works, and in fact leared everything I know about it from TFA, which went into quite some detail.