How to use Shamir Secret Sharing Class in Crypto++
问题 I tried to use the SecretSharing Class in Crypto++, but I couldn't make it work. Here is my code: using namespace CryptoPP; void secretSharing(){ AutoSeededRandomPool rng; SecretSharing shamir(rng, 4, 6); byte test[] = {'a', 'b', 'c', 'd'}; shamir.Put(test, 4); //shamir.MessageEnd(); //cout << shamir.TotalBytesRetrievable() <<endl; } After compile and run, I will get: ./main terminate called after throwing an instance of 'CryptoPP::BufferedTransformation::NoChannelSupport' what(): unknown: