I think this way you may be missing a pump(all) it may be best to pipeline
the encoder part.

Best Regards
David Irvine


 <http://maidsafe.net>maidsafe.net Limited is a limited liability company
incorporated in Scotland with number SC297540. VAT Registered 889 0608 77.
Registered Office: 72 Templehill, Troon, KA10 6BE.
Telephone Scotland: +44 1292 750020.




On Wed, Dec 12, 2012 at 1:11 AM, Adam Cooper <[email protected]> wrote:

> I am getting the exception:
>
> "FilterWithBufferedInput: Nonblocking input is not implemented by this
> object."
>
> When I call the following code which I wrote using the CryptoPP API:
>
> void Sign (const std::string& plainText, const std::string&
> privateKeyString, std::string& signedText)
> {
>     CryptoPP::SHA256 hash;
>     byte digest[CryptoPP::SHA256::DIGESTSIZE];
>     hash.CalculateDigest(digest, (const byte*)plainText.c_str(),
> plainText.length());
>     CryptoPP::Base64Encoder encoder;
>
>     encoder.Attach(new CryptoPP::StringSink(signedText));
>     encoder.Put(digest, sizeof(digest));
>     encoder.MessageEnd();
> }
>
> Please advise how to resolve this exception?
>
> Thank you,
> Adam
>
> --
> You received this message because you are subscribed to the "Crypto++
> Users" Google Group.
> To unsubscribe, send an email to
> [email protected].
> More information about Crypto++ and this group is available at
> http://www.cryptopp.com.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to