From 290b1c07d84dd1df46339cf23931b71d0f1ccc28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 3 Feb 2004 20:47:21 +0000 Subject: [PATCH] (_krb5_aes_cts_encrypt): out iv is the iv of the next to last block git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13309 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index c41afb0b4..29c37f3c2 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -2184,6 +2184,7 @@ _krb5_aes_cts_encrypt(const unsigned char *in, unsigned char *out, AES_encrypt(tmp, out - AES_BLOCK_SIZE, key); memcpy(out, ivec, len); + memcpy(ivec, out - AES_BLOCK_SIZE, AES_BLOCK_SIZE); } else { char tmp2[AES_BLOCK_SIZE];