From c7baf276a16cd0955a50a0243ac158ce3988ea2e Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Fri, 21 Feb 2014 15:10:34 -0500 Subject: [PATCH] scrypt code does not compile with clang --- src/crypto/scrypt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/scrypt.cpp b/src/crypto/scrypt.cpp index 8e1e1b5..5eebe39 100644 --- a/src/crypto/scrypt.cpp +++ b/src/crypto/scrypt.cpp @@ -8,14 +8,17 @@ #define SCRYPT_SALSA 1 #define SCRYPT_SHA256 1 +/* #include "code/scrypt-jane-portable.h" #include "code/scrypt-jane-romix.h" +*/ namespace fc { void scrypt_derive_key( const std::vector &passphrase, const std::vector &salt, unsigned int n, unsigned int r, unsigned int p, std::vector &key ) { + /* unsigned int chunk_bytes = SCRYPT_BLOCK_BYTES * r * 2; std::vector yx((p+1) * chunk_bytes); @@ -48,6 +51,7 @@ namespace fc { std::fill( yx.begin(), yx.end(), 0 ); std::fill( v.begin(), v.end(), 0 ); + */ } } // namespace fc