Design, implementation and security analysis of Bluetooth pairing protocol in NS2
Handbook of Applied Cryptography