9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* SNK Key generation bug
@ 1996-08-29 12:24 Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Boyd @ 1996-08-29 12:24 UTC (permalink / raw)


using des key parity is nonsense.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* SNK Key generation bug
@ 1996-08-28 21:46 Paul
  0 siblings, 0 replies; 2+ messages in thread
From: Paul @ 1996-08-28 21:46 UTC (permalink / raw)


Steve Kotsopoulos reported to BSDI that he could not use his SNK token
with both BSD/OS and Plan 9.  We were surprised, as the transitive
property says it should.  It turns out the culprit is a bug in the
SNK key generation software on Plan 9 which tickles a buglet in the
BSD/OS token code that calls the Kerberos des library.  Simply put,
Plan 9 does not generate proper parity (or any parity, for that matter)
on the key it produces.  The Kerberos des library will not produce a
key schedule for a key that does not have odd parity.  The next release
of BSD/OS will always fix up the parity before calling des_key_sched,
so in a way this should go away.  It is too bad Plan 9 generates invalid
keys, though.  In the mean time, I believe if you set the parity on
the key by hand, you should be able to use the same key with both systems.

The des key must have an odd number of 1 bits in each byte, using the
*low* order bit as parity (i.e. 0377 -> 376).

				-Paul Borman
				 prb@bsdi.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-08-29 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-29 12:24 SNK Key generation bug Boyd
  -- strict thread matches above, loose matches on Subject: below --
1996-08-28 21:46 Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).