diff --git a/test.cpp b/test.cpp index 02753371..e41a49e3 100644 --- a/test.cpp +++ b/test.cpp @@ -666,6 +666,8 @@ void SecretShareFile(int threshold, int nShares, const char *filename, const cha ChannelSwitch *channelSwitch = NULLPTR; FileSource source(filename, false, new SecretSharing(rng, threshold, nShares, channelSwitch = new ChannelSwitch)); + // Be careful of the type of Sink used. An ArraySink will stop writing data once the array + // is full. Also see http://groups.google.com/forum/#!topic/cryptopp-users/XEKKLCEFH3Y. vector_member_ptrs fileSinks(nShares); std::string channel; for (int i=0; i fileSinks(nShares); std::string channel; for (int i=0; i