Fix types in frequency_score

This commit is contained in:
Dimitri Lozeve 2020-06-04 12:05:35 +02:00
parent cd7c584e6f
commit a47bcc8f9e
4 changed files with 6 additions and 6 deletions

View file

@ -14,10 +14,10 @@ int main(int argc, char *argv[]) {
unsigned char buf[512] = {0};
size_t len = hex_to_bytes(buf, argv[1]);
unsigned char cur[512];
char cur[512];
double min_score = INFINITY;
unsigned char key;
unsigned char best[512];
char key;
char best[512];
// Test for keys from A to z
for (char c = 65; c < 127; ++c) {
for (size_t i = 0; i < len; ++i) {