xmr-btc-swap/monero-adaptor/depend/hash/include/hash.h
rishflab 64b97d42b7 hash_to_p3 builds, links and can be called from rust code
Assertion failed: ((fe_add(y, w, x), !fe_isnonzero(y))), function ge_fromfe_frombytes_vartime, file depend/hash/crypto-ops.c, line 2656.
2021-04-20 09:36:31 +10:00

25 lines
405 B
C

//
// Created by Rishab Sharma on 16/4/21.
//
#include <stdint.h>
#include <stdio.h>
#ifndef XMR_BTC_SWAP_COMIT_HASH_H
#define XMR_BTC_SWAP_COMIT_HASH_H
#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 *);
#endif //XMR_BTC_SWAP_COMIT_HASH_H