forked from tevador/RandomX
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "aes_hash.hpp" | ||
|
||
extern "C" { | ||
void hashAes1Rx4_soft(const void *input, size_t inputSize, void *hash) { | ||
hashAes1Rx4<true>(input, inputSize, hash); | ||
} | ||
|
||
void hashAes1Rx4_hard(const void *input, size_t inputSize, void *hash) { | ||
hashAes1Rx4<false>(input, inputSize, hash); | ||
} | ||
|
||
void fillAes1Rx4_soft(void *state, size_t outputSize, void *buffer) { | ||
fillAes1Rx4<true>(state, outputSize, buffer); | ||
} | ||
|
||
void fillAes1Rx4_hard(void *state, size_t outputSize, void *buffer) { | ||
fillAes1Rx4<false>(state, outputSize, buffer); | ||
} | ||
|
||
void fillAes4Rx4_soft(void *state, size_t outputSize, void *buffer) { | ||
fillAes4Rx4<true>(state, outputSize, buffer); | ||
} | ||
|
||
void fillAes4Rx4_hard(void *state, size_t outputSize, void *buffer) { | ||
fillAes4Rx4<false>(state, outputSize, buffer); | ||
} | ||
|
||
void hashAndFillAes1Rx4_soft(void *scratchpad, size_t scratchpadSize, void *hash, void* fill_state) { | ||
hashAndFillAes1Rx4<true>(scratchpad, scratchpadSize, hash, fill_state); | ||
} | ||
|
||
void hashAndFillAes1Rx4_hard(void *scratchpad, size_t scratchpadSize, void *hash, void* fill_state) { | ||
hashAndFillAes1Rx4<false>(scratchpad, scratchpadSize, hash, fill_state); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef AES_HASH_BINDGEN_H | ||
#define AES_HASH_BINDGEN_H | ||
#endif | ||
|
||
#include <stddef.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void hashAes1Rx4_soft(const void *input, size_t inputSize, void *hash); | ||
void hashAes1Rx4_hard(const void *input, size_t inputSize, void *hash); | ||
|
||
void fillAes1Rx4_soft(void *state, size_t outputSize, void *buffer); | ||
void fillAes1Rx4_hard(void *state, size_t outputSize, void *buffer); | ||
|
||
void fillAes4Rx4_soft(void *state, size_t outputSize, void *buffer); | ||
void fillAes4Rx4_hard(void *state, size_t outputSize, void *buffer); | ||
|
||
void hashAndFillAes1Rx4_soft(void *scratchpad, size_t scratchpadSize, void *hash, void* fill_state); | ||
void hashAndFillAes1Rx4_hard(void *scratchpad, size_t scratchpadSize, void *hash, void* fill_state); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |