2.2.2.3.3 Connection Response

The host responds with a connection response message including device information.

Only the Result is sent if the Result is anything other than PENDING.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Result

HMACSize

Nonce

MessageFragmentSize

PublicKeyXLength

PublicKeyX (variable)

...

...

PublicKeyYLength

PublicKeyY (variable)

...

...

Result (1 byte): The result of the connection request, which can be one of the following values.

Value

Meaning

0

Success

1

Pending

2

Failure_Authentication

3

Failure_NotAllowed

HMACSize (2 bytes): The expected size of HMAC (see Encryption section 3.1.3.1 for details).

Nonce (8 bytes): Random values (see Encryption section 3.1.3.1 for details).

MessageFragmentSize (4 bytes): The maximum size of a single message fragment (Fixed Value of 16384).

PublicKeyXLength (2 bytes): The length of PublicKeyX, which is sent only if the connection is successful.

PublicKeyX (variable): A fixed-length key that is based on the curve type from connect request, which is sent only if the connection is successful. This is the X component of the key.

PublicKeyYLength (2 bytes): The length of PublicKeyY, which is sent only if the connection is successful.

PublicKeyY (variable): A fixed-length key that is based on the curve type from connect request, which is sent only if the connection is successful. This is the Y component of the key.