summaryrefslogtreecommitdiff
path: root/xmss_hash.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2018-04-03 08:20:28 +0100
committerColin Watson <cjwatson@debian.org>2018-04-03 08:57:25 +0100
commita0b2dce9bf518f561bbb5070c0fb0c38f49035dd (patch)
tree24298b823e93d4e6efe13f48f1512707ebd625f8 /xmss_hash.h
parent9d4942dc192b6f1888c9ab73a512dd9b197b956c (diff)
parent76aa43d2298f322f0371b74462418d0461537131 (diff)
New upstream release (7.7p1)
Diffstat (limited to 'xmss_hash.h')
-rw-r--r--xmss_hash.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/xmss_hash.h b/xmss_hash.h
new file mode 100644
index 000000000..d19c62152
--- /dev/null
+++ b/xmss_hash.h
@@ -0,0 +1,22 @@
1#ifdef WITH_XMSS
2/* $OpenBSD: xmss_hash.h,v 1.2 2018/02/26 03:56:44 dtucker Exp $ */
3/*
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
22#endif /* WITH_XMSS */