From owner-freebsd-bugs@FreeBSD.ORG Sun May 11 16:17:48 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B4B37B485 for ; Sun, 11 May 2003 16:17:45 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id AABD743FBF for ; Sun, 11 May 2003 16:17:44 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h4BNH8YP003118; Mon, 12 May 2003 01:17:14 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Stephen Samuel From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 11 May 2003 16:05:37 PDT." <3EBED741.9050000@bcgreen.com> Date: Mon, 12 May 2003 01:17:08 +0200 Message-ID: <3117.1052695028@critter.freebsd.dk> cc: freebsd-bugs@freebsd.org cc: Robin Carey cc: bugs@openbsd.org Subject: Re: /dev/random and /dev/urandom X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2003 23:17:48 -0000 There is one current concern with MD5: over-ratio of collisions. What this means is that it may be a bit too easy to find a MD5 input which generates a given MD5 output. This has an impact where one uses MD5 in authentication schemes like: server client ----------------------------------------------------------- WHO ARE YOU ? (magic=234287234) Calculate MD5(password + 234287234) and send the result: abd344... Calculate MD5(password + 234287234) receive clients bid compare "they are identical, so the client knows the password" OK WELCOME! In such a setting an over-ratio of collisions will at the very least reduce the probabilities and In applications where MD5 is simply used as a bit-blender, this is of no concern. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.