Add OpenCL SHA384 format - #6025
Open
rofl0r wants to merge 1 commit into
Open
Conversation
Implemented OpenCL SHA384 cracking support based on the GPL'd SHA512 OpenCL implementation. Four files added: - run/opencl/sha384_kernel.cl: Kernel based on sha512_gpl_kernel.cl, overrides H0-H7 with SHA384 initial values (FIPS 180-4), renames sha512_block to sha384_block. Round constants and Sigma/sigma macros are identical to SHA512; truncation to 48 bytes handled at C level. - src/rawSHA384_common.h: Common header with DIGEST_SIZE=48, FORMAT_TAG="$SHA384$", and sha384_common_* function declarations. - src/rawSHA384_common_plug.c: Test vectors (verified against Python hashlib.sha384), SHA384 initial values for binary_rev, and valid/binary/split implementations. - src/opencl_rawsha384_fmt_plug.c: Main format plugin based on opencl_rawsha512_gpl_fmt_plug.c, stripped of XSHA512 variant. CPU fallback uses SHA384_Init/Update/Final. Self-test passes (11 test vectors), benchmark runs, and password cracking verified end-to-end.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented OpenCL SHA384 cracking support based on the GPL'd SHA512 OpenCL implementation. Four files added:
run/opencl/sha384_kernel.cl: Kernel based on sha512_gpl_kernel.cl, overrides H0-H7 with SHA384 initial values (FIPS 180-4), renames sha512_block to sha384_block. Round constants and Sigma/sigma macros are identical to SHA512; truncation to 48 bytes handled at C level.
src/rawSHA384_common.h: Common header with DIGEST_SIZE=48, FORMAT_TAG="$SHA384$", and sha384_common_* function declarations.
src/rawSHA384_common_plug.c: Test vectors (verified against Python hashlib.sha384), SHA384 initial values for binary_rev, and valid/binary/split implementations.
src/opencl_rawsha384_fmt_plug.c: Main format plugin based on opencl_rawsha512_gpl_fmt_plug.c, stripped of XSHA512 variant. CPU fallback uses SHA384_Init/Update/Final.
Self-test passes (11 test vectors), benchmark runs, and password cracking verified end-to-end.