1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:54:49 -07:00
go/src
Rémy Oudompheng 441ef7978d crypto/des: faster permutation.
This patch introduces specialized functions for initial
and final permutations, and precomputes the output of the
third permutation on the S-box elements.

benchmark           old ns/op    new ns/op    delta
BenchmarkEncrypt         3581         1226  -65.76%
BenchmarkDecrypt         3590         1224  -65.91%

benchmark            old MB/s     new MB/s  speedup
BenchmarkEncrypt         2.23         6.52    2.92x
BenchmarkDecrypt         2.23         6.53    2.93x

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12072045
2013-07-31 22:06:48 +02:00
..
cmd cmd/ld: report pclntab, funcdata sizes in 6l -v output 2013-07-31 15:36:49 -04:00
lib9 libmach,lib9: override unused parameter warnings (fixes windows build) 2013-07-20 12:43:50 +10:00
libbio
libmach libmach: support more 386/amd64 instructions 2013-07-20 00:38:26 -07:00
pkg crypto/des: faster permutation. 2013-07-31 22:06:48 +02:00
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash
make.bat
Make.dist
make.rc
race.bash
race.bat
run.bash doc/codewalk: test source code 2013-07-30 09:42:53 +10:00
run.bat make.bat: incease runtime test timeout to 300s (fixes build) 2013-07-12 12:30:18 +10:00
run.rc
sudo.bash