Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add libcuda-crypt.so
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 18, 2019
1 parent e62f607 commit e6af1a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install:
mkdir -p $(DESTDIR)
ifneq ($(OS),Darwin)
cp -f src/$(V)/libcuda-crypt.a $(DESTDIR)
cp -f src/$(V)/libcuda-crypt.so $(DESTDIR)
endif
ls -lh $(DESTDIR)

Expand Down
5 changes: 4 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CUDA_SHA256_DIR:=cuda-sha256

CFLAGS+=-DENDIAN_NEUTRAL -DLTC_NO_ASM -I$(CUDA_HEADER_DIR) -I$(CUDA_SHA256_DIR)

all: $V/$(CHACHA_TEST_BIN) $V/$(ECC_TEST_BIN)
all: $V/$(CHACHA_TEST_BIN) $V/$(ECC_TEST_BIN) $(V)/lib$(LIB).so

ECC_DIR:=cuda-ecc-ed25519
VERIFY_SRCS:=$(addprefix $(ECC_DIR)/,verify.cu seed.cu sha512.cu ge.cu sc.cu fe.cu sign.cu keypair.cu common.cu ed25519.h)
Expand Down Expand Up @@ -56,6 +56,9 @@ $V/crypt-dlink.o: $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
$V/lib$(LIB).a: $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
$(NVCC) -Xcompiler "-fPIC" --lib --output-file $@ $^

$V/lib$(LIB).so: $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
$(NVCC) -Xcompiler "-fPIC" --lib --shared --output-file $@ $^

$V/$(CHACHA_TEST_BIN): $(CHACHA_DIR)/test.cu $V/lib$(LIB).a
$(NVCC) $(CFLAGS) -L$V -l$(LIB) $< -o $@

Expand Down

0 comments on commit e6af1a7

Please sign in to comment.