From: cuishuang Date: Mon, 15 Dec 2025 02:22:03 +0000 (+0800) Subject: crypto/des: correct finalPermutation comment from 4-bit to 64-bit X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f550bcfc3ad8525331d535d1f1e844d86472cbe;p=gostls13.git crypto/des: correct finalPermutation comment from 4-bit to 64-bit 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 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Filippo Valsorda Auto-Submit: Filippo Valsorda --- diff --git a/src/crypto/des/const.go b/src/crypto/des/const.go index a20879d574..eb2e1ec3c1 100644 --- a/src/crypto/des/const.go +++ b/src/crypto/des/const.go @@ -22,7 +22,7 @@ var initialPermutation = [64]byte{ 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,