/sm3crack

cracker for sm3crypt hashes

Primary LanguageC

sm3crypt cracker used for CMIYC 2024 based on xcrypt PR.

the cracker is single-thread, but can be made multithreaded using
my jobflow program like so:

    john -session=foobar -stdout -mask='Aksha#?d?d?d?d' | jobflow -threads 8 -bulk 4K -exec ./sm3 hashes.sm3

the jobflow program passes stdin in chunks of "bulk" bytes to avoid
syscall overhead.

build:

    echo "CFLAGS = -mavx -msse2 -O3 -g0 -flto -std=gnu99 -static" > config.mak
    make

if you build for non-x86_64 platform, remove the #include "mymemcpy.c" and
#define memcpy mymemcpy from crypt-sm3.c.