aa
This commit is contained in:
@@ -252,6 +252,7 @@ func (c *DingTalkCrypto) GetDecryptMsg(signature, timestamp, nonce, secretMsg st
|
|||||||
}
|
}
|
||||||
blockMode := cipher.NewCBCDecrypter(c.Block, c.BKey[:c.Block.BlockSize()])
|
blockMode := cipher.NewCBCDecrypter(c.Block, c.BKey[:c.Block.BlockSize()])
|
||||||
plantText := make([]byte, len(decode))
|
plantText := make([]byte, len(decode))
|
||||||
|
|
||||||
blockMode.CryptBlocks(plantText, decode)
|
blockMode.CryptBlocks(plantText, decode)
|
||||||
plantText = pkCS7UnPadding(plantText)
|
plantText = pkCS7UnPadding(plantText)
|
||||||
size := binary.BigEndian.Uint32(plantText[16:20])
|
size := binary.BigEndian.Uint32(plantText[16:20])
|
||||||
|
|||||||
Reference in New Issue
Block a user