1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/net-p2p/litecoin/files/patch-src__scrypt.h
Steve Wills 700fed5d14 - Update to 0.8.6.2
- Improve USE_QT4
- Fix build after boost update
2014-02-10 02:49:15 +00:00

23 lines
737 B
C

--- ./src/scrypt.h.orig 2014-01-10 01:38:53.000000000 +0000
+++ ./src/scrypt.h 2014-02-09 05:45:03.133009188 +0000
@@ -27,19 +27,4 @@
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);
-static inline uint32_t le32dec(const void *pp)
-{
- const uint8_t *p = (uint8_t const *)pp;
- return ((uint32_t)(p[0]) + ((uint32_t)(p[1]) << 8) +
- ((uint32_t)(p[2]) << 16) + ((uint32_t)(p[3]) << 24));
-}
-
-static inline void le32enc(void *pp, uint32_t x)
-{
- uint8_t *p = (uint8_t *)pp;
- p[0] = x & 0xff;
- p[1] = (x >> 8) & 0xff;
- p[2] = (x >> 16) & 0xff;
- p[3] = (x >> 24) & 0xff;
-}
#endif