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:
Amaury Pouly 2012-11-27 22:16:56 +01:00
parent 9716d1f1f9
commit 7dc3e939d2
6 changed files with 240 additions and 30 deletions

View file

@ -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");