summaryrefslogtreecommitdiff
path: root/utils/nwztools/upgtools/upgtool.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-04 16:35:38 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-04 17:04:19 +0100
commit5cfd4a5b8e551c23600c93838180487e91698814 (patch)
treed5242d45a034266a35044cca12ebad340dd2a40b /utils/nwztools/upgtools/upgtool.c
parentbfd5704749cfb8f7faf9f03be49c60f5f2b1cf7d (diff)
downloadrockbox-5cfd4a5b8e551c23600c93838180487e91698814.tar.gz
rockbox-5cfd4a5b8e551c23600c93838180487e91698814.zip
nwztools/upgtools: add more brute force algorithms
Allow to search for hex with upper case and alphanumeric. This is *much* slower of course. Change-Id: I41a2fc63c4b2220c21147b711098ebc37ddb3527
Diffstat (limited to 'utils/nwztools/upgtools/upgtool.c')
-rw-r--r--utils/nwztools/upgtools/upgtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/nwztools/upgtools/upgtool.c b/utils/nwztools/upgtools/upgtool.c
index 8f75f93024..833321ec12 100644
--- a/utils/nwztools/upgtools/upgtool.c
+++ b/utils/nwztools/upgtools/upgtool.c
@@ -319,7 +319,7 @@ static int get_key_and_sig(bool is_extract, void *encrypted_hdr)
319 cprintf(GREY, "- select a model with a known KAS\n"); 319 cprintf(GREY, "- select a model with a known KAS\n");
320 cprintf(GREY, "- specify an explicit KAS or key+sig\n"); 320 cprintf(GREY, "- specify an explicit KAS or key+sig\n");
321 if(is_extract) 321 if(is_extract)
322 cprintf(GREY, "- let me try to find the keysig(slow !)\n"); 322 cprintf(GREY, "- let me try to find the keysig by brute force\n");
323 return 1; 323 return 1;
324 } 324 }
325 325
@@ -604,7 +604,7 @@ static void usage(void)
604 printf(" -c/--create\t\tCreate a UPG archive\n"); 604 printf(" -c/--create\t\tCreate a UPG archive\n");
605 printf("keysig search method:\n"); 605 printf("keysig search method:\n");
606 for(int i = KEYSIG_SEARCH_FIRST; i < KEYSIG_SEARCH_LAST; i++) 606 for(int i = KEYSIG_SEARCH_FIRST; i < KEYSIG_SEARCH_LAST; i++)
607 printf(" %s\t%s\n", keysig_search_desc[i].name, keysig_search_desc[i].comment); 607 printf(" %-10s\t%s\n", keysig_search_desc[i].name, keysig_search_desc[i].comment);
608 exit(1); 608 exit(1);
609} 609}
610 610