in out parameters in CPEncrypt

P

p_hose

hi
I'm trying to write CPEncrypt function. but i don't change the
content's of the pbData. First it contained the plaintext. But after
encryption i did not write the ciphertext value on it. Actually it
change in the CSP dll but pbData which is in the cryptencrypt function
didn't change. how could i write the value on pbData? i used
memcpy,strcpy but it didn't solve problem.
thanks.
 
R

Richard Heathfield

p_hose said:
hi
I'm trying to write CPEncrypt function. but i don't change the
content's of the pbData. First it contained the plaintext. But after
encryption i did not write the ciphertext value on it. Actually it
change in the CSP dll but pbData which is in the cryptencrypt function
didn't change. how could i write the value on pbData? i used
memcpy,strcpy but it didn't solve problem.

The bug is on line 42 of your program. You are failing to call the
FixMyProblem() function.

If you don't have the source code to FixMyProblem(), have some sympathy for
the rest of us. We can't even see the /problem/ source, let alone the
solution source.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top