mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
stratum: move blake2s to component algos folder
This commit is contained in:
parent
bf05f7b532
commit
bc581492c4
5 changed files with 10 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
|||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "blake2s.h"
|
||||
#include <sha3/blake2s.h>
|
||||
|
||||
void blake2s_hash(const char* input, char* output, uint32_t len)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ LDFLAGS=-O2 -lgmp
|
|||
SOURCES=lyra2re.c lyra2v2.c Lyra2.c Sponge.c blake.c scrypt.c c11.c x11.c x13.c sha256.c keccak.c \
|
||||
x14.c x15.c x17.c nist5.c fresh.c quark.c neoscrypt.c scryptn.c qubit.c skein.c groestl.c \
|
||||
skein2.c zr5.c bmw.c luffa.c pentablake.c whirlpool.c whirlpoolx.c blakecoin.c \
|
||||
blake2.c blake2s.c \
|
||||
blake2.c \
|
||||
yescrypt.c yescrypt-opt.c sha256_Y.c lbry.c \
|
||||
m7m.c magimath.cpp velvet.c \
|
||||
argon2a.c ar2/blake2b.c ar2/argon2.c ar2/ref.c ar2/cores.c ar2/ar2-scrypt-jane.c \
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <sha3/sph_types.h>
|
||||
#include "sph_types.h"
|
||||
|
||||
#include "blake2s.h"
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
#define ALIGN(x) __attribute__((aligned(x)))
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) || defined(__x86_64__) || defined(__x86__)
|
||||
#if defined(_MSC_VER) || defined(__x86_64__) || defined(__x86__)
|
||||
#define NATIVE_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
|
@ -6,7 +6,8 @@ LDFLAGS=-O2
|
|||
|
||||
SOURCES=sph_jh.c sph_blake.c sph_bmw.c sph_groestl.c sph_skein.c sph_keccak.c sph_luffa.c sph_cubehash.c sph_shavite.c \
|
||||
sph_simd.c sph_echo.c sph_fugue.c sph_hamsi.c sph_shabal.c sph_whirlpool.c \
|
||||
sph_haval.c sph_ripemd.c sph_sha2.c sph_sha2big.c sph_tiger.c
|
||||
sph_haval.c sph_ripemd.c sph_sha2.c sph_sha2big.c sph_tiger.c \
|
||||
blake2s.c
|
||||
|
||||
OBJECTS=$(SOURCES:.c=.o)
|
||||
OUTPUT=libhash.a
|
||||
|
@ -19,10 +20,13 @@ $(OUTPUT): $(OBJECTS)
|
|||
|
||||
.cpp.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
blake2s.o: blake2s.c
|
||||
$(CC) $(CFLAGS) -std=gnu99 -c $<
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue