Darren Tucker | a10d855 | 2018-02-27 14:45:17 +1100 | [diff] [blame] | 1 | #ifdef WITH_XMSS |
dtucker@openbsd.org | 27b9f39 | 2018-02-26 03:56:44 +0000 | [diff] [blame] | 2 | /* $OpenBSD: xmss_hash.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */ |
markus@openbsd.org | 1b11ea7 | 2018-02-23 15:58:37 +0000 | [diff] [blame] | 3 | /* |
| 4 | hash.h version 20160722 |
| 5 | Andreas Hülsing |
| 6 | Joost Rijneveld |
| 7 | Public domain. |
| 8 | */ |
| 9 | |
| 10 | #ifndef HASH_H |
| 11 | #define HASH_H |
| 12 | |
| 13 | #define IS_LITTLE_ENDIAN 1 |
| 14 | |
| 15 | unsigned char* addr_to_byte(unsigned char *bytes, const uint32_t addr[8]); |
| 16 | int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen); |
| 17 | int 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); |
| 18 | int hash_h(unsigned char *out, const unsigned char *in, const unsigned char *pub_seed, uint32_t addr[8], const unsigned int n); |
| 19 | int 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 Tucker | a10d855 | 2018-02-27 14:45:17 +1100 | [diff] [blame] | 22 | #endif /* WITH_XMSS */ |