[GH-ISSUE #495] fmt_default_binary_hash usage #196

Closed
opened 2026-10-14 02:56:02 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @frank-dittrich on GitHub (Jan 30, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/495

I'm probably blind, because I couldn't find an option to search open issues for certain keywords....

(bleeding-jumbo)src $ git grep fmt_default_binary_hash,
DOMINOSEC_fmt_plug.c:                   fmt_default_binary_hash,
DOMINOSEC_fmt_plug.c:                   fmt_default_binary_hash,
DOMINOSEC_fmt_plug.c:                   fmt_default_binary_hash,
DOMINOSEC_fmt_plug.c:                   fmt_default_binary_hash,
EPI_fmt_plug.c:                 fmt_default_binary_hash,
EPI_fmt_plug.c:                 fmt_default_binary_hash,
EPI_fmt_plug.c:                 fmt_default_binary_hash,
EPI_fmt_plug.c:                 fmt_default_binary_hash,
KRB4_fmt_plug.c:                        fmt_default_binary_hash,
KRB4_fmt_plug.c:                        fmt_default_binary_hash,
KRB4_fmt_plug.c:                        fmt_default_binary_hash,
KRB4_fmt_plug.c:                        fmt_default_binary_hash,
KRB5_fmt_plug.c:                        fmt_default_binary_hash,
KRB5_fmt_plug.c:                        fmt_default_binary_hash,
KRB5_fmt_plug.c:                        fmt_default_binary_hash,
KRB5_fmt_plug.c:                        fmt_default_binary_hash,
SKEY_fmt.c:                     fmt_default_binary_hash,
SKEY_fmt.c:                     fmt_default_binary_hash,
krb5-18_fmt.c:                  fmt_default_binary_hash,
krb5-18_fmt.c:                  fmt_default_binary_hash,
krb5-18_fmt.c:                  fmt_default_binary_hash,
krb5-18_fmt.c:                  fmt_default_binary_hash,
krb5-23_fmt.c:                  fmt_default_binary_hash,
krb5-23_fmt.c:                  fmt_default_binary_hash,
krb5-23_fmt.c:                  fmt_default_binary_hash,
krb5-23_fmt.c:                  fmt_default_binary_hash,
lotus85_fmt_plug.c:                     fmt_default_binary_hash,
lotus85_fmt_plug.c:                     fmt_default_binary_hash,

This results in suboptimal performance and warnings like this one:

 ./john 4-04.EPI.pw-uncracked --incremental
Warning: excessive partial hash collisions detected
(cause: the "format" lacks proper binary_hash() function definitions)

Originally created by @frank-dittrich on GitHub (Jan 30, 2014). Original GitHub issue: https://github.com/openwall/john/issues/495 I'm probably blind, because I couldn't find an option to search open issues for certain keywords.... ``` (bleeding-jumbo)src $ git grep fmt_default_binary_hash, DOMINOSEC_fmt_plug.c: fmt_default_binary_hash, DOMINOSEC_fmt_plug.c: fmt_default_binary_hash, DOMINOSEC_fmt_plug.c: fmt_default_binary_hash, DOMINOSEC_fmt_plug.c: fmt_default_binary_hash, EPI_fmt_plug.c: fmt_default_binary_hash, EPI_fmt_plug.c: fmt_default_binary_hash, EPI_fmt_plug.c: fmt_default_binary_hash, EPI_fmt_plug.c: fmt_default_binary_hash, KRB4_fmt_plug.c: fmt_default_binary_hash, KRB4_fmt_plug.c: fmt_default_binary_hash, KRB4_fmt_plug.c: fmt_default_binary_hash, KRB4_fmt_plug.c: fmt_default_binary_hash, KRB5_fmt_plug.c: fmt_default_binary_hash, KRB5_fmt_plug.c: fmt_default_binary_hash, KRB5_fmt_plug.c: fmt_default_binary_hash, KRB5_fmt_plug.c: fmt_default_binary_hash, SKEY_fmt.c: fmt_default_binary_hash, SKEY_fmt.c: fmt_default_binary_hash, krb5-18_fmt.c: fmt_default_binary_hash, krb5-18_fmt.c: fmt_default_binary_hash, krb5-18_fmt.c: fmt_default_binary_hash, krb5-18_fmt.c: fmt_default_binary_hash, krb5-23_fmt.c: fmt_default_binary_hash, krb5-23_fmt.c: fmt_default_binary_hash, krb5-23_fmt.c: fmt_default_binary_hash, krb5-23_fmt.c: fmt_default_binary_hash, lotus85_fmt_plug.c: fmt_default_binary_hash, lotus85_fmt_plug.c: fmt_default_binary_hash, ``` This results in suboptimal performance and warnings like this one: ``` ./john 4-04.EPI.pw-uncracked --incremental Warning: excessive partial hash collisions detected (cause: the "format" lacks proper binary_hash() function definitions) ```
bsakaguchi 2026-10-14 02:56:02 +07:00
Author
Owner

@magnumripper commented on GitHub (Jan 30, 2014):

Yes, it's a major flaw issues are not searchable. (see below)

Your grep is flawed. Most formats that use the default hash function look like this, no trailing comma:

    {
        fmt_default_binary_hash
    },

However, most of the 55 formats are "salt only" non-hashes, so they need to be left out. Here's a better search (I think):

$ grep -lE 'fmt_default_binary_hash,?$' *.c | xargs grep -L fmt_default_binary, 
DOMINOSEC_fmt_plug.c
EPI_fmt_plug.c
krb5-18_fmt.c
krb5-23_fmt.c

So it's just four formats (not looking in unused/). That's doable, the situation is much worse for fmt_default_salt_hash() but that'll be another issue. And maybe that is not an issue at all, since this may only be important for formats with a too small salt size, like descrypt - or broken distribution, like mssql.

<!-- gh-comment-id:33736750 --> @magnumripper commented on GitHub (Jan 30, 2014): ~~Yes, it's a major flaw issues are not searchable.~~ (see below) Your grep is flawed. Most formats that use the default hash function look like this, no trailing comma: ``` { fmt_default_binary_hash }, ``` However, most of the 55 formats are "salt only" non-hashes, so they need to be left out. Here's a better search (I think): ``` $ grep -lE 'fmt_default_binary_hash,?$' *.c | xargs grep -L fmt_default_binary, DOMINOSEC_fmt_plug.c EPI_fmt_plug.c krb5-18_fmt.c krb5-23_fmt.c ``` So it's just four formats (not looking in unused/). That's doable, the situation is much worse for fmt_default_salt_hash() but that'll be another issue. And maybe that is not an issue at all, since this may only be important for formats with a too small salt size, like descrypt - or broken distribution, like mssql.
Author
Owner

@magnumripper commented on GitHub (Jan 30, 2014):

To do:

  • Dominosec
  • EPI
  • KRB5-18
  • KRB5-23
<!-- gh-comment-id:33738113 --> @magnumripper commented on GitHub (Jan 30, 2014): To do: - [x] Dominosec - [x] EPI - [x] KRB5-18 - [x] KRB5-23
Author
Owner

@magnumripper commented on GitHub (Jan 30, 2014):

Oh, man I just found out how to search issues. The normal search field in top of page will search issues too. How did I not think of that until now? Also, https://help.github.com/articles/searching-issues

<!-- gh-comment-id:33741012 --> @magnumripper commented on GitHub (Jan 30, 2014): Oh, man I just found out how to search issues. The _normal search field_ in top of page will search issues too. How did I not think of that until now? Also, https://help.github.com/articles/searching-issues
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#196
No description provided.