From owner-freebsd-questions Thu Mar 4 20:47: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 0CE8814BFA for ; Thu, 4 Mar 1999 20:47:02 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id XAA09072; Thu, 4 Mar 1999 23:55:59 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199903050455.XAA09072@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Crypt In-Reply-To: <36DF5C67.EEA1F0B0@confusion.net> from Laurence Berland at "Mar 4, 99 11:24:07 pm" To: stuyman@confusion.net (Laurence Berland) Date: Thu, 4 Mar 1999 23:55:59 -0500 (EST) Cc: questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Laurence Berland wrote, > This is a rather odd question, and I don't know where else to post > this. I'm trying to find the sources for MD5 and DES in FreeBSD, but > can't seem to locate them. That's a perfectly valid question for the list. Do you have source on your system? Try, /usr/src/lib/libcrypt For the default MD5 routines or /usr/src/secure/lib/libcrypt For DES and MD5. > If anyone can either point me to the code > or (and this would make me very happy) tell me the mathematical formulas > on which one of these (or a more basic version of these) schemes works. It's all about factorization, division, and modulo operations on very large whole numbers. If you are really interested in cryptography, there are many, many sources that will be much better to start at than source code. An in depth discussion is beyond the scope of this maillist. Some web searches probably would be a good place for you to start. Here is a fairly interesting one on MD5 that might answer your question below, http://www.spiderline.com/document/md5/index.html > On a related note the following statement confuses me, what does > "Because neither > of these functions involve encryption, they are believed to be > exportable from the US and importable into many other countries." Mean?? > How do they (the sentence refers to Williams insecure function and MD5) > not encrypt?? If they don't encrypt what do they do, and how does that > differ from DES?? Sorry if this isn't the best place for this question, > but it would seem that it relates at least somewhat to FBSD. The final > question is which is really more secure, (Read: which should I use), MD5 > or DES? Is there any way to get some really really big key-size that > might be more secure than both of those? If you've even read this whole > message I'm already happy. Thanks in advance for any help. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message