Skip to content

Commit

Permalink
Actually include sys/endian.h for le32enc/le32dec
Browse files Browse the repository at this point in the history
While here, fix a typo
  • Loading branch information
AMDmi3 committed Mar 7, 2015
1 parent 66394b0 commit cfe8f14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define SCRYPT_H
#include <stdlib.h>
#include <stdint.h>
#ifdef __FreeBSD__
# include <sys/endian.h>
#endif
static const int SCRYPT_SCRATCHPAD_SIZE = 131072 + 63;

void scrypt_1024_1_1_256(const char *input, char *output);
Expand All @@ -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;
Expand Down

0 comments on commit cfe8f14

Please sign in to comment.