From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 18 18:38:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C16F916A403 for ; Wed, 18 Jul 2007 18:38:56 +0000 (UTC) (envelope-from rh@matriplex.com) Received: from edurus.com (mail.accessgeek.com [66.224.198.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9DE2C13C4C1 for ; Wed, 18 Jul 2007 18:38:56 +0000 (UTC) (envelope-from rh@matriplex.com) Received: from lark.hodges.org by edurus.com (MDaemon PRO v9.0.5) with ESMTP id md50002276848.msg for ; Wed, 18 Jul 2007 11:38:56 -0700 From: Richard Hodges To: Stefan Farfeleder Date: Wed, 18 Jul 2007 12:39:47 -0600 User-Agent: KMail/1.8.2 References: <200707181206.52765.rh@matriplex.com> <20070718182657.GG975@lizard.fafoe.narf.at> In-Reply-To: <20070718182657.GG975@lizard.fafoe.narf.at> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707181239.52037.rh@matriplex.com> X-Authenticated-Sender: richard@hodges.org X-Spam-Processed: edurus.com, Wed, 18 Jul 2007 11:38:56 -0700 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 72.36.38.114 X-Return-Path: rh@matriplex.com X-Envelope-From: rh@matriplex.com X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: Re: Rijndael sanity check? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 18:38:56 -0000 On Wednesday 18 July 2007 12:26 pm, Stefan Farfeleder wrote: > On Wed, Jul 18, 2007 at 12:06:35PM -0600, Richard Hodges wrote: > > > ./aes_test > > > > Using key: 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c > > > > 920F0CE0A9A96BB9D8416962BDBBAA7C > > decr: 92 0f 0c e0 a9 a9 6b b9 d8 41 69 62 bd bb aa 7c > > encr: c9 3d 42 18 70 34 ce a8 67 1b 88 43 10 00 d1 8c > > ^^ > > > c74601001001000000000054006b51FF > > decr: c7 46 01 00 10 01 00 00 00 00 00 54 00 6b 51 ff > > encr: c9 3d 42 18 70 34 ce a8 67 1b 88 43 10 a2 d1 8c > > ^^ > It seems to be different. Good eye, and thanks! It did not occur to me that the difference would be so subtle as three bits, as I normally expect encryption to propagate even small bit differences across the entire block. Oops! Bad assumption! Now it looks like I have a bug to find in my own code, but that is so much better than suspecting a problem somewhere else! :) Thanks again, -Richard