1
0
mirror of https://github.com/golang/go synced 2024-11-23 10:00:03 -07:00

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>
This commit is contained in:
zhouzhongyuan 2020-09-15 19:53:42 +08:00 committed by Roland Shoemaker
parent 8f8a8e8921
commit 2813e22ef8

View 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