Skip to content

Commit

Permalink
upgrade BIGNUM class for openssl 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Jan 4, 2018
1 parent 69e1296 commit b54be47
Show file tree
Hide file tree
Showing 5 changed files with 726 additions and 131 deletions.
2 changes: 1 addition & 1 deletion Algo256/keccak256.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern void keccak256_setOutput(int thr_id);
extern void keccak256_sm3_init(int thr_id, uint32_t threads);
extern void keccak256_sm3_free(int thr_id);
extern void keccak256_sm3_setBlock_80(void *pdata, const void *ptarget);
extern uint32_t keccak256_sm3_hash_80(int thr_id, uint32_t threads, uint32_t startNonce, uint32_t* resNonces, int order);
extern void keccak256_sm3_hash_80(int thr_id, uint32_t threads, uint32_t startNonce, uint32_t* resNonces, int order);

// CPU Hash
extern "C" void keccak256_hash(void *state, const void *input)
Expand Down
6 changes: 6 additions & 0 deletions bignum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
#include <stdio.h>

#include "uint256.h"

#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#include "compat/bignum_ssl10.hpp"
#else
#include "bignum.hpp"
#endif

#include "miner.h" // hex2bin

Expand Down
Loading

0 comments on commit b54be47

Please sign in to comment.