From 7e92b80c21ea22b9dcfb27cc68c61b805485f379 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Chaoshuai=20L=C3=BC?= Date: Wed, 30 Nov 2022 12:29:46 +0000 Subject: [PATCH] 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 Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Russ Cox --- src/crypto/des/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0