mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-16 03:14:27 -05:00
64b97d42b7
Assertion failed: ((fe_add(y, w, x), !fe_isnonzero(y))), function ge_fromfe_frombytes_vartime, file depend/hash/crypto-ops.c, line 2656.
25 lines
405 B
C
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
|