diff options
author | David Phillips <david@sighup.nz> | 2017-11-18 13:43:28 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-11-18 13:43:28 +1300 |
commit | 51407f1797c77c742815d3135632666f4d940cb7 (patch) | |
tree | 9eae513f96a9fdcb9a6a9b17d804a3a63b949308 /sand-leek.c | |
parent | 8816f394206b7642c159caf0d2db9b3ab55b7d10 (diff) | |
download | sand-leek-51407f1797c77c742815d3135632666f4d940cb7.tar.xz |
Switch to in-house byte-order switching
Diffstat (limited to 'sand-leek.c')
-rw-r--r-- | sand-leek.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sand-leek.c b/sand-leek.c index 7c5ea29..97b9b1d 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -6,12 +6,12 @@ #include <semaphore.h> #include <errno.h> #include <string.h> -#include <endian.h> #include <openssl/rsa.h> #include <openssl/sha.h> #include <openssl/pem.h> #include <openssl/err.h> +#include "endian.h" #include "onion_base32.h" #include "key_update.h" @@ -91,7 +91,7 @@ work(void *arg) { while (e < EXPONENT_MAX) { memcpy(&working_sha_c, &sha_c, sizeof(SHA_CTX)); - e_big_endian = htobe32(e); + e_big_endian = sl_htobe32(e); SHA1_Update(&working_sha_c, &e_big_endian, EXPONENT_SIZE_BYTES); SHA1_Final((unsigned char*)&sha, &working_sha_c); |