Descriptioncrypto/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
Patch Set 1 #Patch Set 2 : diff -r ae81458f37d7 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 7c42cfa28e24 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r cc5858966b08 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|