Can someone explain what the error is? how to solve this? i don't
understand really. i want to recursive a directory and getting the hash and
save it to vector string for use later.
CryptoPP::SHA256 hash;
std::vector<string> str;
for(auto& p : std::experimental::filesystem::recursive_directory_iterator(
std::experimental::filesystem::current_path()))
{
if (std::experimental::filesystem::is_regular_file(status(p)))
{
CryptoPP::FileSource(p.path().c_str(), true, new CryptoPP::HashFilter(hash,
new CryptoPP::HexEncoder(new CryptoPP::StringSink(str))), true);
}
}
for (auto& list : str)
{
std::cout << list << std::endl;
}
getchar();
return 0;
i get 2 errors here 1 is problem with StrinkSink and the one with
FileSource it self.
1.) Description Detail Description
no instance of constructor
"CryptoPP::StringSinkTemplate<T>::StringSinkTemplate [with T=std::string]"
matches the argument list argument types are:
(std::vector<std::string, std::allocator<std::string>>)
2.) Description
'<function-style-cast>': cannot convert from 'initializer list' to
'CryptoPP::FileSource'
--
You received this message because you are subscribed to "Crypto++ Users". More
information about Crypto++ and this group is available at
http://www.cryptopp.com and
http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.