Hi
 
Anyone know why StringSink crash in Win 7 64 bit.  I am using release build 
(FIPS validated) cryptopp 5.3 (64 bit windows).  My app is compiled using 
VS 2010.
 

It looks like the string passed thru the StringSink is lost when get to 
StringSinkTemplate constructor. m_output pointer is invalid.

DSA::PrivateKey dsaPrivateKey;

dsaPrivateKey.GenerateRandomWithKeySize(rng, 1024);

DSA::PublicKey dsaPublicKey;

dsaPublicKey.AssignFrom(dsaPrivateKey);

 

std::string encodedDsaPublicKey;

std::string encodedDsaPrivateKey;

 

dsaPublicKey.DEREncode(StringSink(encodedDsaPublicKey).Ref()); // CRASH HERE

dsaPrivateKey.DEREncode(StringSink(encodedDsaPrivateKey).Ref());

Thanks in advance

johnpaul

 

 

 

-- 
-- 
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 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/groups/opt_out.

Reply via email to