steve0
steve0

Reputation: 731

DES_KEY_SZ delphi

i am coding opera recovery tool in my delphi

i am using c++ which is already exist

http://pastebin.com/ViPf0yn6

but i didnt get whats DES_KEY_SZ in that code .

i think they are present in des.h ,but i couldnt found same des.pas :(

can any one help me please

regards

Upvotes: 0

Views: 234

Answers (2)

Rob Kennedy
Rob Kennedy

Reputation: 163257

Google Code Search finds many copies of des.h, where the DES_KEY_SZ macro is defined. It's the size of a des_cblock, which happens to be an array of eight unsigned chars.

In other words, DES_KEY_SZ = 8.

You're going to run into other problems beyond just that missing identifier, though. The code you showed calls a handful of DES functions, too. To unencrypt the data, try using DCPCrypt.

Upvotes: 0

Andreas Rejbrand
Andreas Rejbrand

Reputation: 108948

Here we go: http://freebsd.active-venture.com/FreeBSD-srctree/newsrc/crypto/des/des.h.html

Apparently,

#define DES_KEY_SZ  (sizeof(des_cblock))

where

typedef unsigned char des_cblock[8];

I am not a C programmer, but I think that this means that DES_KEY_SZ has the value 8.

Upvotes: 1

Related Questions