problem?

3 views
Skip to first unread message

Shu-Wei Tan

unread,
Jul 30, 2002, 4:34:46 PM7/30/02
to crypto...@eskimo.com
When using the following code to get a private key from a file to sign a
message:

CryptoPP::FileSource privFile("c:\\bla", true, new
CryptoPP::Base64Decoder);
CryptoPP::RSASSA_PKCS1v15_SHA_Signer privkey(privFile);

I get the following compile errors:

crypto41/pubkey.h(249) : error C2059: syntax error : '<<'
crypto41/pubkey.h(249) : while compiling class-template member function
'__thiscall CryptoPP::SignerTemplate<class
CryptoPP::DigestSignerTemplate<class
CryptoPP::PKCS_SignaturePaddingScheme,class Crypt
oPP::InvertibleRSAFunction>,class CryptoPP::PKCS_DecoratedHashModule<class
CryptoPP::SHA> >::CryptoPP::SignerTemplate<class
CryptoPP::DigestSignerTemplate<class
CryptoPP::PKCS_SignaturePaddingScheme,class
CryptoPP::InvertibleRSAFunction>,class Crypt
oPP::PKCS_DecoratedHashModule<class CryptoPP::SHA> >(void)'
C:\Development\Microsoft Visual Studio\VC98\INCLUDE\xstring(53) : fatal
error C1004: unexpected end of file found
crypto41/pubkey.h(249) : while compiling class-template member
function '__thiscall CryptoPP::SignerTemplate<class
CryptoPP::DigestSignerTemplate<class
CryptoPP::PKCS_SignaturePaddingScheme,class Crypt
oPP::InvertibleRSAFunction>,class CryptoPP::PKCS_DecoratedHashModule<class
CryptoPP::SHA> >::CryptoPP::SignerTemplate<class
CryptoPP::DigestSignerTemplate<class
CryptoPP::PKCS_SignaturePaddingScheme,class
CryptoPP::InvertibleRSAFunction>,class Crypt
oPP::PKCS_DecoratedHashModule<class CryptoPP::SHA> >(void)'

It seems to be the second line of code that causes the error. I am using
MSVC++ 6.0

Shu-Wei Tan

Reply all
Reply to author
Forward
0 new messages