Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void phi2_hash(const char* input, char* output)
sph_skein512_context ctx_skein;

sph_cubehash512_init(&ctx_cubehash);
sph_cubehash512(&ctx_cubehash, (const void*) hash, (144,80));
sph_cubehash512(&ctx_cubehash, input, (144,80));
sph_cubehash512_close(&ctx_cubehash, (void*)hashB);

LYRA2(&hashA[ 0], 32, &hashB[ 0], 32, &hashB[ 0], 32, 1, 8, 8);
Expand Down
35 changes: 18 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
from distutils.core import setup, Extension

phi2_hash_module = Extension('phi2_hash',
sources = ['phi2module.c',
'phi2.c',
'sph/aes_helper.c',
'sph/skein.c',
'sph/jh.c',
'sph/cubehash.c',
'sph/streebog.c',
'sph/echo.c',
'lyra2/Lyra2.c'],
include_dirs=['.', './sph', '.lyra2'])
sources=['phi2module.c',
'phi2.c',
'sph/aes_helper.c',
'sph/skein.c',
'sph/jh.c',
'sph/cubehash.c',
'sph/streebog.c',
'sph/echo.c',
'lyra2/Lyra2.c',
'lyra2/Sponge.c'],
include_dirs=['.', './sph', '.lyra2'])

setup (name = 'phi2_hash',
version = '2.0',
description = 'Bindings for phi2 hashing algorithm used by Luxcoin ',
author='216k155',
author_email='216k155@luxcore.io',
url='https://github.com/216k155/phi2_hashing_module',
ext_modules = [phi2_hash_module])
setup(name='phi2_hash',
version='2.1',
description='Bindings for phi2 hashing algorithm used by Luxcoin ',
author='216k155',
author_email='216k155@luxcore.io',
url='https://github.com/216k155/phi2_hashing_module',
ext_modules=[phi2_hash_module])