Much better software AES implementation (--av 4).
This commit is contained in:
parent
1013aa5004
commit
21c243ed8f
12 changed files with 359 additions and 1921 deletions
|
@ -1,16 +1,13 @@
|
|||
set(SOURCES
|
||||
../../algo/cryptonight/cryptonight.h
|
||||
../../algo/cryptonight/cryptonight_common.c
|
||||
../../algo/cryptonight/cryptonight_av4_legacy.c
|
||||
../../algo/cryptonight/cryptonight_av4_softaes.c
|
||||
../../crypto/c_keccak.c
|
||||
../../crypto/c_blake256.c
|
||||
../../crypto/c_groestl.c
|
||||
../../crypto/c_jh.c
|
||||
../../crypto/c_skein.c
|
||||
../../crypto/oaes_config.h
|
||||
../../crypto/oaes_lib.h
|
||||
../../crypto/oaes_lib.c
|
||||
../../crypto/aesb.c
|
||||
../../crypto/soft_aes.c
|
||||
)
|
||||
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
void cryptonight_av1_aesni(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av2_aesni_wolf(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av3_aesni_bmi2(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av4_legacy(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av4_softaes(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av5_aesni_stak(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
void cryptonight_av6_aesni_experimental(void* output, const void* input, const char *memory, struct cryptonight_ctx* ctx);
|
||||
|
||||
|
@ -117,7 +117,7 @@ void test_cryptonight_av4_should_CalcHash(void)
|
|||
uint8_t *memory = (uint8_t *) malloc(MEMORY);
|
||||
struct cryptonight_ctx *ctx = (struct cryptonight_ctx*)malloc(sizeof(struct cryptonight_ctx));
|
||||
|
||||
cryptonight_av4_legacy(&hash, data, memory, ctx);
|
||||
cryptonight_av4_softaes(&hash, data, memory, ctx);
|
||||
|
||||
free(memory);
|
||||
free(ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue