The spec describes the App and Network keys as 16 byte hex strings and states that they are generated by a Provisioner.
Can you please clarify what algorithm is used to generate them?
Thank you
The spec describes the App and Network keys as 16 byte hex strings and states that they are generated by a Provisioner.
Can you please clarify what algorithm is used to generate them?
Thank you
Hi.
That is correct.
Using our nRF Mesh mobile application you can generate both Network keys and App keys, that are to be used during provisioning. The keys can be generated under the settings tab.
You can also manually enter the keys when adding new keys.
I don't have exact information about the algorithm that we use for the key generation, but I can try to check if you need more information about it?
Br,
Joakim
Yes please, I need an algorithm so I can generate those keys in my application
Thanks
Yes please, I need an algorithm so I can generate those keys in my application
Thanks
Talked to our mobile developers about this:
The user needs to provide the 16-byte key:
iOS:
However, the library comes with a helper method that does it:
On Android you could call the following method if you want to generate your own key:
https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/d2292fac77cd195bb962c4be6b2cd245cc6f0e86/mesh/src/main/java/no/nordicsemi/android/mesh/utils/SecureUtils.java#L123
Br,
Joakim