nyholku
nyholku

Reputation: 488

Is there an XTEA encryption key that does not encrypt?

The title just about says it.

The idea here is that I could disable encryption by choosing an appropriate key instead of disabling the encryption in the code.

Upvotes: 0

Views: 225

Answers (2)

hanshenrik
hanshenrik

Reputation: 21583

No, no matter what key you use (even the key 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 ), xtea will encrypt the data.

BUT, if you don't want the encryption, just set rounds to 0, and your data won't be encrypted, which i guess is what you want :) only padding will be applied in that case. (when rounds is 0, it does not matter what your encryption key is, by the way. no encryption key will make any difference.)

Upvotes: 0

Artjom B.
Artjom B.

Reputation: 61952

No, XTEA does not have weak keys where the encryption or decryption functions separately behave like the identity functions. (Or at least such a class of keys is not known.)

Upvotes: 3

Related Questions