We are trying to use the CryptEncrypt() API routine to encode a text
string. We have this working in a Visual Basic program and are now
trying to port it to a Fortran program.
In our program we call the CryptEncrypt() API routine twice. The first
time we want to send a null or blank string along with the current clear
text string length to get back the encoded string length. We can then
check if our output string will be long enough to contain the encoded
When we call the CryptEncrypt() routine the first time in the Fortran
program we get an error code of 234. That error translates to "More
data is available" or ERROR_MORE_DATA. I'm not sure how to interpret
that error code.
I think we have a problem with defining the null string to pass in; we
have tried several options including the pointer to a blank string,
NULL, a zero "0" that all return the same error code 234.
I appreciate your comments and advice on how we can use the
CryptEncrypt() routine to encode a text string from a Fortran program.
Thanks for your help!
Structural Reliability Technology
1898 South Flatiron Court, Suite 235
Boulder, Colorado 80301
voice: (303) 415-1475 FAX: (303) 415-1847