feature: firmware with dynamic key rotation#9
feature: firmware with dynamic key rotation#9xudongzheng wants to merge 2 commits intohybridgroup:mainfrom
Conversation
Yes, I have corrected that in the most recent commits. Sorry about having to reorganize things a bit. |
|
Interesting that you chose to use the Flash+littleFS option vs. using That certainly makes it easier to update the device keys remotely. I was originally thinking to copy the adv keys to separate files in a directory, that would then be embedded into the executable at compile time. |
d33fe67 to
192f245
Compare
|
Thanks for the refactoring work. Are you suggesting using I've seen several firmware that do multiple static keys. I haven't had a chance to try macless-haystack yet, perhaps that's a builtin feature there? |
192f245 to
3eb266b
Compare
Exactly.
Yes, that is is correct. By populating this field in the JSON https://github.com/hybridgroup/go-haystack/blob/main/cmd/haystack/save.go#L42 apparently any of those keys will be associated with that device by macless-haystack. |
|
@xudongzheng Hi, any news here? |
|
Now that the USB mass storage class support is getting closer to being merged into TinyGo, dynamic key rotation is going to be a lot easier to develop. You can follow that work at tinygo-org/tinygo#4844 |
This has been tested with nRF52840 and S140v6. I don't have anything else available at the moment.
This is currently a draft since some refactoring is needed. I'm proposing the following
lib/findmyfirmwareneed its owngo.modfile? With it being a separate module, it seems a bit more difficult to uselib/findmy.firmwareintofirmware/staticandfirmware/rotationThere is an accompanying Python lookup script based on FindMy.py for this key rotation algorithm. However that needs to be cleaned up a bit first.