diff options
author | Jack Lloyd <[email protected]> | 2018-08-24 13:46:27 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-24 13:46:27 -0400 |
commit | 162cf0b2cd41dcb866abff1bbf860ea253f89821 (patch) | |
tree | 6c6dfc0496f534a051b3b5dd54d3884d63aa9688 | |
parent | afbae250e23c202329792a06783184b7ba08776f (diff) | |
parent | 88213d27a3601639d75cd977c0642f7ac19bd7cf (diff) |
Merge GH #1659 Report correct size for XMSS signatures
-rw-r--r-- | src/lib/pubkey/xmss/xmss_signature_operation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature_operation.cpp b/src/lib/pubkey/xmss/xmss_signature_operation.cpp index d6a57bb08..8c53cd924 100644 --- a/src/lib/pubkey/xmss/xmss_signature_operation.cpp +++ b/src/lib/pubkey/xmss/xmss_signature_operation.cpp @@ -54,8 +54,10 @@ XMSS_Signature_Operation::sign(const secure_vector<uint8_t>& msg_hash, size_t XMSS_Signature_Operation::signature_length() const { - // TODO bound this by the params - return 128*1024; + return sizeof(uint64_t) + // size of leaf index + m_xmss_params.element_size() + + m_xmss_params.len() * m_xmss_params.element_size() + + m_xmss_params.tree_height() * m_xmss_params.element_size(); } wots_keysig_t |