aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoshuai Lü <lcs@meta.com>2022-11-30 12:29:46 +0000
committerGopher Robot <gobot@golang.org>2022-12-01 21:00:43 +0000
commit7e92b80c21ea22b9dcfb27cc68c61b805485f379 (patch)
tree4df641c38be0d512119243b4315f1d4608c8fd20
parent86963b458ebe564f16e66dde0319af7f72e46480 (diff)
downloadgo-7e92b80c21ea22b9dcfb27cc68c61b805485f379.tar.gz
go-7e92b80c21ea22b9dcfb27cc68c61b805485f379.zip
crypto/des: fix a typo in the comment for permuteFinalBlock
The comment copy pasted from the permuteInitialBlock and should be fixed. Change-Id: I101f1deceadf9b0480e5b679e4e237bda601950b GitHub-Last-Rev: 7662df772e4ac171c79467678861ac4d7547da78 GitHub-Pull-Request: golang/go#56982 Reviewed-on: https://go-review.googlesource.com/c/go/+/453995 TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r--src/crypto/des/block.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/des/block.go b/src/crypto/des/block.go
index 192913094e..e0299760d9 100644
--- a/src/crypto/des/block.go
+++ b/src/crypto/des/block.go
@@ -182,7 +182,7 @@ func permuteInitialBlock(block uint64) uint64 {
return block
}
-// permuteInitialBlock is equivalent to the permutation defined
+// permuteFinalBlock is equivalent to the permutation defined
// by finalPermutation.
func permuteFinalBlock(block uint64) uint64 {
// Perform the same bit exchanges as permuteInitialBlock