Thanks Nick :) I think this was a holdover from previous syntax within the specification.
I will issue a bug-fix version of the document shortly; some actions are also marked to remove the first section.
-- A*
On Oct 16, 2013, at 11:19 AM, Nick Van den Bleeken wrote:
> Hi,
>
> I was looking at the use cases document[1], and all algorithm parameters are incorrect. They add the parameters to a 'params' dictionary, instead of adding them directly to the algorithm dictionary (as it is specified now [2]).
>
> So for example:
>
> var algorithmKeyGen = {
> name: "RSASSA-PKCS1-v1_5",
> // RsaKeyGenParams
> params: {
> modulusLength: 2048,
> publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537
> }
> };
>
> should become
>
> var algorithmKeyGen = {
> name: "RSASSA-PKCS1-v1_5",
> // RsaKeyGenParams
> modulusLength: 2048,
> publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // Equivalent to 65537
> };
>
> Kind regards,
>
> Nick Van den Bleeken
>
> 1: http://www.w3.org/TR/2013/NOTE-webcrypto-usecases-20130910/
> 2: http://www.w3.org/TR/2013/WD-WebCryptoAPI-20130625/#rsaes-pkcs1
>
>
> Inventive Designers' Email Disclaimer:
> http://www.inventivedesigners.com/email-disclaimer