Skip to content

Commit cfe8f14

Browse files
committed
Actually include sys/endian.h for le32enc/le32dec
While here, fix a typo
1 parent 66394b0 commit cfe8f14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scrypt.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#define SCRYPT_H
33
#include <stdlib.h>
44
#include <stdint.h>
5+
#ifdef __FreeBSD__
6+
# include <sys/endian.h>
7+
#endif
58
static const int SCRYPT_SCRATCHPAD_SIZE = 131072 + 63;
69

710
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,
1821
size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen);
1922

2023
# ifndef __FreeBSD__
21-
/* Allready defined in sys/endian.h */
24+
/* Already defined in sys/endian.h */
2225
static inline uint32_t le32dec(const void *pp)
2326
{
2427
const uint8_t *p = (uint8_t const *)pp;

0 commit comments

Comments
 (0)