如何描述AES有部分消息? (带钥匙)

时间:2017-06-09 12:22:31

标签: encryption aes

我们如何解密部分原始邮件,部分编码文本,IV和密钥的邮件(如果可能)?假设我们只有一个区块。

示例:

  • IV = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  • 原文= __ __ __ 00 00 00 00 00 00 00 00 00 00 00 00 00
  • encripted text = XX YY ZZ __ __ __ __ __ __ __ __ __ __ __ __ __

(我们不知道__字节,但我们知道密钥) 此外,原始文本和encriptrd文本的已知字节数始终为16

修改 所有先前的块(加密的)都是已知的。初始链接模式是CBC,但我们可以使用给定的密钥和IV解码所有先前的块。这将是最后一个。

这就是为什么我们可以假设我们只有一个块并且链接是ECB。

1 个答案:

答案 0 :(得分:0)

In order to decrypt a portion of CBC mode encrypted data the prior encrypted block is needed. See CBC mode.

On encryption it is the previous block's encrypted data that is xor'ed with the plain text. In the case of the first block it is the IV that is xor'ed with the data.