]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/des: fix a typo in the comment for permuteFinalBlock
authorChaoshuai Lü <lcs@meta.com>
Wed, 30 Nov 2022 12:29:46 +0000 (12:29 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 1 Dec 2022 21:00:43 +0000 (21:00 +0000)
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>
src/crypto/des/block.go

index 192913094eeca9a8fc1ef1b0f8cf352cd2cce3e6..e0299760d9500f8f13850a1fd7f6e47645522179 100644 (file)
@@ -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