Const unsigned char * salt, const unsigned char * data,
Int datal, int count, unsigned char * key, unsigned char * iv);
Inside the type parameter is Delphi keywords,
If a _type, if the function is the need to rewrite in Delphi?
CodePudding user response:
In the c parameter name can be omitted, you can literally change the parameters in Delphi,CodePudding user response:
I now switch toThe function EVP_BytesToKey (const _type: pEVP_CIPHER; Const md: pEVP_MD; Const salt: pchar; Const data: pchar; Datal: integer; Count: integer; Var key: pchar; Var iv: pchar) : integer; Cdecl; External 'libeay32. DLL' name 'EVP_BytesToKey';
After the call has been back to 24, I do not know is what reason,
Did you cut with Delphi OPENSSL EVP example as a symmetric encryption algorithm?
CodePudding user response:
Parameter name can change, important parameter types with respect to OK,CodePudding user response:
Are you using Delphi? After 2010 to replace C with PAnsiChar Char *