aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhouzhongyuan <zhouzhongyuan96@gmail.com>2020-09-15 19:53:42 +0800
committerRoland Shoemaker <roland@golang.org>2020-09-22 21:24:40 +0000
commit2813e22ef841018d6e51bf3c70f5d65ea40065ca (patch)
tree432c19e3d24be9983de7ef0350dad378ea6026bf
parent8f8a8e8921eb46ffba9a5400a259e21eb2011bb7 (diff)
downloadgo-2813e22ef841018d6e51bf3c70f5d65ea40065ca.tar.xz
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 <roland@golang.org> Trust: Roland Shoemaker <roland@golang.org> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Go Bot <gobot@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 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