openwall / openwall/john

Intrinsics: md5crypt mmxput()

Open
#1,730 1 comment 0 reactions 1 assignee View on GitHub

@magnumripper is already working on this.

Since May 21, 2019.

enhancement
Dominant language
C
Stars
13.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

http://www.openwall.com/lists/john-dev/2015/09/05/3

magnum, Jim, Simon, Lei -

Some speedup for md5crypt on CPU might be possible through vectorizing
the mmxput() functions, or through use of SHLD/SHRD instructions
(available since 386) or other archs' equivalents (I think ARM has this
too) in mmxput3() when not vectorized (somehow gcc does not do it for
us). These functions are similar to buf_update() in cryptmd5_kernel.cl,
where I've added uses of amd_bitalign() and NVIDIA's funnel shifter
recently (analogous to SHLD/SHRD), and which obviously is processed on
the SIMD units on GPUs (can do it on CPUs as well, although no SHLD/SHRD
then, unless a given CPU architecture has them in SIMD form as well -
need to look into that).

Alexander

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.