2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA
PATCH 1/1 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA
Patch for crypto/tea.c, added in 2.4.27-rc4:
xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.
Signed-off-by Thor Kooda <[email protected]>
Signature · 14 lines
Thor Kooda [email protected] --- linux-2.4.27.orig/crypto/tea.c Sat Aug 7 18:26:04 2004 +++ linux-2.4.27/crypto/tea.c Fri Sep 3 17:08:18 2004 @@ -154,7 +154,7 @@ 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]; }
Quoted 3 lines · Thor Kooda
Patch for
crypto/tea.c, added in 2.4.27-rc4:
xtea_encrypt()should useXTEA_DELTAinstead ofTEA_DELTA.
Fixed tab mangling.
Signed-off-by Thor Kooda <[email protected]>
Signature · 14 lines
Thor Kooda [email protected] --- linux-2.4.27.orig/crypto/tea.c Sat Aug 7 18:26:04 2004 +++ linux-2.4.27/crypto/tea.c Tue Sep 7 17:15:58 2004 @@ -154,7 +154,7 @@ 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]; }