ticket: 2223
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16038
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-02-09 Ken Raeburn <raeburn@mit.edu>
+
+ * aes.c (krb5int_aes_encrypt, krb5int_aes_decrypt): Copy out value
+ for new IV.
+
2003-12-19 Ken Raeburn <raeburn@mit.edu>
* arcfour.c (arcfour_weakkey1, arcfour_weakkey2,
xorblock(tmp, tmp3);
enc(tmp2, tmp, &ctx);
memcpy(output->data + (nblocks - 2) * BLOCK_SIZE, tmp2, BLOCK_SIZE);
+ if (ivec)
+ memcpy(ivec->data, tmp2, BLOCK_SIZE);
}
return 0;
dec(tmp3, tmp2, &ctx);
xorblock(tmp3, tmp);
memcpy(output->data + (nblocks - 2) * BLOCK_SIZE, tmp3, BLOCK_SIZE);
+ if (ivec)
+ memcpy(ivec->data, input->data + (nblocks - 2) * BLOCK_SIZE,
+ BLOCK_SIZE);
}
return 0;