Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix

This commit is contained in:
dnotestein 2014-02-21 19:55:39 -05:00
commit 7df77777f1
3 changed files with 10 additions and 4 deletions

View file

@ -5,10 +5,10 @@
#include <openssl/evp.h>
/*
#define SCRYPT_SALSA 1
#define SCRYPT_SHA256 1
/*
#include "code/scrypt-jane-portable.h"
#include "code/scrypt-jane-romix.h"
*/
@ -18,7 +18,6 @@ namespace fc {
void scrypt_derive_key( const std::vector<unsigned char> &passphrase, const std::vector<unsigned char> &salt,
unsigned int n, unsigned int r, unsigned int p, std::vector<unsigned char> &key )
{
FC_ASSERT( !"Does not compile on OS X" );
/*
unsigned int chunk_bytes = SCRYPT_BLOCK_BYTES * r * 2;
std::vector<unsigned char> yx((p+1) * chunk_bytes);

View file

@ -459,4 +459,4 @@ get_top_cpuflag_desc(size_t flag) {
#endif
#endif
#endif /* defined(CPU_X86) || defined(CPU_X86_64) */
#endif /* defined(CPU_X86) || defined(CPU_X86_64) */

View file

@ -136,7 +136,7 @@
#define CDECL __attribute__((cdecl))
#undef STDCALL
#define STDCALL __attribute__((stdcall))
#define ALIGN(n) __attribute__((aligned(n)))
#define ALIGN(n) __attribute__((aligned(n)))
#include <stdint.h>
#endif
#if defined(__MINGW32__) || defined(__MINGW64__)
@ -300,7 +300,14 @@ scrypt_ensure_zero(void *p, size_t len) {
#endif
}
#if defined(MACOS_X) || (defined(__APPLE__) & defined(__MACH__))
static size_t
detect_cpu(void) {
return 0;
}
#else
#include "scrypt-jane-portable-x86.h"
#endif
#if !defined(asm_calling_convention)
#define asm_calling_convention