From owner-spki@c2.net Thu Apr 29 14:53:30 1999 Received: from blacklodge.c2.net (blacklodge.c2.net [140.174.185.245]) by lox.sandelman.ottawa.on.ca (8.8.7/8.8.8) with ESMTP id OAA04816; Thu, 29 Apr 1999 14:53:29 -0400 (EDT) Received: (from majordom@localhost) by blacklodge.c2.net (8.8.8/8.7.3) id KAA14415 for spki-outgoing; Thu, 29 Apr 1999 10:55:47 -0700 (PDT) Message-ID: <37289CB9.8D5CDDAE@tele.ucl.ac.be> Date: Thu, 29 Apr 1999 19:54:01 +0200 From: JoanMa Mas =?iso-8859-1?Q?Rib=E9s?= Organization: UCL - TELE http://www.tele.ucl.ac.be X-Mailer: Mozilla 4.51 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: SPKI List Subject: Question Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-spki@c2.net Precedence: bulk List, I've started implementing a SPKI toolbox in Java, and right now I've a question (which won't be the last) about comparing principals. If I've understood it correctly, the field in a public key is used to point where you can get certificates on that key, right? I guess that the field in the hash has the same purpose, when this hash is of a public key. The question is, how do I compute the hash of a public key? I mean, should one take the s-expression representing the whole key (uris included)? If so, should I copy the field from the key into the hash? And when comparing principals for "samePrincipalAs", do I take into account also the field? If the answer is yes, then a principal is not only a public key or hash, but also the , which has the problem that we'd have 2 different principals represented by the same key but with different field. And if not, then computing the hashing of a public key is a special case in SPKI (it'd only be some more lines of code), which would first remove the field in the public key, compute the hash and add in the hash. I hope I made myself clear. Thanks a lot in advance. JoanMa -- ______________________________________________________________________________ JoanMa Mas Ribés Research Assistant UCL-TELE mailto:mas@tele.ucl.ac.be voice: +32 (0)10 478124 http://www.tele.ucl.ac.be/PEOPLE/jmm.html fax: +32 (0)10 472089 ICQ#:8665610 ¯¯¯ Security is when everything is settled, when nothing can happen to you.¯¯¯ Security is the denial of life.