ChaCha8/12/20 and GEOM ELI tests

John-Mark Gurney jmg at funkthat.com
Mon Jan 12 07:22:57 UTC 2015


rozhuk.im at 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 at 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."


More information about the freebsd-geom mailing list