Hi Peter,
I ran into this issue a month or so ago and have only made my personal notes (README_DES.txt) and comments in the source "C" code (look for "//DES").
ZIP file attached.
In summary I figured out how to create a simple ascii key text file that has the 128-bit AES custom key.
Ex: decafbadface0fffc0ffee00deadbeef
The command line elf2sb.exe is used to convert binary or elf file using the key file to get a *.sb (secure boot) file.
Example command lines in README_DES.txt.
The sbloader.c file is in the ZIP too that has been modified to have the same custom key and looks like:
uint32_t s_aesKey[AES_128_KEY_SIZE_WORDS]={0xdecafbad, 0xface0fff, 0xc0ffee00, 0xdeadbeef}; //DES works for key file "decafbadface0fffc0ffee00deadbeef"
Notes: This was done using Kinetis_Bootloader_2_0_0 for the USB MSD secure boot drag-n-drop of the Secure Binary (*.sb) file.
Hope this helps.
Regards,
David