fix off by one in the aes case, pointed out by Ken Raeburn

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12400 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-06-25 23:36:17 +00:00
parent 809afeb35f
commit 356775a1a0

View File

@@ -492,8 +492,8 @@ _kadm5_set_keys_randomly (kadm5_server_context *context,
#ifdef ENABLE_AES
ret = gen_random_key(context->context, ETYPE_AES256_CTS_HMAC_SHA1_96,
&keys[n_des_types + 2],
&hkeys[n_des_types + 2]);
&keys[n_des_types + 1],
&hkeys[n_des_types + 1]);
if (ret)
goto out;
#endif