aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs
diff options
context:
space:
mode:
Diffstat (limited to 'src/constructs')
-rw-r--r--src/constructs/tss/tss.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constructs/tss/tss.cpp b/src/constructs/tss/tss.cpp
index 49ee4ddb3..644e8d857 100644
--- a/src/constructs/tss/tss.cpp
+++ b/src/constructs/tss/tss.cpp
@@ -247,14 +247,14 @@ RTSS_Share::reconstruct(const std::vector<RTSS_Share>& shares)
if(secret.size() != secret_len + hash->OUTPUT_LENGTH)
throw Decoding_Error("Bad length in RTSS output");
- hash->update(secret, secret_len);
+ hash->update(&secret[0], secret_len);
SecureVector<byte> hash_check = hash->final();
if(!same_mem(&hash_check[0],
&secret[secret_len], hash->OUTPUT_LENGTH))
throw Decoding_Error("RTSS hash check failed");
- return SecureVector<byte>(secret, secret_len);
+ return SecureVector<byte>(&secret[0], secret_len);
}
}