W3C home > Mailing lists > Public > public-webcrypto@w3.org > October 2013

Algorithm parameters in the use cases document are incorrect

From: Nick Van den Bleeken <Nick.Van.den.Bleeken@inventivegroup.com>
Date: Wed, 16 Oct 2013 15:19:04 +0000
To: "public-webcrypto@w3.org" <public-webcrypto@w3.org>
Message-ID: <73376B69-E31B-4042-A157-A01CBDCB61D3@inventivegroup.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:19 UTC