Home > Back-end >  Delphi vc DLL, the DLL function parameter is the Delphi keywords?
Delphi vc DLL, the DLL function parameter is the Delphi keywords?

Time:10-12

Such as: int EVP_BytesToKey (const EVP_CIPHER * type, const EVP_MD * md,
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 to
The 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 *
  • Related