Commit 6ebb0d4d authored by Thor Kooda's avatar Thor Kooda Committed by David S. Miller

[CRYPTO]: xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.

Signed-off-by: default avatarThor Kooda <tkooda-patch-kernel@devsec.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 07d91129
...@@ -154,7 +154,7 @@ static void xtea_encrypt(void *ctx_arg, u8 *dst, const u8 *src) ...@@ -154,7 +154,7 @@ static void xtea_encrypt(void *ctx_arg, u8 *dst, const u8 *src)
while (sum != limit) { while (sum != limit) {
y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3];
sum += TEA_DELTA; sum += XTEA_DELTA;
z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment