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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand