9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Paul Borman prb@bsdi.com
Subject: SNK Key generation bug
Date: Wed, 28 Aug 1996 16:46:53 -0500	[thread overview]
Message-ID: <19960828214653.1CdGGtQf00uWBDectXqeXTMaCch6AEh8UxUVNUq1lD4@z> (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




             reply	other threads:[~1996-08-28 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-28 21:46 Paul [this message]
1996-08-29 12:24 Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19960828214653.1CdGGtQf00uWBDectXqeXTMaCch6AEh8UxUVNUq1lD4@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).