aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss
diff options
context:
space:
mode:
authorPhilippe Lieser <[email protected]>2020-05-20 11:19:32 +0200
committerPhilippe Lieser <[email protected]>2020-05-20 11:19:32 +0200
commit1b4fae5732aa97a4694e433505edff8fded034d8 (patch)
treedb5f338e90ab469d8cabbaa7efd4419dce541d0c /src/lib/pubkey/xmss
parenteacbc0076d124d03c38d00df9d1d67c99ba20213 (diff)
fix leaf index size in comment for XMSS_Signature::bytes()
Diffstat (limited to 'src/lib/pubkey/xmss')
-rw-r--r--src/lib/pubkey/xmss/xmss_signature.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature.h b/src/lib/pubkey/xmss/xmss_signature.h
index 838aae2e8..ff9847430 100644
--- a/src/lib/pubkey/xmss/xmss_signature.h
+++ b/src/lib/pubkey/xmss/xmss_signature.h
@@ -105,14 +105,14 @@ class XMSS_Signature final
/**
* Generates a serialized representation of XMSS Signature by
* concatenating the following elements in order:
- * 8-byte leaf index, n-bytes randomness, ots_signature,
+ * 4-byte leaf index, n-bytes randomness, ots_signature,
* authentication path.
*
* n is the element_size(), len equal to len(), h the tree height
* defined by the chosen XMSS signature method.
*
* @return serialized signature, a sequence of
- * (len + h + 1)n bytes.
+ * 4+(len + h + 1)n bytes.
**/
secure_vector<uint8_t> bytes() const;