summaryrefslogtreecommitdiff
path: root/xmss_hash_address.h
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2018-02-23 15:58:37 +0000
committerDamien Miller <djm@mindrot.org>2018-02-26 11:40:41 +1100
commit1b11ea7c58cd5c59838b5fa574cd456d6047b2d4 (patch)
tree7e96cb41b5234b9d327f7c8f41392f09aed0994e /xmss_hash_address.h
parent7d330a1ac02076de98cfc8fda05353d57b603755 (diff)
upstream: Add experimental support for PQC XMSS keys (Extended
Hash-Based Signatures) The code is not compiled in by default (see WITH_XMSS in Makefile.inc) Joint work with stefan-lukas_gazdag at genua.eu See https://tools.ietf.org/html/draft-irtf-cfrg-xmss-hash-based-signatures-12 ok djm@ OpenBSD-Commit-ID: ef3eccb96762a5d6f135d7daeef608df7776a7ac
Diffstat (limited to 'xmss_hash_address.h')
-rw-r--r--xmss_hash_address.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/xmss_hash_address.h b/xmss_hash_address.h
new file mode 100644
index 000000000..73cbfd61c
--- /dev/null
+++ b/xmss_hash_address.h
@@ -0,0 +1,37 @@
1/*
2hash_address.h version 20160722
3Andreas Hülsing
4Joost Rijneveld
5Public domain.
6*/
7
8#include <stdint.h>
9
10void setLayerADRS(uint32_t adrs[8], uint32_t layer);
11
12void setTreeADRS(uint32_t adrs[8], uint64_t tree);
13
14void setType(uint32_t adrs[8], uint32_t type);
15
16void setKeyAndMask(uint32_t adrs[8], uint32_t keyAndMask);
17
18// OTS
19
20void setOTSADRS(uint32_t adrs[8], uint32_t ots);
21
22void setChainADRS(uint32_t adrs[8], uint32_t chain);
23
24void setHashADRS(uint32_t adrs[8], uint32_t hash);
25
26// L-tree
27
28void setLtreeADRS(uint32_t adrs[8], uint32_t ltree);
29
30// Hash Tree & L-tree
31
32void setTreeHeight(uint32_t adrs[8], uint32_t treeHeight);
33
34void setTreeIndex(uint32_t adrs[8], uint32_t treeIndex);
35
36
37