regardless of the key failing other tests, as a defense against
telnet-style bugs.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5802
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri May 12 02:46:13 1995 Mark Eichin <eichin@cygnus.com>
+
+ * key_sched.c (mit_des_key_sched): *always* fill in the schedule,
+ regardless of the key failing other tests, as a defense against
+ telnet-style bugs.
+
Thu Apr 13 15:49:16 1995 Keith Vetter (keithv@fusion.com)
* *.[ch]: removed unneeded INTERFACE from non-api functions.
mit_des_cblock k;
mit_des_key_schedule schedule;
{
+ make_key_sched(k,schedule);
+
if (!mit_des_check_key_parity(k)) /* bad parity --> return -1 */
return(-1);
if (mit_des_is_weak_key(k))
return(-2);
- make_key_sched(k,schedule);
-
/* if key was good, return 0 */
return 0;
}