On Saturday, October 27, 2018 at 1:27:43 PM UTC-4, Martin Dušek wrote:
>
> I finally have working code:
>
>  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey key; key.Load
> (queue);
>  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::Verifier verifier(key);
>  
>  CryptoPP::SignatureVerificationFilter verificationFilter(verifier, NULL, 
> CryptoPP::SignatureVerificationFilter::SIGNATURE_AT_BEGIN);
>  CryptoPP::FileSource fileSource( file, false, new CryptoPP::Redirector(
> verificationFilter));
>  CryptoPP::StringSource signatureSource( (const CryptoPP::byte*)signature.
> data(), signature.length(), false, new CryptoPP::Redirector(
> verificationFilter));
>  signatureSource.Pump(signature.length());
>  fileSource.PumpAll();
>  
>  return verificationFilter.GetLastResult();
>

Also see https://stackoverflow.com/q/52988269/608639 

-- 
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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to