[ESP8266] use soft signing
-
Hello @Anduril
From the doc ;) here https://www.mysensors.org/about/signing
"For the software backed signingbackend, an unconnected analog pin is required to set a random seed for the pseudo-random generator. It is important that the pin is floating, or the output of the pseudo-random generator will be predictable, and thus compromise the signatures. "
So for instance, adcs like A6, A7 etc. let it floating (not connected).
-
yeah I know the reason for having an unconnected analog pin, my question was more about which to use on an ESP. Does it have an A7? I don't find one in the pinout. I only see A0 (which is not used in my case), can this be the floating pin for soft signing?
-
ah oki, lol how i didn't see that :)
yep on esp8266 you have only one adc, so it's A0 -
ok so
// Select soft/hardware signing method #define MY_SIGNING_SOFT //!< Software signing //#define MY_SIGNING_ATSHA204 //!< Hardware signing using ATSHA204A // SETTINGS FOR MY_SIGNING_SOFT #define MY_SIGNING_SOFT_RANDOMSEED_PIN A0 //!< Unconnected analog pin for random seedshould give a good random signing.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login