i am porting opera recovery from alredy existed c++ code
i struck at this line
DES_set_key_unchecked((const_DES_cblock *)&hashSignature1[0],&key_schedule1);
where can i found a procedure/function similar to that in delphi
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rather than worry about that specific function, take a step back and look at the overall goal of the code. The code is meant to encrypt something with 3DES. The behavior of any one function doesn’t matter as long as you’ve 3DES-encrypted the message.
To that end, you should be asking for a library capable of doing 3DES encryption with Delphi. DCPcrypt is an example. Use its
TDCP_3desclass and call itsInitmethod. The function expects the input key to be an array of three keys, each eight bytes wide. WhatDES_set_key_uncheckedwas doing in the original code was to fill a platform-specificDES_key_schedulestructure with some of the bytes from the MD5 hashes calculated earlier. DCPcrypt uses a different platform-specific structure: