什么是 DES-X?

发布于 2024-07-26 23:14:43 字数 56 浏览 4 评论 0原文

什么是 DES-X?

DES-X 和 DES 是否向后兼容

What is DES-X?

And

DES-X and DES, are they backwards compatible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

冰之心 2024-08-02 23:14:43

嗯,DES-X 是 DES 分组密码的一个变体(我相信您已经知道了)。

引入 DES-X 的原因是试图提高原始 DES 算法(仅限于 56 位密钥)的安全性。 建议的 DEX-X 解决方案是使用另外两个 64 位密钥,这将使攻击者更难猜测 DES 算法的密钥。 基本上,第一个附加密钥与纯文本进行异或运算,然后使用 DES 进行加密。 第二个附加密钥与所得密码进行异或运算。

然而,就向后兼容性而言..我不确定你的意思是什么? 如果您询问是否可以使用 DES 来解密 DES-X 消息,那么“否”(严格意义上来说)。 如果您询问是否可以将 DES-X 实现配置为加密/解密 DES 消息,那么答案是“是”。

举个例子:

    DES(msg) = CYPHER
    DES-X(msg) = K2 X DES(K1 x msg) = CYPER-X

如果选择K2和K1全为0,那么:

    DES-x(msg) = K2 x DES(K1 x msg) [where K1 = 0, K2 =0] = DES(msg)

需要指出的是,我所说的让K1和K2都为0的意思实际上是选择一个64位的0 = {0, 0,0,0,0...0}(64 次)。 当应用异或运算时,这样的密钥根本不会修改密码的明文。

Well, DES-X is a variant of the DES block cipher (as I'm sure you already knew).

The reason for the introduction of the DES-X was an attempt to increase the security of the original DES algorithm (which was limited to a 56bit key). The proposed solution with DEX-X was to use two more 64-bit keys which would be applied to make it harder for an attacker to guess the key of the DES algorithm. Basically, the first additional key is XORed to the plain text which is then encrypted with DES. The second additional key is XORed to the resulting cypher.

However, as far the backwards compatibility.. I'm not sure what you mean by that? If you're asking if you can use DES to decrypt DES-X messages then NO (it the strict sense). If you're asking whether a DES-X implementation could be configured to encrypt/decrypt DES messages then the answer is YES.

Here's an example:

    DES(msg) = CYPHER
    DES-X(msg) = K2 X DES(K1 x msg) = CYPER-X

If you choose K2 and K1 to be the all 0 then:

    DES-x(msg) = K2 x DES(K1 x msg) [where K1 = 0, K2 =0] = DES(msg)

It should be pointed out that what I mean by making K1 and K2 0 is actually choosing a key which is 64 bits of 0 = {0,0,0,0,0...0} (64 times). Such a key does not modify the plaintext of the cypher at all when the XOR operation is applied.

毁我热情 2024-08-02 23:14:43

DES 和 DES-X 都是分组密码。
请参阅http://en.wikipedia.org/wiki/DES-X
更多细节。 简而言之,DES-X增加了关键白化。

DES and DES-X are both block ciphers.
See http://en.wikipedia.org/wiki/DES-X
for more details. In short, DES-X adds key whitening.

最笨的告白 2024-08-02 23:14:43

这里是关于 DES-X 的维基百科文章。 DES-X 通过在加密前后附加密钥的异或版本来增加密钥大小。

Here's the wikipedia article on DES-X. DES-X increases the key size by appending XOR'd versions of the key before and after the encryption.

养猫人 2024-08-02 23:14:43

这篇论文的摘要说 DES-X 是“兼容的”。 但是,我不确定这是否包括向后兼容性。

http://www.cs.ucdavis.edu/~rogaway/papers/加密字节.ps

The summary of this paper says that DES-X is "compatible." However, I'm not sure if that includes backwards-compatibility.

http://www.cs.ucdavis.edu/~rogaway/papers/cryptobytes.ps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文