diff options
author | bloodstalker <thabogre@gmail.com> | 2018-08-09 13:40:50 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-08-09 13:40:50 +0000 |
commit | a9b5727e468b68936f10bdf80a4f40801a368c52 (patch) | |
tree | a42c43fd0f33402f4b4237f12cdba96a92f9306a /obfuscator/keccak-tiny/keccak-tiny.h | |
parent | faultreiber is a submodule now. it generates binary file format parsers in C.... (diff) | |
download | mutator-a9b5727e468b68936f10bdf80a4f40801a368c52.tar.gz mutator-a9b5727e468b68936f10bdf80a4f40801a368c52.zip |
WIP-added keccak-tiny to obfuscator
Diffstat (limited to 'obfuscator/keccak-tiny/keccak-tiny.h')
-rw-r--r-- | obfuscator/keccak-tiny/keccak-tiny.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/obfuscator/keccak-tiny/keccak-tiny.h b/obfuscator/keccak-tiny/keccak-tiny.h new file mode 100644 index 0000000..e914b96 --- /dev/null +++ b/obfuscator/keccak-tiny/keccak-tiny.h @@ -0,0 +1,23 @@ +#ifndef KECCAK_FIPS202_H +#define KECCAK_FIPS202_H +#define __STDC_WANT_LIB_EXT1__ 1 +#include <stdint.h> +#include <stdlib.h> + +#ifndef __STDC_LIB_EXT1__ +#define memset_s(W,WL,V,OL) memset(W,V,OL) +#endif + +#define decshake(bits) \ + int shake##bits(uint8_t*, size_t, const uint8_t*, size_t); + +#define decsha3(bits) \ + int sha3_##bits(uint8_t*, size_t, const uint8_t*, size_t); + +decshake(128) +decshake(256) +decsha3(224) +decsha3(256) +decsha3(384) +decsha3(512) +#endif |