Diff between f7750cb8f663a75467cb16d9e99395a463f7f716 and ca1cb143d896b172cdba44e2d999dfcf9eb3dc2a

Changed Files

File Additions Deletions Status
tools/btmgmt.c +14 -0 modified

Full Patch

diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 95d1351..7442ad0 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -1721,6 +1721,7 @@ static void local_oob_rsp(uint8_t status, uint16_t len, const void *param,
 							void *user_data)
 {
 	const struct mgmt_rp_read_local_oob_data *rp = param;
+	const struct mgmt_rp_read_local_oob_ext_data *rp_ext = param;
 	int i;
 
 	if (status != 0) {
@@ -1746,6 +1747,19 @@ static void local_oob_rsp(uint8_t status, uint16_t len, const void *param,
 		printf("%02x", rp->randomizer[i]);
 	printf("\n");
 
+	if (len < sizeof(*rp_ext))
+		goto done;
+
+	printf("Hash C from P-256: ");
+	for (i = 0; i < 16; i++)
+		printf("%02x", rp_ext->hash256[i]);
+	printf("\n");
+
+	printf("Randomizer R with P-256: ");
+	for (i = 0; i < 16; i++)
+		printf("%02x", rp_ext->randomizer256[i]);
+	printf("\n");
+
 done:
 	g_main_loop_quit(event_loop);
 }