How does Bluetooth pairing work?

荒凉一梦 提交于 2019-11-29 22:23:53

Bluetooth Secure Simple Pairing uses Elliptic Curve Diffie Hellman (ECDH) public key cryptography with approximately 95 bits of entropy using the FIPS approved P192 elliptic curve.

E:y2=x3 +ax+b(modp)

The following parameters are given:

  • The prime modulus p, order r, base point x-coordinate Gx, base point y- coordinate Gy.
  • The integers p and r are given in decimal form; bit strings and field elements are given in hex.

    p = 6277101735386680763835789423207666416083908700390324961279
    r = 6277101735386680763835789423176059013767194773182842284081
    b = 64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1
    Gx = 188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012
    Gy = 07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811
    

There are five phases of Secure Simple Pairing:

1. Public key exchange

Each device generates its own Elliptic Curve Diffie-Hellman (ECDH) public-private key pair.


2. Authentication Stage 1

1 of 3 protocol options is chosen by the connecting devices based on the IO capabilities of the two devices. These are:

  • Numeric Comparison,
  • Out-of-Band,
  • Passkey Entry

3. Authentication Stage 2

Each device confirms that both devices have successfully completed the exchange as stipulated by which of protocol was chosen and used in the previous step.


4. Link key calculation

A link key is computed from the derived shared key and the publicly exchanged data. This is the numeric code shown to the user.


5. LMP Authentication and Encryption

The encryption keys are generated. The devices are successfully connected.


     

     



Further Reading:

A trusted relationship is established between the devices using a numerical password, commonly referred to as a passkey. Depending on how often one Bluetooth device connects to another, the user might opt to have the passkey saved for future connection attempts or prompt to enter the passkey each time the devices request communication with each other.

Read more : http://www.ehow.com/how-does_4964578_bluetooth-pairing-work.html

For two devices to have the ability to pair, they must share the same bluetooth profile. The following is from the official Bluetooth website:

Pairing devices

Not all Bluetooth enabled devices are designed to be paired. Logically, there's no reason to connect a wireless mouse to a wireless headset. You should be able to pair a Bluetooth enabled headset to a Bluetooth enabled phone, or a Bluetooth enabled mouse to a Bluetooth enabled computer.

If you're not sure whether the two devices you want to connect are designed to be paired with each other, make sure their Bluetooth profiles match.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!