From owner-cvs-all@FreeBSD.ORG Tue Jul 22 10:42:40 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9E5A1065684; Tue, 22 Jul 2008 10:42:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id AD0AE8FC1C; Tue, 22 Jul 2008 10:42:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.64.3]) by phk.freebsd.dk (Postfix) with ESMTP id 26AEA170EA; Tue, 22 Jul 2008 10:42:39 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m6MAgcSD037753; Tue, 22 Jul 2008 10:42:38 GMT (envelope-from phk@critter.freebsd.dk) To: Max Laier From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 22 Jul 2008 12:39:57 +0200." <200807221239.57653.max@love2party.net> Date: Tue, 22 Jul 2008 10:42:38 +0000 Message-ID: <37752.1216723358@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: cvs-src@freebsd.org, src-committers@freebsd.org, "Andrey A. Chernov" , cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libc/gen arc4random.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2008 10:42:41 -0000 In message <200807221239.57653.max@love2party.net>, Max Laier writes: >On Tuesday 22 July 2008 12:34:51 Poul-Henning Kamp wrote: >> In message <200807221031.m6MAVe9I012301@repoman.freebsd.org>, "Andrey >> A. Cherno >> >> v" writes: >> > Increase initially dropped bytes from 512 to 768 (768 is also >> > suggested in the Ilya Mironov's article). 768 taken from another >> > research where it treats as default for RC4-drop(768): >> > http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#RC4-drop >> >> I've always wondered why the dropped number of bytes is constant, >> wouldn't it be smarter to drop a constant number, and then pull >> out the next byte and drop that many further bytes ? > >If you can observe the runtime that might give you a very good idea what >that byte was ... not sure if that is of relevance, but just a thought. Absolutely true but that would still be better than a fixed number wouldn't it ? -- 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.