[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question




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 <uris> in a public key is used to
point where you can get certificates on that key, right? I guess that the
<uris> 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 <uris> field from the key into the hash? 

And when comparing principals for "samePrincipalAs", do I take into account
also the <uris> field? If the answer is yes, then a principal is not only a
public key or hash, but also the <uris>, which has the problem that we'd have 2
different principals represented by the same key but with different <uris>
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
<uris> field in the public key, compute the hash and add <uris> 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.

Follow-Ups: