Skip to content

Conversation

@E-Heerschap
Copy link

Adds support for interoperability via extended UID and standardised parameters

  • Extended UID provisioning method added to provisioning_method_e enum in provisioning library.
  • Joining network address and channel changed to new standardised values.
  • Examples added for Extended UID, secure and unsecure methods which correspond to values defined in this pull request.
  • to_bytes in the genConfigHex.py now converts integers to bytes

Copy link
Contributor

@GwendalRaoul GwendalRaoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
As per our process, we will integrate the change in our internal repo and it will be visible on GitHub in next release.

param = bytes(param, 'utf-8')
elif type(param) is int:
param.to_bytes((param.bit_length() + 7) // 8, byteorder='big')
param = param.to_bytes(max(1, (param.bit_length() + 7) // 8), byteorder='big')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch for the max in case param is 0 !

@E-Heerschap
Copy link
Author

@GwendalRaoul

Added a commit to patch a security bug. The IV was being left as all zeros previously. This initialises the IV appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants