xmr-btc-swap/monero-adaptor/depend/hash/include/hash.h

25 lines
405 B
C
Raw Normal View History

2021-04-16 00:52:35 -04:00
//
// Created by Rishab Sharma on 16/4/21.
//
2021-04-18 21:00:07 -04:00
#include <stdint.h>
#include <stdio.h>
2021-04-16 00:52:35 -04:00
#ifndef XMR_BTC_SWAP_COMIT_HASH_H
#define XMR_BTC_SWAP_COMIT_HASH_H
2021-04-18 21:00:07 -04:00
#ifndef KECCAK_ROUNDS
#define KECCAK_ROUNDS 24
#endif
enum {
HASH_SIZE = 32,
HASH_DATA_AREA = 136
};
void keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen);
void sc_reduce32(unsigned char *);
2021-04-16 00:52:35 -04:00
#endif //XMR_BTC_SWAP_COMIT_HASH_H