Sorry to post another question on c header conversion, but I am
just not getting this one:
C Declaration:
Here's a couple of my attempts
Not even close!
Once again, sorry but I could use some help.
-Ken
------------------
[This message has been edited by Ken Myers (edited August 08, 2003).]
just not getting this one:
C Declaration:
Code:
'C Declaration 'void _stdcall derive_key(const unsigned char pwd[], /* the PASSWORD */ ' unsigned int pwd_len, /* and its length */ ' const unsigned char salt[], /* the SALT and its */ ' unsigned int salt_len, /* length */ ' unsigned int iter, /* the number of iterations */ ' unsigned char key[], /* space for the output key */ ' unsigned int key_len)/* and its required length */ '{

Code:
DECLARE SUB derive_key LIB "HmacSha1.dll" ALIAS "derive_key" (bytPwd() as BYTE,pwdlen AS LONG,bytSalt() as BYTE,saltlen AS LONG,iter AS LONG,key() AS BYTE,keylen AS LONG) DECLARE SUB derive_key LIB "HmacSha1.dll" ALIAS "derive_key" (strPwd AS ASCIIZ PTR,pwdlen AS LONG,strSalt AS ASCIIZ PTR,saltlen AS LONG,iter AS LONG,key() AS BYTE,keylen AS LONG)
-Ken
------------------
[This message has been edited by Ken Myers (edited August 08, 2003).]
Comment