Skip to content

Commit b54be47

Browse files
committed
upgrade BIGNUM class for openssl 1.1
1 parent 69e1296 commit b54be47

File tree

5 files changed

+726
-131
lines changed

5 files changed

+726
-131
lines changed

Diff for: Algo256/keccak256.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern void keccak256_setOutput(int thr_id);
2525
extern void keccak256_sm3_init(int thr_id, uint32_t threads);
2626
extern void keccak256_sm3_free(int thr_id);
2727
extern void keccak256_sm3_setBlock_80(void *pdata, const void *ptarget);
28-
extern uint32_t keccak256_sm3_hash_80(int thr_id, uint32_t threads, uint32_t startNonce, uint32_t* resNonces, int order);
28+
extern void keccak256_sm3_hash_80(int thr_id, uint32_t threads, uint32_t startNonce, uint32_t* resNonces, int order);
2929

3030
// CPU Hash
3131
extern "C" void keccak256_hash(void *state, const void *input)

Diff for: bignum.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
#include <stdio.h>
66

77
#include "uint256.h"
8+
9+
#include <openssl/opensslv.h>
10+
#if OPENSSL_VERSION_NUMBER < 0x10100000L
11+
#include "compat/bignum_ssl10.hpp"
12+
#else
813
#include "bignum.hpp"
14+
#endif
915

1016
#include "miner.h" // hex2bin
1117

0 commit comments

Comments
 (0)