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

Commit e6af1a7

Browse files
committed
Add libcuda-crypt.so
1 parent e62f607 commit e6af1a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ install:
1919
mkdir -p $(DESTDIR)
2020
ifneq ($(OS),Darwin)
2121
cp -f src/$(V)/libcuda-crypt.a $(DESTDIR)
22+
cp -f src/$(V)/libcuda-crypt.so $(DESTDIR)
2223
endif
2324
ls -lh $(DESTDIR)
2425

src/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CUDA_SHA256_DIR:=cuda-sha256
2121

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

24-
all: $V/$(CHACHA_TEST_BIN) $V/$(ECC_TEST_BIN)
24+
all: $V/$(CHACHA_TEST_BIN) $V/$(ECC_TEST_BIN) $(V)/lib$(LIB).so
2525

2626
ECC_DIR:=cuda-ecc-ed25519
2727
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)
@@ -56,6 +56,9 @@ $V/crypt-dlink.o: $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
5656
$V/lib$(LIB).a: $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
5757
$(NVCC) -Xcompiler "-fPIC" --lib --output-file $@ $^
5858

59+
$V/lib$(LIB).so: $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
60+
$(NVCC) -Xcompiler "-fPIC" --lib --shared --output-file $@ $^
61+
5962
$V/$(CHACHA_TEST_BIN): $(CHACHA_DIR)/test.cu $V/lib$(LIB).a
6063
$(NVCC) $(CFLAGS) -L$V -l$(LIB) $< -o $@
6164

0 commit comments

Comments
 (0)