blob: d19c62152adda46f5e72244d6619b11988521383 [file] [log] [blame]
Darren Tuckera10d8552018-02-27 14:45:17 +11001#ifdef WITH_XMSS
dtucker@openbsd.org27b9f392018-02-26 03:56:44 +00002/* $OpenBSD: xmss_hash.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
markus@openbsd.org1b11ea72018-02-23 15:58:37 +00003/*
4hash.h version 20160722
5Andreas Hülsing
6Joost Rijneveld
7Public domain.
8*/
9
10#ifndef HASH_H
11#define HASH_H
12
13#define IS_LITTLE_ENDIAN 1
14
15unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]);
16int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen);
17int h_msg(unsigned char *out,const unsigned char *in,unsigned long long inlen, const unsigned char *key, const unsigned int keylen, const unsigned int n);
18int hash_h(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n);
19int hash_f(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n);
20
21#endif
Darren Tuckera10d8552018-02-27 14:45:17 +110022#endif /* WITH_XMSS */