From e4db49c0cf7916a3303eadbdf7fd541e57e1ce9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 3 Aug 2023 09:26:19 +0100 Subject: Initial import of freestyle_keys package. This package only contains the constants required to speak to FreeStyle Libre 2 devices. --- freestyle_keys/__init__.py | 0 freestyle_keys/libre2.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 freestyle_keys/__init__.py create mode 100644 freestyle_keys/libre2.py (limited to 'freestyle_keys') diff --git a/freestyle_keys/__init__.py b/freestyle_keys/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/freestyle_keys/libre2.py b/freestyle_keys/libre2.py new file mode 100644 index 0000000..80db726 --- /dev/null +++ b/freestyle_keys/libre2.py @@ -0,0 +1,17 @@ +"""Encryption keys used by FreeStyle Libre 2 glucometers. + +The following constants are key materials required to communicate with the FreeStyle +Libre 2 glucometers. + +No copyright is claimed for these keys, as they are requisite constants that are part +of the device's communication protocol. + +We assert these these keys do not constitute Technical Protection Measures for the +purpose of copyright protection, as they do not protect copyrighted material but +rather obfuscate the communication between two devices under the control of the user. +""" + +AUTHORIZATION_ENCRYPTION_KEY = 0x360C0E171551821D7961F891197B52A1 +AUTHORIZATION_MAC_KEY = 0x738F004CD1A80D16622DB2E0DB8C60D4 +SESSION_ENCRYPTION_KEY = 0x9D42333D9DDD20A7164C2AB057F92EFD +SESSION_MAC_KEY = 0x12B0D868D117D7C8379DE50FA97A7BA0 -- cgit v1.2.3