diff options
author | Thor Kooda <tkooda-patch-kernel@devsec.org> | 2004-09-07 17:56:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-07 17:56:41 -0700 |
commit | 9c04fd703a714a00b34761024bf0c9ba3c32d898 (patch) | |
tree | 6de441bd808af2e55d6e55b51999776a18ab9504 /crypto | |
parent | 628400cc13989fba150d0f80d6ec2ed43ee6ef26 (diff) | |
download | history-9c04fd703a714a00b34761024bf0c9ba3c32d898.tar.gz |
[PATCH] crypto: tea.c xtea_encrypt should use XTEA_DELTA
xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.
Signed-off-by: Thor Kooda <tkooda-patch-kernel@devsec.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tea.c b/crypto/tea.c index bf943294d495a6..588a143c1f0845 100644 --- a/crypto/tea.c +++ b/crypto/tea.c @@ -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]; } |