diff options
| author | NanoAkron <nanoakron@users.noreply.github.com> | 2017-02-13 22:35:43 +0000 |
|---|---|---|
| committer | NanoAkron <nanoakron@users.noreply.github.com> | 2017-02-13 22:35:43 +0000 |
| commit | 67693415ffacd91537a7007c6549340262e9f53c (patch) | |
| tree | aeb58d1c2b19085c0ded559adbaba0573fdfc074 /src | |
| parent | 3f171b931f2394ba35edf717762d773cc3dd9b4d (diff) | |
| download | monzero-core-67693415ffacd91537a7007c6549340262e9f53c.tar.gz monzero-core-67693415ffacd91537a7007c6549340262e9f53c.tar.xz monzero-core-67693415ffacd91537a7007c6549340262e9f53c.zip | |
Fix compiler error about nested externs in slow_hash.c by moving declarations
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/slow-hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index 43b9619f3..684c991bf 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -44,6 +44,9 @@ #define INIT_SIZE_BLK 8 #define INIT_SIZE_BYTE (INIT_SIZE_BLK * AES_BLOCK_SIZE) +extern int aesb_single_round(const uint8_t *in, uint8_t*out, const uint8_t *expandedKey); +extern int aesb_pseudo_round(const uint8_t *in, uint8_t *out, const uint8_t *expandedKey); + #if defined(__x86_64__) || (defined(_MSC_VER) && defined(_WIN64)) // Optimised code below, uses x86-specific intrinsics, SSE2, AES-NI // Fall back to more portable code is down at the bottom @@ -138,9 +141,6 @@ #define THREADV __thread #endif -extern int aesb_single_round(const uint8_t *in, uint8_t*out, const uint8_t *expandedKey); -extern int aesb_pseudo_round(const uint8_t *in, uint8_t *out, const uint8_t *expandedKey); - #pragma pack(push, 1) union cn_slow_hash_state { |
