|
|
|
@ -17,6 +17,8 @@ void
@@ -17,6 +17,8 @@ void
|
|
|
|
|
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 */ |
|
|
|
|
static inline uint32_t le32dec(const void *pp) |
|
|
|
|
{ |
|
|
|
|
const uint8_t *p = (uint8_t const *)pp; |
|
|
|
@ -33,3 +35,4 @@ static inline void le32enc(void *pp, uint32_t x)
@@ -33,3 +35,4 @@ static inline void le32enc(void *pp, uint32_t x)
|
|
|
|
|
p[3] = (x >> 24) & 0xff; |
|
|
|
|
} |
|
|
|
|
# endif |
|
|
|
|
#endif |
|
|
|
|