Algorithm parameters in the use cases document are incorrect

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

Received on Wednesday, 16 October 2013 15:19:37 UTC