Hi,
I'm seeing an assert on line 952 in filters.cpp in function:
void SignatureVerificationFilter::InitializeDerivedAndReturnNewSizes()
It seems that the verifier's signature is always of size 0.
Here is my sloppy test code:
bool VerifyMessage(string messageSigned, string signature){
string pubString = "This is the hexstring but omitted for this
post.";
DSA::PublicKey publicKey;
publicKey.Load(StringStore(hexDecodeKey(pubString)).Ref());
string message(messageSigned);
DSA::Verifier verifier(publicKey);
string stringSignature(signature);
string decodedSignature;
HexDecoder hexDecoder;
hexDecoder.Put((byte*) stringSignature.data(),
stringSignature.size());
hexDecoder.MessageEnd();
StringSource(message + decodedSignature, true,
new SignatureVerificationFilter(
verifier, NULL,
SignatureVerificationFilter::THROW_EXCEPTION
)
);
return true;
}
For some reason on Solaris this always asserts in
InitializeDerivedAndReturnNewSizes().
This same code works fine on Windows, Linux and Mac.
Any help or insight into this would be great!
Thanks so much!
Chris
--
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.