Hello All
Currently I have a structure
struct MyBlob
{
unsigned char pbData;
DWORD cbData;
};
MyBlob sm;
where sm.pbData holds digital signature, and sm.cbData hold number of
bytes of signature.
I want to transfer this structure sm to a server using send()
function. send() accepts string only. I transferred this structure
using many ways, e.g. i transfered each element of this strcutre to
strings, combined them in one string ans sent to server, and did the
reverse at receiver. (i used strcpy(), memcpy(), memmove() etc). at
receiver there is a new structure of same type, which i want to
initialize with the received one. because there is verifysignature()
procedure, which accepts only structure of the same type.
When i received this structure, its exactly same as the sent one ( i
compared it with the sent one e.g. its size, element by element
comparision, displayed the elements of both). they look same, but
verifysignature() dont verify the signature.
although there is no certificate/key etc problem.
can anybody help me how to transfer the structure MyBlob? and how to
initialze another structure of the same kind at receiver end?
regards,
Wilayat
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---