Re: p:hash : add reference and replace sha1 by sha with a version parameter

On Wed, May 7, 2008 at 1:40 PM, Norman Walsh <ndw@nwalsh.com> wrote:

> I'm ok with the proposed changes.
>
> / "Innovimax SARL" <innovimax@gmail.com> was heard to say:
> | The value of the algorithm option must be a QName. If it does not have a
> | prefix, then it must be one of the following values: "crc", "md", "sha",
> | "whirlpool" and "ripemd".
>
> I've never heard of whirlpool. I've heard of ripemd, but have no idea
> how to implement it. Are those five exhaustive, or are there other
> popular algorithms?


Sure there are, but not very frequently used so they can wait for V2 (or
propose them during last-call) or use the extension mecanism



>
> | The value of the version option must be a string.
>
> You made version required, but I wonder if we should give it an
> algorithm-specific default? version=1 if algorithm=sha, 5 if md. That
> way, for crc and other algorithms that don't have a version, it won't
> be an error to leave it out.


Indeed, that could be a way to do that

Mohamed

-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Wednesday, 7 May 2008 11:58:42 UTC