Algo/sha3x/sha3x.h

35 lines
865 B
C
Raw Normal View History

2025-07-04 09:47:19 +00:00
#ifndef SHA3X_H
#define SHA3X_H
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* SHA3-256
* @param out 32
* @param outlen 32
* @param in
* @param inlen
* @return 0-1
*/
int sha3_256(uint8_t* out, size_t outlen, const uint8_t* in, size_t inlen);
/**
* SHA3X三重哈希函数Tari项目中的SHA3X算法
* @param out 32
* @param outlen 32
* @param in
* @param inlen
* @return 0-1
*/
int sha3x_hash(uint8_t* out, size_t outlen, const uint8_t* in, size_t inlen);
#ifdef __cplusplus
}
#endif
#endif // SHA3X_H