mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2313] Add 64 bit NEON support #1547
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jfoug on GitHub (Oct 29, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2313
I have a raspberry pi3, which is quad-core 64 NEON. I will work at getting full support added for this chip.
@magnumripper commented on GitHub (Oct 31, 2016):
Cool. I recall @lei-zz did some work with NEON in GSoC. Was that 32-bit only?
@jfoug commented on GitHub (Oct 31, 2016):
All we have right now is 32 bit neon. I am not sure the neon code is any better or not (note, there appears to be many flavors, I am just getting started). But the pi3 IS a 64 bit CPU (first one for the pi family). So even if there are not 'better' neon instructions, the 64 bit should be used, if possible. NOTE, I am still just getting started with the OS. Lots to learn.
@ghost commented on GitHub (Dec 14, 2017):
ICYMI; the neon test (seen below) used in configure.ac succeeds on aarch64 (__ARM_64BIT_STATE - 64-bit targets only).
@jfoug commented on GitHub (Dec 14, 2017):
The Rpi3 is 32 bit, and NEON worked fine. It is a 64 bit CPU, but there is no 64 bit OS built for it. There are sketchy instructions on how to build and bootstrap 64 bit yourself, but that was over my head. So NEON is working fine on 32 bit.
@ghost commented on GitHub (Dec 14, 2017):
I was not talking about rpi. Anyway, I can find people that disagree with you.
@ghost commented on GitHub (Dec 15, 2017):
Well, I posted https://github.com/magnumripper/JohnTheRipper/issues/2313#issuecomment-351833398 because I was able to "(kind of)" do it. I don't have any hardware, I only can access a build server [1]. So, it is no more than a POC.
[edited]
[1] I can only submit something and wait for a result. No SSH.
😕 People say mainframes used to work like this (I guess I'm becoming an old pal 😢).
Assumptions
-mfpu=neonis an arm (32-bit) compiler option. The aarch64 (64-bit) compiler do not accept it.@magnumripper commented on GitHub (Dec 24, 2017):
I now have one running Fedora 64-bit (and another running 32-bit) and will test stuff on them. They are funny toys, and dirt cheap.
@magnumripper commented on GitHub (Dec 24, 2017):
It's fairly strange that an RPi would easily outrun the first 10 or so full-size computers that I owned (even put together) and still is cheaper than a bottle of mediocre whisky.
:scratches head:
@magnumripper commented on GitHub (Apr 8, 2018):
Last time I tried, 64-bit Raspberry Pi works fine, including with NEON (which is auto-detected by
./configure)@solardiz commented on GitHub (Jun 27, 2018):
IIRC, when I tested jumbo on an aarch64 Linux system which lists asimd in /proc/cpuinfo, NEON wasn't detected. There's no __ARM_NEON in pre-defined cpp macros on that system. Maybe we should check for Aarch64 and assume that NEON is supported on all of those (I think it must be, even if some tiny as well as some many-core hardware actually "emulates" it with narrower execution units, so speedup from it is uncertain, but at least the code should run).
@magnumripper commented on GitHub (Jun 27, 2018):
That and some other things is what happened between my prior two comments in this issue. Last time I built 64-bit RPi, NEON was detected (indeed inferred from aarch64 IIRC) and everything was fine. Right now I don't have any Pi with 64-bit OS running but I'm planning that ASAP for other reasons so I'll re-check JtR functionality then.
@solardiz commented on GitHub (Jun 27, 2018):
Great. I'll need to retest as well. There are 64-bit ARM machines in GCC Compile Farm, you could test on those.
@ghost commented on GitHub (Jun 27, 2018):
The NEON detection per se is working (as it was).
I'm not saying it works in every CPU.