[GH-ISSUE #871] Remove/audit FIXME and XXX comments #475

Closed
opened 2026-10-14 03:09:51 +07:00 by bsakaguchi · 24 comments
Owner

Originally created by @jfoug on GitHub (Dec 8, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/871

When these get removed, please update this list. Also, if there are some that will not be 'fixed', then place comment after the item, and use ~~~strike out~~~ font for the filename. Looks like ~~~strike out~~~ does not work in code sections. Oh well. Move them to code blocks below the WIP block.

$ egrep -c -w -d recurse '(FIXME)|(XXX)' * ../run/* | grep -v \:0
cq_fmt_plug.c:1
cuda_rawsha512_fmt_plug.c:1
cuda_xsha512_fmt_plug.c:1
gpg_fmt_plug.c:1
keystore_fmt_plug.c:1
kwallet_fmt_plug.c:1
listconf.c:2
lotus85_fmt_plug.c:1
luks2john.c:1
m4/pkg.m4:2
mask.c:1
mkv.c:1
mongodb_fmt_plug.c:1
NETNTLMv2_fmt_plug.c:1
office_fmt_plug.c:1
opencl_7z_fmt_plug.c:3
opencl_blockchain_fmt_plug.c:2
opencl_gpg_fmt_plug.c:2
opencl_pbkdf2_hmac_sha512_fmt_plug.c:1
opencl_sha1crypt_fmt_plug.c:1
openssl_enc_fmt_plug.c:3
ssh_ng_fmt_plug.c:1
sxc_fmt_plug.c:1

../run/7z2john.py:10
../run/androidfde2john.py:1
../run/benchmark-unify:1
../run/john.bash_completion:3
../run/office2john.py:8
../run/pcap2john.py:2
../run/sap2john.pl:4
../run/sshng2john.py:2
Harder to fix (Large amount of work).  We may do these later, but for now we just document

7z_fmt_plug.c:3                Big change.  I think this requires full decompress of 7z data.
bench.c:1                       This is the 'early init()' call to dynamic, -opencl* crypt(3) formats, since they need it to display.
dynamic_fmt.c:2
x86-64.S:1                       Warning about asm not being able to do multiplication on sparc.
x86-sse.S:1                     Warning about asm not being able to do multiplication on sparc.

_THIS group_ is the main list of items still not handled.

opencl_blockchain_fmt_plug.c(289):  /* XXX we are assuming that "guid" will be found in the first block
opencl_blockchain_fmt_plug.c(298):  /* XXX more tests required?
opencl_gpg_fmt_plug.c(178):         return 8; // XXX
7z_fmt_plug.c(241):// XXX port Python code to C *OR* use code from LZMA SDK
7z_fmt_plug.c(313):     return 0;  // XXX don't be too eager!
7z_fmt_plug.c(316): // XXX test 2, "well-formed folder" test
cq_fmt_plug.c(37):#define SALT_SIZE           64  // XXX double check this
dynamic_fmt.c(6832):// XXX fix me at some point!
gpg_fmt_plug.c(173):            return 8; // XXX
kwallet_fmt_plug.c(190):    unsigned char buffer[0x10000]; // XXX respect the stack limits!
lotus85_fmt_plug.c(52):#define LOTUS85_MIN_BLOB_SIZE 40 // XXX fictional value, but isn't this length fixed?
ssh_ng_fmt_plug.c(267): if (pad < 4) { // XXX is this possible? if yes, will killing this result in too many false positives?

cuda_rawsha512_fmt_plug.c(37):#define FORMAT_TAG            "" // FIXME: "$SHA512$" // format tag not supported here!
cuda_xsha512_fmt_plug.c(85):    /* FIXME: How do we de-init cuda stuff? */
keystore_fmt_plug.c(284):       /* FIXME: report cur_salt->data_length as tunable cost? */
listconf.c(101): * FIXME: Should all the listconf_list_*() functions get an additional stream
listconf.c(123):    /* FIXME: Should all the section names get printed instead?
mask.c(1384):       /* FIXME: enable the below at 2015-01-01 or later */
mkv.c(274): * FIXME: strsep() is not portable enough!
mongodb_fmt_plug.c(300):            /* FIXME: report user name length as 2nd cost? */
NETNTLMv2_fmt_plug.c(81):#define CLIENT_CHALL_LENGTH_MAX    1024 /* FIXME - Max Target Information Size Unknown */
office_fmt_plug.c(265): if (20 < hashSize) { // FIXME: Is this ever true?
openssl_enc_fmt_plug.c(295):    // FIXME handle more stuff
openssl_enc_fmt_plug.c(339):    // FIXME use padding check for CBC mode only
openssl_enc_fmt_plug.c(426): * FIXME: if there wouldn't be so many false positives,
sxc_fmt_plug.c(71): int cipher_type; // FIXME: cipher_type seems to be ignored

Here are the ones where OMP_SCALE lists work has not been done on this one.

cq_fmt_plug.c(18):#define OMP_SCALE 2048 // XXX
dahua_fmt_plug.c(23):#define OMP_SCALE 2048 // XXX
ecryptfs_fmt_plug.c(38):#define OMP_SCALE               8 // XXX
lotus85_fmt_plug.c(26):#define OMP_SCALE               64  // XXX tune me!
mdc2_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX
mozilla_ng_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX
net_md5_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX
net_sha1_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX
rsvp_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX
tcp_md5_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX
Originally created by @jfoug on GitHub (Dec 8, 2014). Original GitHub issue: https://github.com/openwall/john/issues/871 When these get removed, please update this list. Also, if there are some that will not be 'fixed', then place comment after the item, and use ~~~strike out~~~ font for the filename. Looks like ~~~strike out~~~ does not work in code sections. Oh well. Move them to code blocks below the WIP block. ``` $ egrep -c -w -d recurse '(FIXME)|(XXX)' * ../run/* | grep -v \:0 cq_fmt_plug.c:1 cuda_rawsha512_fmt_plug.c:1 cuda_xsha512_fmt_plug.c:1 gpg_fmt_plug.c:1 keystore_fmt_plug.c:1 kwallet_fmt_plug.c:1 listconf.c:2 lotus85_fmt_plug.c:1 luks2john.c:1 m4/pkg.m4:2 mask.c:1 mkv.c:1 mongodb_fmt_plug.c:1 NETNTLMv2_fmt_plug.c:1 office_fmt_plug.c:1 opencl_7z_fmt_plug.c:3 opencl_blockchain_fmt_plug.c:2 opencl_gpg_fmt_plug.c:2 opencl_pbkdf2_hmac_sha512_fmt_plug.c:1 opencl_sha1crypt_fmt_plug.c:1 openssl_enc_fmt_plug.c:3 ssh_ng_fmt_plug.c:1 sxc_fmt_plug.c:1 ../run/7z2john.py:10 ../run/androidfde2john.py:1 ../run/benchmark-unify:1 ../run/john.bash_completion:3 ../run/office2john.py:8 ../run/pcap2john.py:2 ../run/sap2john.pl:4 ../run/sshng2john.py:2 ``` ``` Harder to fix (Large amount of work). We may do these later, but for now we just document 7z_fmt_plug.c:3 Big change. I think this requires full decompress of 7z data. bench.c:1 This is the 'early init()' call to dynamic, -opencl* crypt(3) formats, since they need it to display. dynamic_fmt.c:2 x86-64.S:1 Warning about asm not being able to do multiplication on sparc. x86-sse.S:1 Warning about asm not being able to do multiplication on sparc. ``` **_THIS group**_ is the main list of items still not handled. ``` opencl_blockchain_fmt_plug.c(289): /* XXX we are assuming that "guid" will be found in the first block opencl_blockchain_fmt_plug.c(298): /* XXX more tests required? opencl_gpg_fmt_plug.c(178): return 8; // XXX 7z_fmt_plug.c(241):// XXX port Python code to C *OR* use code from LZMA SDK 7z_fmt_plug.c(313): return 0; // XXX don't be too eager! 7z_fmt_plug.c(316): // XXX test 2, "well-formed folder" test cq_fmt_plug.c(37):#define SALT_SIZE 64 // XXX double check this dynamic_fmt.c(6832):// XXX fix me at some point! gpg_fmt_plug.c(173): return 8; // XXX kwallet_fmt_plug.c(190): unsigned char buffer[0x10000]; // XXX respect the stack limits! lotus85_fmt_plug.c(52):#define LOTUS85_MIN_BLOB_SIZE 40 // XXX fictional value, but isn't this length fixed? ssh_ng_fmt_plug.c(267): if (pad < 4) { // XXX is this possible? if yes, will killing this result in too many false positives? cuda_rawsha512_fmt_plug.c(37):#define FORMAT_TAG "" // FIXME: "$SHA512$" // format tag not supported here! cuda_xsha512_fmt_plug.c(85): /* FIXME: How do we de-init cuda stuff? */ keystore_fmt_plug.c(284): /* FIXME: report cur_salt->data_length as tunable cost? */ listconf.c(101): * FIXME: Should all the listconf_list_*() functions get an additional stream listconf.c(123): /* FIXME: Should all the section names get printed instead? mask.c(1384): /* FIXME: enable the below at 2015-01-01 or later */ mkv.c(274): * FIXME: strsep() is not portable enough! mongodb_fmt_plug.c(300): /* FIXME: report user name length as 2nd cost? */ NETNTLMv2_fmt_plug.c(81):#define CLIENT_CHALL_LENGTH_MAX 1024 /* FIXME - Max Target Information Size Unknown */ office_fmt_plug.c(265): if (20 < hashSize) { // FIXME: Is this ever true? openssl_enc_fmt_plug.c(295): // FIXME handle more stuff openssl_enc_fmt_plug.c(339): // FIXME use padding check for CBC mode only openssl_enc_fmt_plug.c(426): * FIXME: if there wouldn't be so many false positives, sxc_fmt_plug.c(71): int cipher_type; // FIXME: cipher_type seems to be ignored ``` Here are the ones where OMP_SCALE lists work has not been done on this one. ``` cq_fmt_plug.c(18):#define OMP_SCALE 2048 // XXX dahua_fmt_plug.c(23):#define OMP_SCALE 2048 // XXX ecryptfs_fmt_plug.c(38):#define OMP_SCALE 8 // XXX lotus85_fmt_plug.c(26):#define OMP_SCALE 64 // XXX tune me! mdc2_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX mozilla_ng_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX net_md5_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX net_sha1_fmt_plug.c(26):#define OMP_SCALE 2048 // XXX rsvp_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX tcp_md5_fmt_plug.c(20):#define OMP_SCALE 2048 // XXX ```
bsakaguchi 2026-10-14 03:09:51 +07:00
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

Some of the // XXX are just for OMP_SCALE. The faster the format, the more OMP_SCALE depends on what CPU you've got - modern Intel often wants much higher figures than AMD iirc. After tuning (I usually tune for Intel) I use to change the comment to something like // tuned for core i7 (and sometimes // tuned for core i7 w/o HT).

<!-- gh-comment-id:66167913 --> @magnumripper commented on GitHub (Dec 8, 2014): Some of the `// XXX` are just for OMP_SCALE. The faster the format, the more OMP_SCALE depends on what CPU you've got - modern Intel often wants much higher figures than AMD iirc. After tuning (I usually tune for Intel) I use to change the comment to something like `// tuned for core i7` (and sometimes `// tuned for core i7 w/o HT`).
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

On a related note I've played with the idea of adding a shared function for calling CPUID at runtime. We actually have it already in x86.S and x86-64.S but we might want a function that we can call from anywhere. Then we could pick OMP_SCALE depending on some parameters - not only Intel vs. AMD but also HT vs not and other things.

<!-- gh-comment-id:66169077 --> @magnumripper commented on GitHub (Dec 8, 2014): On a related note I've played with the idea of adding a shared function for calling CPUID at runtime. We actually have it already in x86.S and x86-64.S but we might want a function that we can call from anywhere. Then we could pick OMP_SCALE depending on some parameters - not only Intel vs. AMD but also HT vs not and other things.
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

modern Intel often wants much higher figures than AMD iirc

It looks like it's the other way around, this is from current NT2 format:

#ifdef MMX_COEF
#if defined(_OPENMP)
#ifdef __XOP__
#define BLOCK_LOOPS                     (1024*1024)
#elif __AVX__
#define BLOCK_LOOPS                     4096 // tuned for i7 w/o HT
#else
#define BLOCK_LOOPS                     1 // Old CPUs won't work well with OMP
#endif
#else
#define BLOCK_LOOPS                     1 // Never change this
#endif
...

I use XOP to distinguish between AMD and Intel but calling CPUID would be a lot nicer.

<!-- gh-comment-id:66169549 --> @magnumripper commented on GitHub (Dec 8, 2014): > modern Intel often wants much higher figures than AMD iirc It looks like it's the other way around, this is from current NT2 format: ``` #ifdef MMX_COEF #if defined(_OPENMP) #ifdef __XOP__ #define BLOCK_LOOPS (1024*1024) #elif __AVX__ #define BLOCK_LOOPS 4096 // tuned for i7 w/o HT #else #define BLOCK_LOOPS 1 // Old CPUs won't work well with OMP #endif #else #define BLOCK_LOOPS 1 // Never change this #endif ... ``` I use XOP to distinguish between AMD and Intel but calling CPUID would be a lot nicer.
Author
Owner

@jfoug commented on GitHub (Dec 8, 2014):

At some point, we really should build some form of auto-tuner for this (like in generic). It really can make a pretty big difference, and at the same time, over doing this can really make a -test=0 painful and SLOW 😴

It might even be good to have this be something in john_local.conf (a section), even down to the format level.

One huge issue here, is that OMP_SCALE is a #define that modifies things at compile time. I am not 100% sure this is something that can always be adjusted at run time, but it 'may' be able to fully do at runtime.

<!-- gh-comment-id:66173494 --> @jfoug commented on GitHub (Dec 8, 2014): At some point, we really should build some form of auto-tuner for this (like in generic). It really can make a pretty big difference, and at the same time, over doing this can really make a -test=0 painful and SLOW :sleeping: It might even be good to have this be something in john_local.conf (a section), even down to the format level. One huge issue here, is that OMP_SCALE is a #define that modifies things at compile time. I am not 100% sure this is something that can always be adjusted at run time, but it 'may' be able to fully do at runtime.
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

More often than not, it's just a multiplier in init()

#ifdef _OPENMP
        int omp_t = omp_get_num_threads();

        self->params.min_keys_per_crypt *= omp_t;
        omp_t *= OMP_SCALE;
        self->params.max_keys_per_crypt *= omp_t;
#endif

Most OpenCL formats can take a per-format conf setting for GWS, we could do the same for OpenMP using some shared code. But only a few very fast formats are "picky" about the multipler, most do fine with something lite 64 for slow formats and 1024 for semi-fast ones.

<!-- gh-comment-id:66182352 --> @magnumripper commented on GitHub (Dec 8, 2014): More often than not, it's just a multiplier in init() ``` #ifdef _OPENMP int omp_t = omp_get_num_threads(); self->params.min_keys_per_crypt *= omp_t; omp_t *= OMP_SCALE; self->params.max_keys_per_crypt *= omp_t; #endif ``` Most OpenCL formats can take a per-format conf setting for GWS, we could do the same for OpenMP using some shared code. But only a few very fast formats are "picky" about the multipler, most do fine with something lite 64 for slow formats and 1024 for semi-fast ones.
Author
Owner

@magnumripper commented on GitHub (Dec 8, 2014):

we could do the same for OpenMP using some shared code

But let's leave this alone until post Jumbo-1...

<!-- gh-comment-id:66182751 --> @magnumripper commented on GitHub (Dec 8, 2014): > we could do the same for OpenMP using some shared code But let's leave this alone until post Jumbo-1...
Author
Owner

@jfoug commented on GitHub (Dec 8, 2014):

Certainly.

<!-- gh-comment-id:66186744 --> @jfoug commented on GitHub (Dec 8, 2014): Certainly.
Author
Owner

@jfoug commented on GitHub (Dec 9, 2014):

Here are the left over XXX (from ./src directory)

... Data moved to primary post on this thread ...

NOTE the raw hashes with OMP_SCALE 1 _SHOULD_ be handled prior to jumbo1 (IMHO)

These have all been handled and are NOT fixme's any longer
tiger_fmt_plug.c(28):#define OMP_SCALE               1 // XXX
md2_fmt_plug.c(28):#define OMP_SCALE               1 // FIXME
panama_fmt_plug.c(28):#define OMP_SCALE               1 // FIXME
skein_fmt_plug.c(30):#define OMP_SCALE               1 // FIXME
snefru_fmt_plug.c(30):#define OMP_SCALE               1 // FIXME
ripemd_fmt_plug.c(30):#define OMP_SCALE               1 // XXX

e9baae1

<!-- gh-comment-id:66356142 --> @jfoug commented on GitHub (Dec 9, 2014): Here are the left over XXX (from ./src directory) ... Data moved to primary post on this thread ... NOTE the raw hashes with OMP_SCALE 1 **_SHOULD**_ be handled prior to jumbo1 (IMHO) ``` These have all been handled and are NOT fixme's any longer tiger_fmt_plug.c(28):#define OMP_SCALE 1 // XXX md2_fmt_plug.c(28):#define OMP_SCALE 1 // FIXME panama_fmt_plug.c(28):#define OMP_SCALE 1 // FIXME skein_fmt_plug.c(30):#define OMP_SCALE 1 // FIXME snefru_fmt_plug.c(30):#define OMP_SCALE 1 // FIXME ripemd_fmt_plug.c(30):#define OMP_SCALE 1 // XXX ``` e9baae1
Author
Owner

@jfoug commented on GitHub (Dec 9, 2014):

OK, the 'easy' ones are fixed. MANY of the others are non issues but more research stuff. Also the OMP_SCALE ones. The post right above this one, lists all the items left in the ./src directory.

I will start tackling the ones in ../run, but MANY of them are in python code where I do not have examples to work with.

<!-- gh-comment-id:66373217 --> @jfoug commented on GitHub (Dec 9, 2014): OK, the 'easy' ones are fixed. MANY of the others are non issues but more research stuff. Also the OMP_SCALE ones. The post right above this one, lists all the items left in the ./src directory. I will start tackling the ones in ../run, but MANY of them are in python code where I do not have examples to work with.
Author
Owner

@jfoug commented on GitHub (Dec 10, 2014):

What about adding a new option --omp-tune that does a tuning session inside --test ?? It really should not be all that hard to do. That way, if we added the ability of these tuning params to be put into john.local.conf (or john.conf), then a user could easily tune a pre-build JtR, and set the proper values?

I think it would take a new flag (in format.params) listing this format is tunable, possibly it would not need any additional flag, simply make a new format function that if it is not pointing to the default, lists that this format can OMP tune itself. How does that sound?? Certainly NOT for jumbo-1, but is this something that sounds interesting? If so, we might make this a feature request issue.

<!-- gh-comment-id:66388207 --> @jfoug commented on GitHub (Dec 10, 2014): What about adding a new option --omp-tune that does a tuning session inside --test ?? It really should not be all that hard to do. That way, if we added the ability of these tuning params to be put into john.local.conf (or john.conf), then a user could easily tune a pre-build JtR, and set the proper values? I think it would take a new flag (in format.params) listing this format is tunable, possibly it would not need any additional flag, simply make a new format function that if it is not pointing to the default, lists that this format can OMP tune itself. How does that sound?? Certainly NOT for jumbo-1, but is this something that sounds interesting? If so, we might make this a feature request issue.
Author
Owner

@magnumripper commented on GitHub (Dec 10, 2014):

Hmmm yes that is a good idea. For any format that does not hard code MAX_KEYS_PER_CRYPT or OMP_SCALE in a bad way, it should be as easy as core setting fmt->params.max_keys_per_crypt and benchmark. We could start with kpc==num_threads and then double kpc until performance drops (or does not increase). That would not even need a new format function.

<!-- gh-comment-id:66419974 --> @magnumripper commented on GitHub (Dec 10, 2014): Hmmm yes that is a good idea. For any format that does not hard code MAX_KEYS_PER_CRYPT or OMP_SCALE in a bad way, it should be as easy as core setting fmt->params.max_keys_per_crypt and benchmark. We could start with kpc==num_threads and then double kpc until performance drops (or does not increase). That would not even need a new format function.
Author
Owner

@jfoug commented on GitHub (Dec 10, 2014):

Not usable in that manner. First off, fmt-params.max_keys_per_crypt should never be set down. What happens when you have mmx_coef==4 and md5_para==3 (i.e. 12), and you have 8 cores. Not a good solution.

But overall, ,the idea is great. Simply run bench, get results. double fmt-params.max_keys_per_crypt, run again, save results, and repeat, run until user exits.

In this manner, you would know some scaling factor. In fact, a scaling factor may be a better way to go, than a hard coded OMP_SCALE. That could even be 'hidden' from having to change ANY format. Upon running, if a format has the scaling factor set, then john core simply auto increases fmt->params.max_keys_per_crypt prior (or in) the format init.

It may then be good to add a flag to the formats that use OMP scaling (or do all OMP formats have scaling ??) so that a script could be made to first interrogate the list of formats, showing which ones 'can' be tuned, and then setting to loop through and tune them, hell, it could even update the john.local.conf with its findings. Simply start up the tuner before going to bed, and the next morning, you would have all formats running at 'ideal' levels.

I like this. I am going to make an enhancement about this. so we do not lose the information.

<!-- gh-comment-id:66434995 --> @jfoug commented on GitHub (Dec 10, 2014): Not usable in that manner. First off, fmt-params.max_keys_per_crypt should never be set down. What happens when you have mmx_coef==4 and md5_para==3 (i.e. 12), and you have 8 cores. Not a good solution. But overall, ,the idea is great. Simply run bench, get results. double fmt-params.max_keys_per_crypt, run again, save results, and repeat, run until user exits. In this manner, you would know some scaling factor. In fact, a scaling factor may be a better way to go, than a hard coded OMP_SCALE. That could even be 'hidden' from having to change ANY format. Upon running, if a format has the scaling factor set, then john core simply auto increases fmt->params.max_keys_per_crypt prior (or in) the format init. It may then be good to add a flag to the formats that use OMP scaling (or do all OMP formats have scaling ??) so that a script could be made to first interrogate the list of formats, showing which ones 'can' be tuned, and then setting to loop through and tune them, hell, it could even update the john.local.conf with its findings. Simply start up the tuner before going to bed, and the next morning, you would have all formats running at 'ideal' levels. I like this. I am going to make an enhancement about this. so we do not lose the information.
Author
Owner

@magnumripper commented on GitHub (Dec 10, 2014):

[moved to #875]

<!-- gh-comment-id:66512829 --> @magnumripper commented on GitHub (Dec 10, 2014): [moved to #875]
Author
Owner

@jfoug commented on GitHub (Dec 13, 2014):

I believe this issue can now be closed, but I want to give others a chance to look things over before I close it.

<!-- gh-comment-id:66874040 --> @jfoug commented on GitHub (Dec 13, 2014): I believe this issue can now be closed, but I want to give others a chance to look things over before I close it.
Author
Owner

@frank-dittrich commented on GitHub (Dec 13, 2014):

There's at least one FIXME comment in c3_fmt.c that requires changes.

$ grep -C 2 -n FIXME c3_fmt.c
713-            "algorithm [1:descrypt 2:md5crypt 3:sunmd5 4:bcrypt 5:sha256crypt 6:sha512crypt]",
714-#if 1
715:            "DUMMY algorithm specific tunable cost", // FIXME
716-#endif
$ ./john --format=crypt hashes.*
...
Loaded 142 password hashes with 67 different salts (crypt, generic crypt(3) [?/64])
Loaded hashes with cost 1 (algorithm [1:descrypt 2:md5crypt 3:sunmd5 4:bcrypt 5:sha256crypt 6:sha512crypt]) varying from 0 to 6
Loaded hashes with cost 2 (DUMMY algorithm specific tunable cost) varying from 0 to 6

What needs to be done:

  1. s/DUMMY //
  2. instead of just reporting the algorithm a second time, 1 should be reported for algorithms with no tunable cost (descrypt), iteration count should be reported for those algorithms with a tunable iteration count.
<!-- gh-comment-id:66894245 --> @frank-dittrich commented on GitHub (Dec 13, 2014): There's at least one FIXME comment in `c3_fmt.c` that requires changes. ``` $ grep -C 2 -n FIXME c3_fmt.c 713- "algorithm [1:descrypt 2:md5crypt 3:sunmd5 4:bcrypt 5:sha256crypt 6:sha512crypt]", 714-#if 1 715: "DUMMY algorithm specific tunable cost", // FIXME 716-#endif ``` ``` $ ./john --format=crypt hashes.* ... Loaded 142 password hashes with 67 different salts (crypt, generic crypt(3) [?/64]) Loaded hashes with cost 1 (algorithm [1:descrypt 2:md5crypt 3:sunmd5 4:bcrypt 5:sha256crypt 6:sha512crypt]) varying from 0 to 6 Loaded hashes with cost 2 (DUMMY algorithm specific tunable cost) varying from 0 to 6 ``` What needs to be done: 1. `s/DUMMY //` 2. instead of just reporting the algorithm a second time, 1 should be reported for algorithms with no tunable cost (descrypt), iteration count should be reported for those algorithms with a tunable iteration count.
Author
Owner

@jfoug commented on GitHub (Dec 14, 2014):

@frank-dittrich please validate 502106d with your hashes.* file(s)

<!-- gh-comment-id:66905890 --> @jfoug commented on GitHub (Dec 14, 2014): @frank-dittrich please validate 502106d with your hashes.\* file(s)
Author
Owner

@frank-dittrich commented on GitHub (Dec 14, 2014):

@jfoug great, thanks.

<!-- gh-comment-id:66907456 --> @frank-dittrich commented on GitHub (Dec 14, 2014): @jfoug great, thanks.
Author
Owner

@frank-dittrich commented on GitHub (Dec 14, 2014):

Would it be "better" to report the hard coded number of iterations for cryptmd5 and "rename" algorithm specific tunable cost to iteration count (or iterations), at least as long as the format specific cost parameter is the number of iterations for all algorithms supported by crypt(3)?

<!-- gh-comment-id:66907497 --> @frank-dittrich commented on GitHub (Dec 14, 2014): Would it be "better" to report the hard coded number of iterations for cryptmd5 and "rename" `algorithm specific tunable cost` to `iteration count` (or `iterations`), at least as long as the format specific cost parameter is the number of iterations for all algorithms supported by crypt(3)?
Author
Owner

@jfoug commented on GitHub (Dec 14, 2014):

Are there other XXX or FIXME's that would hold up jumbo1 Frank has replied. It would be nice to hear from @magnumripper and @kholia about these. Yes, I know many of these are things that need to be looked at and fixed. But are any of them 'critical' for this jumbo?

If not, then I will re-assign this to the jumbo-2 (so it does not simply 'go away')

<!-- gh-comment-id:66921470 --> @jfoug commented on GitHub (Dec 14, 2014): Are there other XXX or FIXME's that would hold up jumbo1 Frank has replied. It would be nice to hear from @magnumripper and @kholia about these. Yes, I know many of these are things that need to be looked at and fixed. But are any of them 'critical' for this jumbo? If not, then I will re-assign this to the jumbo-2 (so it does not simply 'go away')
Author
Owner

@magnumripper commented on GitHub (Dec 14, 2014):

I'm not aware of any that I feel responsible for and that needs a fix now.

<!-- gh-comment-id:66925654 --> @magnumripper commented on GitHub (Dec 14, 2014): I'm not aware of any that I feel responsible for and that needs a fix now.
Author
Owner

@jfoug commented on GitHub (Dec 14, 2014):

I will wait a bit to hear from @kholia ( I will poke him directly with an email also) A lot of these are his. I really would like to hear from him. I feel none of them are show stoppers, and the open issue should just be moved to J2. But I will wait on him.

<!-- gh-comment-id:66932614 --> @jfoug commented on GitHub (Dec 14, 2014): I will wait a bit to hear from @kholia ( I will poke him directly with an email also) A lot of these are his. I really would like to hear from him. I feel none of them are show stoppers, and the open issue should just be moved to J2. But I will wait on him.
Author
Owner

@frank-dittrich commented on GitHub (Dec 14, 2014):

Several of my FIXMEs also are comments added to Dhiru's code, because I felt something needed to be done, but I didn't have the energy...

<!-- gh-comment-id:66932739 --> @frank-dittrich commented on GitHub (Dec 14, 2014): Several of my FIXMEs also are comments added to Dhiru's code, because I felt something needed to be done, but I didn't have the energy...
Author
Owner

@kholia commented on GitHub (Dec 15, 2014):

@jfoug I had a quick look and things are OK from my side as well. Go ahead 👍

<!-- gh-comment-id:66951668 --> @kholia commented on GitHub (Dec 15, 2014): @jfoug I had a quick look and things are OK from my side as well. Go ahead :+1:
Author
Owner

@magnumripper commented on GitHub (Aug 18, 2016):

Closing. We'll start over with a similar issue some [very] rainy day

<!-- gh-comment-id:240873348 --> @magnumripper commented on GitHub (Aug 18, 2016): Closing. We'll start over with a similar issue some [very] rainy day
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#475
No description provided.