2023-01-03 22:51:45

by fdanis-oss

[permalink] [raw]
Subject: [bluez/bluez] 5abd99: shared/crypto: Adds bt_crypto_sih

Branch: refs/heads/master
Home: https://github.com/bluez/bluez
Commit: 5abd9914a1eb23e7d2b985516453f1fe7559c79f
https://github.com/bluez/bluez/commit/5abd9914a1eb23e7d2b985516453f1fe7559c79f
Author: Luiz Augusto von Dentz <[email protected]>
Date: 2022-12-21 (Wed, 21 Dec 2022)

Changed paths:
M src/shared/crypto.c
M src/shared/crypto.h

Log Message:
-----------
shared/crypto: Adds bt_crypto_sih

This adds bt_crypto_sih is is used to create a hash as stated on
CSIS[1] spec:

'4.7. Resolvable Set Identifier hash function sih'

https://www.bluetooth.com/specifications/csis-1-0-1/


Commit: 09293fd22b3edb825a268fbf28480f4e3a53a1e9
https://github.com/bluez/bluez/commit/09293fd22b3edb825a268fbf28480f4e3a53a1e9
Author: Luiz Augusto von Dentz <[email protected]>
Date: 2022-12-21 (Wed, 21 Dec 2022)

Changed paths:
M unit/test-crypto.c

Log Message:
-----------
test-crypto: Add /crypto/sih test

This adds test /crypto/sih which validas the implementation of
bt_crypto_sih using the sample data from CSIS[1] spec:

A.1. sih Resolvable Set Identifier hash function

> unit/test-crypto -s "/crypto/sih"
K:
cd cc 72 dd 86 8c cd ce 22 fd a1 21 09 7d 7d 45 ..r....."..!.}}E
R:
63 f5 69 c.i
Expected:
da 48 19 .H.
Result:
da 48 19 .H.

[1] https://www.bluetooth.com/specifications/csis-1-0-1/


Commit: a38b6ca525b392c7ad7e04368abd48ddc64b2142
https://github.com/bluez/bluez/commit/a38b6ca525b392c7ad7e04368abd48ddc64b2142
Author: Luiz Augusto von Dentz <[email protected]>
Date: 2022-12-22 (Thu, 22 Dec 2022)

Changed paths:
M src/shared/crypto.c
M src/shared/crypto.h

Log Message:
-----------
shared/crypto: Adds bt_crypto_sef

This adds bt_crypto_sef is is used to create a hash as stated on CSIS
spec:

'4.5. SIRK encryption function sef'

https://www.bluetooth.com/specifications/csis-1-0-1/


Commit: 051ccb1e878be5451603c8ea2a3820e759281724
https://github.com/bluez/bluez/commit/051ccb1e878be5451603c8ea2a3820e759281724
Author: Luiz Augusto von Dentz <[email protected]>
Date: 2022-12-22 (Thu, 22 Dec 2022)

Changed paths:
M unit/test-crypto.c

Log Message:
-----------
test-crypto: Add /crypto/sef test

This adds test /crypto/sef which validas the implementation of
bt_crypto_sef using the sample data from CSIS[1] spec:

A.2. sef SIRK Encryption Function

> unit/test-crypto -s "/crypto/sef"
SIRK:
cd cc 72 dd 86 8c cd ce 22 fd a1 21 09 7d 7d 45 ..r....."..!.}}E
K:
d9 ce e5 3c 22 c6 1e 06 6f 69 48 d4 9b 1b 6e 67 ...<"...oiH...ng
Expected:
46 d3 5f f2 d5 62 25 7e a0 24 35 e1 35 38 0a 17 F._..b%~.$5.58..
Result:
46 d3 5f f2 d5 62 25 7e a0 24 35 e1 35 38 0a 17 F._..b%~.$5.58..

[1]https://www.bluetooth.com/specifications/csis-1-0-1/


Commit: 7a32f29180351dbac3727c7f4a08a577093ceddc
https://github.com/bluez/bluez/commit/7a32f29180351dbac3727c7f4a08a577093ceddc
Author: Luiz Augusto von Dentz <[email protected]>
Date: 2022-12-22 (Thu, 22 Dec 2022)

Changed paths:
M monitor/packet.c

Log Message:
-----------
monitor: Add support for decoding RSI

This adds support for decoding Resolvable Set Identifier[1] advertising
type (0x2e) according to CIS[2] spec:

Resolvable Set Identifier: 46-BB-DB-26-D8-55
Hash: 0x26d855
Random: 0x46bbdb

[1] https://www.bluetooth.com/specifications/assigned-numbers/
[2] https://www.bluetooth.com/specifications/csis-1-0-1/


Compare: https://github.com/bluez/bluez/compare/90a662392c6e...7a32f2918035