>From ed0481e613c11f23f28a5857a9198259822b29bb Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Thu, 19 Jul 2012 10:19:40 +0200 Subject: [PATCH 2/2] Add binary and salt alignment to --list=format-[all-]details --- src/john.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/john.c b/src/john.c index e756e3f..c5ebcc7 100644 --- a/src/john.c +++ b/src/john.c @@ -806,7 +806,7 @@ static void john_init(char *name, int argc, char **argv) while (format->params.tests[ntests++].ciphertext); ntests--; } - printf("%s\t%d\t%d\t%d\t%08x\t%d\t%s\t%s\t%s\t%d\t%d\t%d\n", + printf("%s\t%d\t%d\t%d\t%08x\t%d\t%s\t%s\t%s\t%d\t%d\t%d\t%d\t%d\n", format->params.label, format->params.plaintext_length, format->params.min_keys_per_crypt, @@ -821,7 +821,9 @@ static void john_init(char *name, int argc, char **argv) ((format->params.flags & FMT_DYNAMIC) && format->params.salt_size) ? // salts are handled internally within the format. We want to know the 'real' salt size // dynamic will alway set params.salt_size to 0 or sizeof a pointer. - dynamic_real_salt_length(format) : format->params.salt_size); + dynamic_real_salt_length(format) : format->params.salt_size, + format->params.binary_align, + format->params.salt_align); } while ((format = format->next)); exit(0); } @@ -867,6 +869,8 @@ static void john_init(char *name, int argc, char **argv) // salts are handled internally within the format. We want to know the 'real' salt size/ // dynamic will alway set params.salt_size to 0 or sizeof a pointer. dynamic_real_salt_length(format) : format->params.salt_size); + printf("Alignment of binary ciphertext \t%d\n", format->params.binary_align); + printf("Alignment of internal salt repr.\t%d\n", format->params.salt_align); printf("\n"); } while ((format = format->next)); exit(0); -- 1.7.7.6