1
0
mirror of https://github.com/golang/go synced 2024-11-18 04:04:49 -07:00

crypto/des: fix a typo in the comment for permuteFinalBlock #56969

The comment copy pasted from the permuteInitialBlock and should be fixed.
This commit is contained in:
Chaoshuai Lü 2022-11-29 11:03:58 -08:00 committed by GitHub
parent 53c480077a
commit 7662df772e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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