aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMatthias Gierlings <[email protected]>2018-05-27 18:36:29 +0200
committerMatthias Gierlings <[email protected]>2018-05-27 18:36:29 +0200
commit5c29254742fb62373c4d74a106d8c460cbbcb52c (patch)
treee91d3eb573b0755772616b0e9c51003f79138a8f /src/lib
parent804cad526303be7d75c3ad4c06dc1c8ffbbd1ba7 (diff)
Improves "Avoid repeated allocations in XMSS chain function"
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pubkey/xmss/xmss_wots_publickey.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_wots_publickey.cpp b/src/lib/pubkey/xmss/xmss_wots_publickey.cpp
index 9207a2c57..68a8c5ad3 100644
--- a/src/lib/pubkey/xmss/xmss_wots_publickey.cpp
+++ b/src/lib/pubkey/xmss/xmss_wots_publickey.cpp
@@ -30,7 +30,8 @@ XMSS_WOTS_PublicKey::chain(secure_vector<uint8_t>& result,
//Calculate tmp XOR bitmask
adrs.set_key_mask_mode(XMSS_Address::Key_Mask::Mask_Mode);
- xor_buf(result, hash.prf(seed, adrs.bytes()), result.size());
+ hash.prf(prf_output, seed, adrs.bytes());
+ xor_buf(result, prf_output, result.size());
// Calculate key
adrs.set_key_mask_mode(XMSS_Address::Key_Mask::Key_Mode);