Michael Ströder wrote, On 2008-12-28 04:38 PST:
> Nelson B Bolyard wrote:
>> I also think we need a page or two on developer.mozilla.org that fully
>> documents both the <keygen> tag and the crypto.generateCRMFRequest method.
> +1
>> The existing documentation is very incomplete.  The <keygen> tag, for
>> example, accepts many more arguments than are now publicly documented.

Let me start by saying that there are very few documents known to me that
are authoritative documentation of the keygen tag, and all are essentially
archival copies of documentation developed at Netscape in a prior
millennium.  They are:
   which is now 11 years old, and
http://docs.sun.com/source/816-5535-10/index.html#DSA (6 years old) and
which seems to be the most complete, but is still not complete.

> Which arguments are that?

Now, here's what's not documented.

1. The attribute name "keyparams" is a synonym for the attribute name "pqg".
 Either name may be used for that attribute.

2. There are 3 recognized values for the "keytype" attribute.
They are "rsa", "dsa" and "ec".

3. When the keytype is "ec", the EC curve used in the generated key is
selected by the value of the optional keyparams attribute, if
  - it is present and
  - it is one of the strings found in the table at
  - and the indicated curve is supported in that browser.

Otherwise, it is chosen by the user's choice from the key size choice box
according to the following table
   Key Size    Curve
   --------    -------------
   High        secp384r1
   Medium      secp256r1
   Low         secp256r1

The documentation for crypto.generateCRMFRequest is found at
but it is also incomplete.  The EC key generation documentation is missing.
dev-tech-crypto mailing list

Reply via email to