From 2813e22ef841018d6e51bf3c70f5d65ea40065ca Mon Sep 17 00:00:00 2001 From: zhouzhongyuan Date: Tue, 15 Sep 2020 19:53:42 +0800 Subject: [PATCH] crypto/des: fix typo in permuteInitialBlock function comments Fixes #41398 Change-Id: Ib47b8ec43bb11d8cd13c24f833532434127c7532 Reviewed-on: https://go-review.googlesource.com/c/go/+/254980 Reviewed-by: Roland Shoemaker Trust: Roland Shoemaker Trust: Katie Hockman Run-TryBot: Roland Shoemaker TryBot-Result: Go Bot --- 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 3e3fe06c02..cc2888e2c7 100644 --- a/src/crypto/des/block.go +++ b/src/crypto/des/block.go @@ -127,7 +127,7 @@ func permuteInitialBlock(block uint64) uint64 { b2 = (block & 0xff00ff00) block ^= b1<<32 ^ b2 ^ b1<<8 ^ b2<<24 // exchange b0 b4 with b3 b7 - // block is now b1 b3 b5 b7 b0 b2 b4 b7, the permutation: + // block is now b1 b3 b5 b7 b0 b2 b4 b6, the permutation: // ... 8 // ... 24 // ... 40 -- 2.50.0