3 Protocol Details
The Automatic Bluetooth Pairing Protocol provides a client role and a server role.
The client and server use the same algorithm to compute a response value for challenge/response authentication. Given a 128-byte challenge value, a 128-byte shared secret, and a numeric value (representing a six-digit numeric code), the response value is calculated as a SHA-256 of the concatenation of the challenge value, the shared secret, and the numeric value represented (PIN) as a 32-byte value in network byte order.