Commit 9c04fd70 authored by Thor Kooda's avatar Thor Kooda Committed by Linus Torvalds

[PATCH] crypto: tea.c xtea_encrypt should use XTEA_DELTA

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 avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 628400cc
......@@ -154,7 +154,7 @@ static void xtea_encrypt(void *ctx_arg, u8 *dst, const u8 *src)
while (sum != limit) {
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];
}
......
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