(_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
This commit is contained in:
Love Hörnquist Åstrand
2004-02-03 20:47:21 +00:00
parent 555fedc87a
commit 290b1c07d8

View File

@@ -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];