Ok, i will explain it a bit more.
CRYPT_DATA_BLOB is a structure. it consists of two elements as below.
I want to send this structure to receiver.
[CODE]typedef struct _CRYPTOAPI_BLOB {
DWORD cbData;
BYTE* pbData;
}CRYPT_DATA_BLOB;[/CODE]
I have an object SingnedMessage of type CRYPT_DATA_BLOB. I want to
send the two elements of this structure ( the whole structure, so to
use it at receiver end) "cbData" and "pbData". For socket to send
data, I need these two values to be in type String. I tried as below
[CODE]
CRYPT_DATA_BLOB SignedMessage;
char BufToHoldSignedMsg[700];
int length;
....
....
....
lenght = (int)SignedMessage.cbData;
BufToHoldSignedMsg = (char*)SignedMessage.pbData;
[/CODE]
Now I wanted to convert integer "lenght" to char and then concatenate
it with BufToHoldSignedMsg, and send it to receiver, and do the
reverse process to reinitialize a structure of the same kind so to use
it for Signature Verification. But it gives many errors.
Please if anybody help me in this.
regards,
Wilayat Khan
On 17 Aug, 23:19, Wilayat <[EMAIL PROTECTED]> wrote:
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---