Skip to content

Commit 3580eea

Browse files
author
Sander Ruben
committed
Replace prov_method KEY_MGMT by EXTENDED_UID_KEY_MGMT
1 parent 903b9aa commit 3580eea

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

docker/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.7'
21
services:
32
prov-service:
43
container_name: wm-prov-srv

examples/provisioning_config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020
# node_name : (mandatory)(string) Ex: test_node
2121
# method : (mandatory)(Unsecured:0, Secured:1, Extended UID:3) Ex: 0
22-
# factory_key : (only for methods 1 and 3)(32 bytes string, [0:15 Auth key][16:31 Enc Key])
22+
# factory_key : (for methods 1,3 and 7)(32 bytes string, [0:15 Auth key][16:31 Enc Key])
2323
# node_uid : (optional)(16 bytes string) Ex: 0x7e 0x71 0xe5 0xd7 0x22 0xef 0x0f 0x4b 0xa8 0x7d 0x44 0xd4 0xe0 0xe5 0xb5 0x7d
2424
# node_uid_type : (optional)(1 byte string) Ex: 0x01
2525
# node_authenticator_uid_type : (optional)(1 byte string) Ex: 0x01
@@ -65,9 +65,11 @@ nodes:
6565
network: network_prod
6666
node_id: 17
6767
uid: 0x58 0xc8 0x12 0xad 0x37 0xe8 0x36 0x4a 0xa1 0x1f 0x1c 0xbc 0x63 0x3e 0x8e 0x34
68-
test_node_key_mgmt:
68+
test_node_key_extended_uid_key_mgmt:
69+
authenticator_uid: 0xb3 0x43 0x33 0x00 0x93 0x81 0x08 0x4a 0x8d 0xb3 0xaa 0x9e 0x53 0xd2 0x2a 0x1e
70+
authenticator_uid_type: 1
6971
factory_key: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0X09 0X0A 0X0B 0X0C 0X0D 0X0E 0X0F 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0X09 0X0A 0X0B 0X0C 0X0D 0X0E 0X0F
70-
method: 4
72+
method: 7
7173
network: network_prod
7274
network_key_sequence: 1
7375
node_id: 18

wirepas_provisioning_server/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __init__(self, config: Optional[str] = None):
152152

153153
if "uid" in node_cfg.keys():
154154
uid: str | int | bytes = node_cfg["uid"]
155-
elif node_cfg["method"] == ProvisioningMethod.EXTENDED:
155+
elif node_cfg["method"] == ProvisioningMethod.EXTENDED or node_cfg["method"] == ProvisioningMethod.EXTENDED_UID_KEY_MGMT:
156156
try:
157157
uid = _generate_extended_uid(
158158
node_cfg["authenticator_uid_type"],

wirepas_provisioning_server/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ProvisioningMethod(IntEnum):
3434
UNSECURED = 0
3535
SECURED = 1
3636
EXTENDED = 3
37-
KEY_MGMT = 5
37+
EXTENDED_UID_KEY_MGMT = 7
3838

3939

4040
class ProvisioningNackReason(IntEnum):

0 commit comments

Comments
 (0)