Skip to content
Permalink
Browse files

add armv8 scrypt and sha2 implementations

  • Loading branch information...
g4bwy committed Jul 18, 2018
1 parent 8a9d6e3 commit f3e6f6240d7715b3b4e11b7d65dca891d24a862d
Showing with 1,749 additions and 2 deletions.
  1. +8 −2 src/makefile.unix
  2. +1,542 −0 src/scrypt-armv8.c
  3. +199 −0 src/sha2-armv8.c
@@ -159,7 +159,7 @@ obj/txdb-leveldb.o: leveldb/libleveldb.a
# Assembler implementation
DEFS += -DUSE_ASM

OBJS += obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x64.o
OBJS += obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x64.o obj/scrypt-armv8.o

obj/scrypt-x86.o: scrypt-x86.S
$(CXX) -c $(CFLAGS) -MMD -o $@ $<
@@ -170,7 +170,10 @@ obj/scrypt-x64.o: scrypt-x64.S
obj/scrypt-arm.o: scrypt-arm.S
$(CXX) -c $(CFLAGS) -MMD -o $@ $<

OBJS += obj/sha2-arm.o obj/sha2-x86.o obj/sha2-x64.o
obj/scrypt-armv8.o: scrypt-armv8.c
$(CC) -c $(CFLAGS) -march=armv8.1-a+crypto -MMD -o $@ $<

OBJS += obj/sha2-arm.o obj/sha2-x86.o obj/sha2-x64.o obj/sha2-armv8.o

obj/sha2-x86.o: sha2-x86.S
$(CXX) -c $(CFLAGS) -MMD -o $@ $<
@@ -181,6 +184,9 @@ obj/sha2-x64.o: sha2-x64.S
obj/sha2-arm.o: sha2-arm.S
$(CXX) -c $(CFLAGS) -MMD -o $@ $<

obj/sha2-armv8.o: sha2-armv8.c
$(CC) -c $(CFLAGS) -march=armv8.1-a+crypto -MMD -o $@ $<

# auto-generated dependencies:
-include obj/*.P

0 comments on commit f3e6f62

Please sign in to comment.
You can’t perform that action at this time.