diff options
| author | cuishuang <imcusg@gmail.com> | 2025-12-15 10:22:03 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-02-09 15:23:40 -0800 |
| commit | 0f550bcfc3ad8525331d535d1f1e844d86472cbe (patch) | |
| tree | 54ae23604a2be1c5d80b74cf96158fdd9abc1574 /src | |
| parent | 64a71d4f845d388a1c8c5bb1fd70d33c32a2aaf3 (diff) | |
| download | go-0f550bcfc3ad8525331d535d1f1e844d86472cbe.tar.xz | |
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 <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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/des/const.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
