@@ -370,7 +370,6 @@ linux-x86-64-xop:
370
370
CFLAGS="$(CFLAGS) -mxop -DHAVE_CRYPT -DHAVE_LIBDL" \
371
371
ASFLAGS="$(ASFLAGS) -mxop" \
372
372
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
373
- AESNI_ARCH=64 YASM_FORMAT="elf64"
374
373
@echo "Failing after this point just means some helper tools did not build:"
375
374
$(MAKE_ORIG) $(PROJ_PCAP)
376
375
@echo "All done"
@@ -384,7 +383,6 @@ linux-x86-64-avx:
384
383
CFLAGS="$(CFLAGS) -mavx -DHAVE_CRYPT -DHAVE_LIBDL" \
385
384
ASFLAGS="$(ASFLAGS) -mavx" \
386
385
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
387
- AESNI_ARCH=64 YASM_FORMAT="elf64"
388
386
@echo "Failing after this point just means some helper tools did not build:"
389
387
$(MAKE_ORIG) $(PROJ_PCAP)
390
388
@echo "All done"
@@ -397,7 +395,6 @@ linux-x86-64-opencl:
397
395
CFLAGS="$(CFLAGS) -I$(OCLROOT)/include -DHAVE_CRYPT -DHAVE_OPENCL -DHAVE_LIBDL -march=native" \
398
396
ASFLAGS="$(ASFLAGS) -march=native" \
399
397
LDFLAGS="$(LDFLAGS) -L$(OCLROOT)/lib/x86_64 -L$(OCLROOT)/lib64 -lcrypt -lOpenCL -ldl -march=native" \
400
- AESNI_ARCH=64 YASM_FORMAT="elf64"
401
398
@echo "Failing after this point just means some helper tools did not build:"
402
399
$(MAKE_ORIG) $(PROJ_PCAP)
403
400
@echo "All done"
@@ -410,7 +407,6 @@ linux-x86-64-native:
410
407
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -march=native" \
411
408
ASFLAGS="$(ASFLAGS) -march=native" \
412
409
LDFLAGS="$(LDFLAGS) -lcrypt -ldl -march=native" \
413
- AESNI_ARCH=64 YASM_FORMAT="elf64"
414
410
@echo "Failing after this point just means some helper tools did not build:"
415
411
$(MAKE_ORIG) $(PROJ_PCAP)
416
412
@echo "All done"
@@ -423,7 +419,6 @@ linux-X32-native:
423
419
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -march=native -mx32" \
424
420
ASFLAGS="$(ASFLAGS) -march=native -mx32" \
425
421
LDFLAGS="$(LDFLAGS) -lcrypt -ldl -march=native -mx32" \
426
- AESNI_ARCH=64 YASM_FORMAT="elfx32"
427
422
@echo "Failing after this point just means some helper tools did not build:"
428
423
$(MAKE_ORIG) $(PROJ_PCAP)
429
424
@echo "All done"
@@ -436,7 +431,6 @@ linux-X32:
436
431
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -mx32" \
437
432
ASFLAGS="$(ASFLAGS) -mx32" \
438
433
LDFLAGS="$(LDFLAGS) -lcrypt -ldl -mx32" \
439
- AESNI_ARCH=64 YASM_FORMAT="elfx32"
440
434
@echo "Failing after this point just means some helper tools did not build:"
441
435
$(MAKE_ORIG) $(PROJ_PCAP)
442
436
@echo "All done"
@@ -448,7 +442,6 @@ linux-x86-64:
448
442
JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86-64.o simd-intrinsics.o" \
449
443
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL" \
450
444
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
451
- AESNI_ARCH=64 YASM_FORMAT="elf64"
452
445
@echo "Failing after this point just means some helper tools did not build:"
453
446
$(MAKE_ORIG) $(PROJ_PCAP)
454
447
@echo "All done"
@@ -462,7 +455,6 @@ linux-x86-64-clang:
462
455
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
463
456
CPP="clang" CC="clang" AS="clang" LD="clang" CXX="clang++" \
464
457
OPT_INLINE="$(OPT_NORMAL)" \
465
- AESNI_ARCH=64 YASM_FORMAT="elf64"
466
458
@echo "Failing after this point just means some helper tools did not build:"
467
459
$(MAKE_ORIG) $(PROJ_PCAP) CC="clang"
468
460
@echo "All done"
@@ -475,7 +467,6 @@ linux-x86-64-clang-debug:
475
467
CFLAGS="-Wall -c -g -O1 -faddress-sanitizer -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL $(HAVE_LIBGMP) $(JOHN_CFLAGS)" \
476
468
LDFLAGS="-L/usr/local/lib $(LDFLAGS_OPENSSL) -lm -lz -lcrypt -ldl -faddress-sanitizer $(GMP_LDFLAGS) $(JOHN_LDFLAGS)" \
477
469
CPP="clang" CC="clang" AS="clang" LD="clang" CXX="clang++" \
478
- AESNI_ARCH=64 YASM_FORMAT="elf64"
479
470
@echo "Failing after this point just means some helper tools did not build:"
480
471
$(MAKE_ORIG) $(PROJ_PCAP) \
481
472
CFLAGS="-Wall -c -g -O1 -faddress-sanitizer -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL $(HAVE_LIBGMP) $(JOHN_CFLAGS)" \
@@ -490,7 +481,6 @@ linux-x86-64-newgcc-debug:
490
481
JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86-64.o simd-intrinsics.o" \
491
482
CFLAGS="-Wall -c -g -O1 -fsanitize=address -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL $(HAVE_LIBGMP) $(JOHN_CFLAGS)" \
492
483
LDFLAGS="-L/usr/local/lib $(LDFLAGS_OPENSSL) -lm -lz -lcrypt -ldl -fsanitize=address $(GMP_LDFLAGS) $(JOHN_LDFLAGS)" \
493
- AESNI_ARCH=64 YASM_FORMAT="elf64"
494
484
@echo "Failing after this point just means some helper tools did not build:"
495
485
$(MAKE_ORIG) $(PROJ_PCAP) \
496
486
CFLAGS="-Wall -c -g -O1 -fsanitize=address -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL $(HAVE_LIBGMP) $(JOHN_CFLAGS)" \
@@ -506,7 +496,6 @@ linux-x86-64-icc:
506
496
ASFLAGS="-c -xHost $(JOHN_ASFLAGS)" \
507
497
LDFLAGS="-lm $(LDFLAGS_OPENSSL) -ipo -static-intel -lcrypt -ldl -lz $(ICCOMPFLAGS) -s $(GMP_LDFLAGS) $(JOHN_LDFLAGS)" \
508
498
CPP="icc" CC="icc" AS="icc" LD="icc" \
509
- AESNI_ARCH=64 YASM_FORMAT="elf64"
510
499
@echo "Failing after this point just means some helper tools did not build:"
511
500
$(MAKE_ORIG) $(PROJ_PCAP) CPP="icc" CC="icc" AS="icc" LD="icc"
512
501
@echo "All done"
@@ -519,7 +508,6 @@ linux-x86-64-32-native:
519
508
CFLAGS="$(CFLAGS) -m32 -msse2 -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE -march=native" \
520
509
ASFLAGS="$(ASFLAGS) -m32 -msse2 -march=native" \
521
510
LDFLAGS="$(LDFLAGS) -m32 -lcrypt -ldl -march=native" \
522
- AESNI_ARCH=86 YASM_FORMAT="elf32"
523
511
@echo "Failing after this point just means some helper tools did not build:"
524
512
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32" LDFLAGS="$(LDFLAGS) -m32"
525
513
@echo "All done"
@@ -532,7 +520,6 @@ linux-x86-64-32-sse2:
532
520
CFLAGS="$(CFLAGS) -m32 -msse2 -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
533
521
ASFLAGS="$(ASFLAGS) -m32 -msse2" \
534
522
LDFLAGS="$(LDFLAGS) -m32 -lcrypt -ldl" \
535
- AESNI_ARCH=86 YASM_FORMAT="elf32"
536
523
@echo "Failing after this point just means some helper tools did not build:"
537
524
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32" LDFLAGS="$(LDFLAGS) -m32"
538
525
@echo "All done"
@@ -545,7 +532,6 @@ linux-x86-64-32-sse2asm:
545
532
CFLAGS="$(CFLAGS) -m32 -msse2 -DHAVE_CRYPT -DHAVE_LIBDL -DJOHN_DISABLE_INTRINSICS -D_LARGEFILE64_SOURCE" \
546
533
ASFLAGS="$(ASFLAGS) -m32 -msse2" \
547
534
LDFLAGS="$(LDFLAGS) -m32 -lcrypt -ldl" \
548
- AESNI_ARCH=86 YASM_FORMAT="elf32"
549
535
@echo "Failing after this point just means some helper tools did not build:"
550
536
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32" LDFLAGS="$(LDFLAGS) -m32"
551
537
@echo "All done"
@@ -558,7 +544,6 @@ linux-x86-64-32-mmx:
558
544
CFLAGS="$(CFLAGS) -m32 -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
559
545
ASFLAGS="$(ASFLAGS) -m32" \
560
546
LDFLAGS="$(LDFLAGS) -m32 -lcrypt -ldl" \
561
- AESNI_ARCH=86 YASM_FORMAT="elf32"
562
547
@echo "Failing after this point just means some helper tools did not build:"
563
548
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32" LDFLAGS="$(LDFLAGS) -m32"
564
549
@echo "All done"
@@ -571,7 +556,6 @@ linux-x86-64-32-any:
571
556
CFLAGS="$(CFLAGS) -m32 -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
572
557
ASFLAGS="$(ASFLAGS) -m32" \
573
558
LDFLAGS="$(LDFLAGS) -m32 -lcrypt -ldl" \
574
- AESNI_ARCH=86 YASM_FORMAT="elf32"
575
559
@echo "Failing after this point just means some helper tools did not build:"
576
560
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32" LDFLAGS="$(LDFLAGS) -m32"
577
561
@echo "All done"
@@ -605,7 +589,6 @@ linux-x86-xop:
605
589
CFLAGS="$(CFLAGS) -m32 -mxop -DHAVE_CRYPT -D_LARGEFILE64_SOURCE" \
606
590
ASFLAGS="$(ASFLAGS) -m32 -mxop" \
607
591
LDFLAGS="$(LDFLAGS) -m32 -lcrypt" \
608
- AESNI_ARCH=86 YASM_FORMAT="elf32"
609
592
@echo "Failing after this point just means some helper tools did not build:"
610
593
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32"
611
594
@echo "All done"
@@ -619,7 +602,6 @@ linux-x86-avx:
619
602
CFLAGS="$(CFLAGS) -m32 -mavx -DHAVE_CRYPT" \
620
603
ASFLAGS="$(ASFLAGS) -m32 -mavx" \
621
604
LDFLAGS="$(LDFLAGS) -m32 -lcrypt" \
622
- AESNI_ARCH=86 YASM_FORMAT="elf32"
623
605
@echo "Failing after this point just means some helper tools did not build:"
624
606
$(MAKE_ORIG) $(PROJ_PCAP) CFLAGS="$(CFLAGS) -m32"
625
607
@echo "All done"
@@ -632,7 +614,6 @@ linux-x86-opencl:
632
614
CFLAGS="$(CFLAGS) -I$(OCLROOT)/include -DHAVE_CRYPT -DHAVE_OPENCL -DHAVE_LIBDL -D_LARGEFILE64_SOURCE -march=native" \
633
615
ASFLAGS="$(ASFLAGS) -march=native" \
634
616
LDFLAGS="$(LDFLAGS) -L$(OCLROOT)/lib/x86 -L$(OCLROOT)/lib -lcrypt -lOpenCL -ldl -march=native" \
635
- AESNI_ARCH=86 YASM_FORMAT="elf32"
636
617
@echo "Failing after this point just means some helper tools did not build:"
637
618
$(MAKE_ORIG) $(PROJ_PCAP)
638
619
@echo "All done"
@@ -645,7 +626,6 @@ linux-x86-native:
645
626
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE -march=native" \
646
627
ASFLAGS="$(ASFLAGS) -march=native" \
647
628
LDFLAGS="$(LDFLAGS) -lcrypt -ldl -march=native" \
648
- AESNI_ARCH=86 YASM_FORMAT="elf32"
649
629
@echo "Failing after this point just means some helper tools did not build:"
650
630
$(MAKE_ORIG) $(PROJ_PCAP)
651
631
@echo "All done"
@@ -658,7 +638,6 @@ linux-x86-sse2:
658
638
CFLAGS="$(CFLAGS) -msse2 -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
659
639
ASFLAGS="$(ASFLAGS) -msse2" \
660
640
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
661
- AESNI_ARCH=86 YASM_FORMAT="elf32"
662
641
@echo "Failing after this point just means some helper tools did not build:"
663
642
$(MAKE_ORIG) $(PROJ_PCAP)
664
643
@echo "All done"
@@ -670,7 +649,6 @@ linux-x86-mmx:
670
649
JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o x86-mmx.o" \
671
650
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
672
651
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
673
- AESNI_ARCH=86 YASM_FORMAT="elf32"
674
652
@echo "Failing after this point just means some helper tools did not build:"
675
653
$(MAKE_ORIG) $(PROJ_PCAP)
676
654
@echo "All done"
@@ -682,7 +660,6 @@ linux-x86-any:
682
660
JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o" \
683
661
CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE" \
684
662
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
685
- AESNI_ARCH=86 YASM_FORMAT="elf32"
686
663
@echo "Failing after this point just means some helper tools did not build:"
687
664
$(MAKE_ORIG) $(PROJ_PCAP)
688
665
@echo "All done"
@@ -696,7 +673,6 @@ linux-x86-clang:
696
673
LDFLAGS="$(LDFLAGS) -lcrypt -ldl" \
697
674
CPP="clang" CC="clang" AS="clang" LD="clang" CXX="clang++" \
698
675
OPT_INLINE="$(OPT_NORMAL)" \
699
- AESNI_ARCH=86 YASM_FORMAT="elf32"
700
676
@echo "Failing after this point just means some helper tools did not build:"
701
677
$(MAKE_ORIG) $(PROJ_PCAP) CC="clang"
702
678
@echo "All done"
@@ -709,7 +685,6 @@ linux-x86-clang-debug:
709
685
CFLAGS="-Wall -c -g -O1 -faddress-sanitizer -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL -D_LARGEFILE64_SOURCE $(HAVE_LIBGMP) $(OMPFLAGS) $(JOHN_CFLAGS)" \
710
686
LDFLAGS="-L/usr/local/lib $(LDFLAGS_OPENSSL) -lm -lz -lcrypt -ldl -faddress-sanitizer $(GMP_LDFLAGS) $(JOHN_LDFLAGS)" \
711
687
CPP="clang" CC="clang" AS="clang" LD="clang" CXX="clang++" \
712
- AESNI_ARCH=86 YASM_FORMAT="elf32"
713
688
@echo "Failing after this point just means some helper tools did not build:"
714
689
$(MAKE_ORIG) $(PROJ_PCAP) \
715
690
CFLAGS="-Wall -c -g -O1 -faddress-sanitizer -I/usr/include -msse2 -DDEBUG -DHAVE_CRYPT -DHAVE_LIBDL $(HAVE_LIBGMP) $(OMPFLAGS) $(JOHN_CFLAGS)" \
@@ -1745,7 +1720,7 @@ find_version:
1745
1720
echo "#define JTR_GIT_VERSION $(JTR_GIT_VERSION)" > version.h.new
1746
1721
diff >/dev/null 2>/dev/null version.h.new version.h && $(RM) version.h.new || $(MV) version.h.new version.h
1747
1722
1748
- SUBDIRS = aes secp256k1 ed25519-donna poly1305-donna
1723
+ SUBDIRS = mbedtls secp256k1 ed25519-donna poly1305-donna
1749
1724
1750
1725
.PHONY: subdirs $(SUBDIRS) find_version
1751
1726
@@ -1755,7 +1730,7 @@ $(SUBDIRS):
1755
1730
$(MAKE_ORIG) -C $@ all CC=$(CC)
1756
1731
1757
1732
../run/john: $(JOHN_OBJS) $(SUBDIRS)
1758
- $(LD) $(JOHN_OBJS) $(LDFLAGS) aes /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.o poly1305-donna/poly1305-donna.o -o ../run/john
1733
+ $(LD) $(JOHN_OBJS) $(LDFLAGS) mbedtls /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.o poly1305-donna/poly1305-donna.o -o ../run/john
1759
1734
1760
1735
../run/unshadow: ../run/john
1761
1736
$(RM) ../run/unshadow
@@ -1831,7 +1806,7 @@ john.com: john.asm
1831
1806
# $(LD) $(JOHN_OBJS) -lkernel32 -lcrypto -o ../run/john.exe
1832
1807
1833
1808
../run/john.exe: $(JOHN_OBJS) $(SUBDIRS)
1834
- $(LD) $(JOHN_OBJS) $(LDFLAGS) aes /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a -lkernel32 -o ../run/john.exe
1809
+ $(LD) $(JOHN_OBJS) $(LDFLAGS) mbedtls /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a -lkernel32 -o ../run/john.exe
1835
1810
$(STRIP) ../run/john.exe
1836
1811
1837
1812
# this LD line removed from the ../run/john-mingw.exe rule (MinGW32 builds)
@@ -1840,7 +1815,7 @@ john.com: john.asm
1840
1815
# $(LD) $(JOHN_OBJS) $(LDFLAGS) -lkernel32 -o ../run/john-mingw.exe
1841
1816
1842
1817
../run/john-mingw.exe: $(JOHN_OBJS)
1843
- $(LD) $(JOHN_OBJS) $(LDFLAGS) aes /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a -lkernel32 -o ../run/john-mingw.exe
1818
+ $(LD) $(JOHN_OBJS) $(LDFLAGS) mbedtls /aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a -lkernel32 -o ../run/john-mingw.exe
1844
1819
$(STRIP) ../run/john-mingw.exe
1845
1820
cp ../run/john-mingw.exe ../run/john.exe
1846
1821
@@ -2058,7 +2033,7 @@ clean:
2058
2033
$(RM) *~
2059
2034
$(RM) dynamic_big_crypt.c fmt_registers.h fmt_externs.h john_build_rule.h version.h version.h.new
2060
2035
$(CP) $(NULL) Makefile.dep
2061
- +$(MAKE_ORIG) -C aes clean
2036
+ +$(MAKE_ORIG) -C mbedtls clean
2062
2037
+$(MAKE_ORIG) -C secp256k1 clean
2063
2038
+$(MAKE_ORIG) -C ed25519-donna clean
2064
2039
+$(MAKE_ORIG) -C poly1305-donna clean
0 commit comments