On Tue, Feb 18, 2003 at 08:55:02PM +0100, Dag-Erling Smorgrav wrote: > "Jacques A. Vidrine" <[EMAIL PROTECTED]> writes: > > On Tue, Feb 18, 2003 at 12:01:29PM +0100, Dag-Erling Smorgrav wrote: > > > The code that fails to compile is blatantly wrong: > > > > > > memset(schedule, 0, sizeof(schedule)); > > I wouldn't say `blantantly'. The expressions `schedule' and > > `&schedule' are equivalent when `schedule' is an array type. > > ...but Key_schedule is an opaque type, so it is not correct to assume > it's an array.
You won't get much argument from me about that. Nonetheless, lots of code `knows' that it is `unsigned char[8]' (it _is_ DES, after all, where all the keys and operations are on 64 bits). Unfortunately, some of these practices were extended to the triple-DES interfaces as well... Cheers, -- Jacques A. Vidrine <[EMAIL PROTECTED]> http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos [EMAIL PROTECTED] . [EMAIL PROTECTED] . [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message