From: dscott AT networkusa DOT net (SCOTT19U.ZIP_GUY) Newsgroups: comp.os.msdos.djgpp Subject: Re: Crypt() - CAST Date: Thu, 30 Sep 1999 21:31:59 GMT Organization: Retired Electronic Engineer and Y2K expert Lines: 34 Message-ID: <7t0hcl$18i4$1@news.gate.net> References: <7suob2$pti$2 AT news DOT gate DOT net> <7t08uj$i2i$1 AT solomon DOT cs DOT rose-hulman DOT edu> NNTP-Posting-Host: ppp-59.elpasonet.net X-Trace: news.gate.net 938723541 41540 216.84.6.88 (30 Sep 1999 20:32:21 GMT) X-Complaints-To: abuse AT gate DOT net NNTP-Posting-Date: 30 Sep 1999 20:32:21 GMT X-Newsreader: News Xpress 2.01 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <7t08uj$i2i$1 AT solomon DOT cs DOT rose-hulman DOT edu>, "Damian Yerrick" wrote: >SCOTT19U.ZIP_GUY wrote in message >news:7suob2$pti$2 AT news DOT gate DOT net... >> >> The reason is that for encryption you get closer to the machine. >> And even with the same machine you don't find compliers useing the >> same word size. I have yet to hear from any one getting scott19u.zip >> my encryption program to ran on another machine besides the PC. >> Take a look at it. >>8 >> http://www.jim.com/jamesd/Kong/scott19u.zip >> http://members.xoom.com/ecil/index.htm > >But if you don't use the int type, there are two types that are the same >on almost all C and C++ compilers and machines: >short (16 bits) >long (32 bits) In my particulare application I read the file into an area of virtual memory. And then have overlayed various 19 bit fields. One starts at the start of first byte and goes down. An other starts 9 nine before that one. And another start at last bit of file and goes back. The three different layouts of the same memory along with the indianness of the PC seem to cause problem for people who don't have a PC and DJGPP C. Feel free to try to get to ran on something different. Because it requires some understanding of the machine to use it. David A. Scott -- SCOTT19U.ZIP NOW AVAILABLE WORLD WIDE http://www.jim.com/jamesd/Kong/scott19u.zip http://members.xoom.com/ecil/index.htm NOTE EMAIL address is for SPAMERS