mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
sbtoelf: implement sb1 loading and dumping
Implement actual loading of a sb1 file to a structure in full generality. Also implement dumping for debug purpose Change-Id: I320035ea628719480a79aaccb05dce9a83256927
This commit is contained in:
parent
9716d1f1f9
commit
7dc3e939d2
6 changed files with 240 additions and 30 deletions
|
|
@ -239,6 +239,12 @@ void print_key(struct crypto_key_t *key, bool newline)
|
|||
case CRYPTO_NONE:
|
||||
printf("none");
|
||||
break;
|
||||
case CRYPTO_XOR_KEY:
|
||||
print_hex(&key->u.xor_key[0].key[0], 64, false);
|
||||
print_hex(&key->u.xor_key[1].key[0], 64, false);
|
||||
break;
|
||||
default:
|
||||
printf("unknown");
|
||||
}
|
||||
if(newline)
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue