meta-digi/meta-digi-arm/recipes-digi
Hector Palacios 4f33afcbcf trustfence: split ccmp13 passwords in 8 files and set SWUPDATE keys
For signing SWU files we need to set a couple of variables:
 - SWUPDATE_PRIVATE_KEY_TEMPLATE to the private key file
 - SWUPDATE_PASSWORD_FILE to the password of the private key

The latter must only contain one password, whereas the current key_pass.txt
file had (for the ccmp13) the eight keys separated by a white space.

This commit:
 - If the file key_pass.txt exists, it extracts each key into a separate
   file key_pass0X.txt.
 - If the keys don't exist, generates separate files per key.
 - Changes the permissions of password files to 400.
 - Adapts the sign script to use the single password files.
 - Fixes a few quotes

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-01-03 13:05:05 +01:00
..
cryptoauthlib meta-digi: [cosmetic] alphabetize compatible machine string 2023-10-10 14:58:58 +02:00
mca meta-digi: [cosmetic] alphabetize compatible machine string 2023-10-10 14:58:58 +02:00
trustfence trustfence: split ccmp13 passwords in 8 files and set SWUPDATE keys 2024-01-03 13:05:05 +01:00