From 77a33b0c16880884cc0326e92c0c30d0e8444a91 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 14 Sep 2010 02:05:05 +0000 Subject: More changes to avoid vector to pointer implicit conversions --- src/constructs/tss/tss.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/constructs/tss/tss.cpp') 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& 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 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(secret, secret_len); + return SecureVector(&secret[0], secret_len); } } -- cgit v1.2.3