Skip to content

Commit

Permalink
SM3 format: Tune MAX_KEYS_PER_CRYPT and OMP_SCALE
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Jun 29, 2024
1 parent 94b2332 commit 2f8bde6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sm3_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ john_register_one(&fmt_sm3);
#define SALT_SIZE 0
#define SALT_ALIGN 1
#define MIN_KEYS_PER_CRYPT 1
#define MAX_KEYS_PER_CRYPT 32
#define MAX_KEYS_PER_CRYPT 64

#ifndef OMP_SCALE
#define OMP_SCALE 4
#define OMP_SCALE 32
#endif

static struct fmt_tests sm3_tests[] = {
Expand Down Expand Up @@ -189,7 +189,7 @@ struct fmt_main fmt_sm3 = {
SALT_ALIGN,
MIN_KEYS_PER_CRYPT,
MAX_KEYS_PER_CRYPT,
FMT_CASE | FMT_8_BIT | FMT_OMP,
FMT_CASE | FMT_8_BIT | FMT_OMP | FMT_OMP_BAD,
{ NULL},
{ FORMAT_TAG},
sm3_tests
Expand Down

0 comments on commit 2f8bde6

Please sign in to comment.