freebsd-skq/sys/crypto
jmg 8ec798134a Use the fact that the AES-NI instructions can be pipelined to improve
performance... Use SSE2 instructions for calculating the XTS tweek
factor...  Let the compiler do more work and handle register allocation
by using intrinsics, now only the key schedule is in assembly...

Replace .byte hard coded instructions w/ the proper instructions now
that both clang and gcc support them...

On my machine, pulling the code to userland I saw performance go from
~150MB/sec to 2GB/sec in XTS mode.  GELI on GNOP saw a more modest
increase of about 3x due to other system overhead (geom and
opencrypto)...

These changes allow almost full disk io rate w/ geli...

Reviewed by:	-current, -security
Thanks to:	Mike Hamburg for the XTS tweek algorithm
2013-09-03 18:31:23 +00:00
..
aesni Use the fact that the AES-NI instructions can be pipelined to improve 2013-09-03 18:31:23 +00:00
blowfish
camellia
des
rc4 Revert previous commit... 2012-10-10 08:36:38 +00:00
rijndael
sha2 Sync with KAME. 2013-07-09 22:04:35 +00:00
siphash Fix const propagation issues to make GCC happy. 2013-07-11 16:27:11 +00:00
via Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
sha1.c
sha1.h