From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 12 07:22:57 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7F563262; Mon, 12 Jan 2015 07:22:57 +0000 (UTC) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 59459FE; Mon, 12 Jan 2015 07:22:57 +0000 (UTC) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t0C7MoSR009962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Jan 2015 23:22:50 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t0C7Mnvp009961; Sun, 11 Jan 2015 23:22:49 -0800 (PST) (envelope-from jmg) Date: Sun, 11 Jan 2015 23:22:49 -0800 From: John-Mark Gurney To: rozhuk.im@gmail.com Subject: Re: ChaCha8/12/20 and GEOM ELI tests Message-ID: <20150112072249.GM1949@funkthat.com> References: <54b33bfa.e31b980a.3e5d.ffffc823@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54b33bfa.e31b980a.3e5d.ffffc823@mx.google.com> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Sun, 11 Jan 2015 23:22:50 -0800 (PST) Cc: freebsd-hackers@freebsd.org, freebsd-geom@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2015 07:22:57 -0000 rozhuk.im@gmail.com wrote this message on Mon, Jan 12, 2015 at 06:13 +0300: > FreeBSD firewall 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r276867M: Fri Jan 9 > 09:34:39 MSK 2015 root@firewall:/usr/obj/usr/src/sys/RIMx64 amd64 > > Cha?ha patch: > http://netlab.linkpc.net/download/software/FreeBSD/patches/chacha.patch What's the difference between CHACHA and XCHACHA? Also, where are the man page diffs? They might have explained the difference between the two, and explained why two versions of chacha are needed... Is there a reason you decided to write your own ChaCha implementation instead of using one of the standard ones? Did you run performance tests between your implementation and others? > HW: Core Duo E8500, 8Gb DDR2-800. > dd if=/dev/zero of=/dev/md0 bs=1m > 2148489421 bytes/sec > > > # sector = 512b > 3DES-CBC-192 = 20773120 bytes/sec > AES-CBC-128 = 85276853 bytes/sec > AES-CBC-256 = 68893016 bytes/sec > AES-XTS-128 = 68194868 bytes/sec > AES-XTS-256 = 56611573 bytes/sec > Blowfish-CBC-128 = 11169657 bytes/sec > Blowfish-CBC-256 = 11185891 bytes/sec > Camellia-CBC-128 = 78077243 bytes/sec > Camellia-CBC-256 = 65732219 bytes/sec > ChaCha8-XTS-256 = 258042765 bytes/sec > ChaCha12-XTS-256 = 223616967 bytes/sec > ChaCha20-XTS-256 = 176005366 bytes/sec > XChaCha8-XTS-256 = 228292624 bytes/sec > XChaCha12-XTS-256 = 195577624 bytes/sec > XChaCha20-XTS-256 = 152247267 bytes/sec > XChaCha20-XTS-128 = 152717737 bytes/sec ! 128 bit key have same speed as 256 > > > # sector = 4kb > 3DES-CBC-192 = 22018189 bytes/sec > AES-CBC-128 = 104097143 bytes/sec > AES-CBC-256 = 81983833 bytes/sec > AES-XTS-128 = 78559346 bytes/sec > AES-XTS-256 = 66047200 bytes/sec > Blowfish-CBC-128 = 38635464 bytes/sec > Blowfish-CBC-256 = 38810555 bytes/sec > Camellia-CBC-128 = 92814510 bytes/sec > Camellia-CBC-256 = 75949489 bytes/sec > ChaCha8-XTS-256 = 337336982 bytes/sec > ChaCha12-XTS-256 = 284740187 bytes/sec > ChaCha20-XTS-256 = 217326865 bytes/sec > XChaCha8-XTS-256 = 328424551 bytes/sec > XChaCha12-XTS-256 = 278579692 bytes/sec > XChaCha20-XTS-256 = 211660225 bytes/sec > > Optimized AES-XTS - speed like AES-CBC: > AES-XTS-128 = 102841051 bytes/sec > AES-XTS-256 = 80813644 bytes/sec Is this from a different patch or what? Can you talk more about this? Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."