SecurityPersonalizer.ino: randomized key not shown after first step
-
Hi,
I'm trying to personalize my ATSHA204A as documented here:
https://www.mysensors.org/about/signing#how-this-is-doneSo I set this values:
Enable LOCK_CONFIGURATION Disable LOCK_DATA Enable SKIP_KEY_STORAGE Disable SKIP_UART_CONFIRMATION Disable USER_KEYBut in serial console - no randomized key is shown -as written in documentation "Execute the sketch on the “master” device to obtain a randomized key. Save this key to a secure location and keep it confidential so that you can retrieve it if you need to personalize more devices later on."
If I'm checking the code it's clear - because of disabled SKIP_KEY_STORAGE:
#ifdef SKIP_KEY_STORAGE Serial.println(F("Disable SKIP_KEY_STORAGE to store key.")); #else #ifdef USER_KEY memcpy(key, user_key_data, 32); Serial.println(F("Using this user supplied HMAC key:")); #else // Retrieve random value to use as keySo I think documentation is wrong at this point or do I understand it incorrectly?
Best regards,
Chris -
Hi,
I'm trying to personalize my ATSHA204A as documented here:
https://www.mysensors.org/about/signing#how-this-is-doneSo I set this values:
Enable LOCK_CONFIGURATION Disable LOCK_DATA Enable SKIP_KEY_STORAGE Disable SKIP_UART_CONFIRMATION Disable USER_KEYBut in serial console - no randomized key is shown -as written in documentation "Execute the sketch on the “master” device to obtain a randomized key. Save this key to a secure location and keep it confidential so that you can retrieve it if you need to personalize more devices later on."
If I'm checking the code it's clear - because of disabled SKIP_KEY_STORAGE:
#ifdef SKIP_KEY_STORAGE Serial.println(F("Disable SKIP_KEY_STORAGE to store key.")); #else #ifdef USER_KEY memcpy(key, user_key_data, 32); Serial.println(F("Using this user supplied HMAC key:")); #else // Retrieve random value to use as keySo I think documentation is wrong at this point or do I understand it incorrectly?
Best regards,
Chris@nog76 you are probably right. Thanks for reporting. A new release is soon to come which will change things quite a lot and documentation will update with that update.
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