freebsd-ports/net-p2p/litecoin/files/patch-src_crypto_scrypt.h
Steve Wills 1c9720f21c net-p2p/litecoin: Update to 0.10.2.2
While here, clean up and add a litecoin-utils port

PR:		201154
Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>
2015-08-05 13:21:53 +00:00

22 lines
704 B
C

--- src/crypto/scrypt.h.orig 2015-06-15 08:51:30 UTC
+++ src/crypto/scrypt.h
@@ -27,19 +27,4 @@ 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);
-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