Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Apr 2, 2023
1 parent 233e276 commit 0f0e711
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/encryption/t544/t544.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func init() {
}
}

// sign t544 v8.9.35.10440
// sign t544 algorithm
// special thanks to the anonymous contributor who provided the algorithm
func sign(curr int64, input []byte) []byte {
curr %= 1000000
Expand Down Expand Up @@ -60,10 +60,7 @@ func sign(curr int64, input []byte) []byte {
crcData[2] = 1
crcData[4] = 1
copy(crcData[5:9], kt[:4])
crcData[9] = byte(curr >> 24)
crcData[10] = byte(curr >> 16)
crcData[11] = byte(curr >> 8)
crcData[12] = byte(curr)
binary.BigEndian.PutUint32(crcData[9:13], uint32(curr))
copy(crcData[13:], result[:8])
calcCrc := tencentCrc32(&crc32Table, crcData[2:])
copy(kt[4+32:4+32+4], (*[4]byte)(unsafe.Pointer(&calcCrc))[:])
Expand Down

0 comments on commit 0f0e711

Please sign in to comment.