Because we have a use case where there are hundreds of MDOTs already configured and the customer doesn’t want to re-configure all the MDots manually.
So we want to use the existing passphrase and name to get the Net ID and Net key
I am also trying to connect the MDOT to the Chirpstack applications with 3rd party Gateway, as there is no concept of Network name and network passphrase in Chirpstack, I found that we can derive network id and network key using crc64(networkname) and cmac(passphrase).
I tried to look the source code of many repositories but couldn’t find or understand the implementation of those functions(cmac and CRC)
Could you please point me to the implementation source files to understand and derive the NI and NK
Also found from API docs that the NI and NK are automatically generated if we enter n/w name and passphrase. If so kindly let me know how can I get those generated NI and NK