aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatias Karhumaa <matias.karhumaa@gmail.com>2021-10-12 20:19:38 +0300
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-10-17 14:46:47 +0000
commitac31124514304b7f617201489279f84dc53aa575 (patch)
tree5023630a220d2ec11dff6cc8b72686b3e1880af9
parentc36ce0b01b25eac9a5ecf377f48f2b33f0f49df0 (diff)
btsmp: Fix endianess of debug public key
Bluetooth LE SMP protocol uses Little-endian byte order. Convert Bluetooth LE Secure Connections debug public key to Little-endian byte order to fix the problem that dissector did not properly identify debug keys when they were used during the pairing.
-rw-r--r--epan/dissectors/packet-btsmp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/epan/dissectors/packet-btsmp.c b/epan/dissectors/packet-btsmp.c
index 71f09570c7..783695ede4 100644
--- a/epan/dissectors/packet-btsmp.c
+++ b/epan/dissectors/packet-btsmp.c
@@ -151,18 +151,20 @@ static const value_string notification_type_vals[] = {
{0x0, NULL}
};
+/* X coordinate of debug public key. Little-endian. */
static const guint8 debug_public_key_x[32] = {
- 0x20, 0xb0, 0x03, 0xd2, 0xf2, 0x97, 0xbe, 0x2c,
- 0x5e, 0x2c, 0x83, 0xa7, 0xe9, 0xf9, 0xa5, 0xb9,
- 0xef, 0xf4, 0x91, 0x11, 0xac, 0xf4, 0xfd, 0xdb,
- 0xcc, 0x03, 0x01, 0x48, 0x0e, 0x35, 0x9d, 0xe6
+ 0xe6, 0x9d, 0x35, 0x0e, 0x48, 0x01, 0x03, 0xcc,
+ 0xdb, 0xfd, 0xf4, 0xac, 0x11, 0x91, 0xf4, 0xef,
+ 0xb9, 0xa5, 0xf9, 0xe9, 0xa7, 0x83, 0x2c, 0x5e,
+ 0x2c, 0xbe, 0x97, 0xf2, 0xd2, 0x03, 0xb0, 0x20,
};
+/* Y coordinate of debug public key. Little-endian. */
static const guint8 debug_public_key_y[32] = {
- 0xdc, 0x80, 0x9c, 0x49, 0x65, 0x2a, 0xeb, 0x6d,
- 0x63, 0x32, 0x9a, 0xbf, 0x5a, 0x52, 0x15, 0x5c,
- 0x76, 0x63, 0x45, 0xc2, 0x8f, 0xed, 0x30, 0x24,
- 0x74, 0x1c, 0x8e, 0xd0, 0x15, 0x89, 0xd2, 0x8b
+ 0x8b, 0xd2, 0x89, 0x15, 0xd0, 0x8e, 0x1c, 0x74,
+ 0x24, 0x30, 0xed, 0x8f, 0xc2, 0x45, 0x63, 0x76,
+ 0x5c, 0x15, 0x52, 0x5a, 0xbf, 0x9a, 0x32, 0x63,
+ 0x6d, 0xeb, 0x2a, 0x65, 0x49, 0x9c, 0x80, 0xdc
};
void proto_register_btsmp(void);