From cfe8f14c91204c906673f89a7792ad02a603c5e4 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Sat, 7 Mar 2015 06:41:53 +0300 Subject: [PATCH] Actually include sys/endian.h for le32enc/le32dec While here, fix a typo --- src/scrypt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scrypt.h b/src/scrypt.h index 5c2f12f0..0882574f 100644 --- a/src/scrypt.h +++ b/src/scrypt.h @@ -2,6 +2,9 @@ #define SCRYPT_H #include #include +#ifdef __FreeBSD__ +# include +#endif static const int SCRYPT_SCRATCHPAD_SIZE = 131072 + 63; void scrypt_1024_1_1_256(const char *input, char *output); @@ -18,7 +21,7 @@ PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt, size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen); # ifndef __FreeBSD__ -/* Allready defined in sys/endian.h */ +/* Already defined in sys/endian.h */ static inline uint32_t le32dec(const void *pp) { const uint8_t *p = (uint8_t const *)pp;