• Jussi Kivilinna's avatar
    crypto: des_3des - add x86-64 assembly implementation · 6574e6c6
    Jussi Kivilinna authored
    Patch adds x86_64 assembly implementation of Triple DES EDE cipher algorithm.
    Two assembly implementations are provided. First is regular 'one-block at
    time' encrypt/decrypt function. Second is 'three-blocks at time' function that
    gains performance increase on out-of-order CPUs.
    
    tcrypt test results:
    
    Intel Core i5-4570:
    
    des3_ede-asm vs des3_ede-generic:
    size    ecb-enc ecb-dec cbc-enc cbc-dec ctr-enc ctr-dec
    16B     1.21x   1.22x   1.27x   1.36x   1.25x   1.25x
    64B     1.98x   1.96x   1.23x   2.04x   2.01x   2.00x
    256B    2.34x   2.37x   1.21x   2.40x   2.38x   2.39x
    1024B   2.50x   2.47x   1.22x   2.51x   2.52x   2.51x
    8192B   2.51x   2.53x   1.21x   2.56x   2.54x   2.55x
    Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@iki.fi>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    6574e6c6
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...