Beispiel #1
0
void keyset_dump(keyset* keys)
{
	fprintf(stdout, "Current keyset:          \n");
	keyset_dump_key128(&keys->ncchkey, "NCCH KEY");
	keyset_dump_key128(&keys->ncchfixedsystemkey, "NCCH FIXEDSYSTEMKEY");
	keyset_dump_key128(&keys->commonkey, "COMMON KEY");

	keyset_dump_rsakey(&keys->ncsdrsakey, "NCSD RSA KEY");
	keyset_dump_rsakey(&keys->ncchdescrsakey, "NCCH DESC RSA KEY");

	fprintf(stdout, "\n");
}
Beispiel #2
0
void keyset_dump(keyset* keys)
{
#define DUMP_KEY(n, s) do {\
	keyset_dump_key128(&keys->n, (s));\
} while(0)
	fprintf(stdout, "Current keyset:          \n");
	DUMP_KEY(ncchkeyX_old, "NCCH OLD KEYX");
	DUMP_KEY(ncchkeyX_seven, "NCCH 7.0 KEYX");
	DUMP_KEY(ncchkeyX_ninethree, "NCCH N9.3 KEYX");
	DUMP_KEY(ncchkeyX_ninesix, "NCCH N9.6 KEYX");
	DUMP_KEY(ncchfixedsystemkey, "NCCH FIXEDSYSTEMKEY");
#undef DUMP_KEY

	keyset_dump_rsakey(&keys->ncsdrsakey, "NCSD RSA KEY");
	keyset_dump_rsakey(&keys->ncchdescrsakey, "NCCH DESC RSA KEY");

	fprintf(stdout, "\n");
}