Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
This commit is contained in:
commit
7df77777f1
3 changed files with 10 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue