The finalPermutation array operates on a 64-bit preoutput block,
not a 4-bit block. This updates the comment to accurately
reflect the size of the data being processed in the DES
algorithm's final permutation step.
Change-Id: Ib6a5828a2e72d8bc8d04a3d413eaac320c15df15
Reviewed-on: https://go-review.googlesource.com/c/go/+/730020
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
1, 9, 17, 25, 33, 41, 49, 57,
}
-// Used to perform a final permutation of a 4-bit preoutput block. This is the
+// Used to perform a final permutation of a 64-bit preoutput block. This is the
// inverse of initialPermutation
var finalPermutation = [64]byte{
24, 56, 16, 48, 8, 40, 0, 32,