]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/des: fix typo in permuteInitialBlock function comments
authorzhouzhongyuan <zhouzhongyuan96@gmail.com>
Tue, 15 Sep 2020 11:53:42 +0000 (19:53 +0800)
committerRoland Shoemaker <roland@golang.org>
Tue, 22 Sep 2020 21:24:40 +0000 (21:24 +0000)
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>

src/crypto/des/block.go

index 3e3fe06c02393138be9d71cd13b01d696e69580c..cc2888e2c762752a54d11e1accecc034b3ad404d 100644 (file)
@@ -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