This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24773 - Sample code is out of date
Summary: Sample code is out of date
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 03:40 UTC by Eric Roman
Modified: 2014-02-28 00:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2014-02-22 03:40:42 UTC
------------------------------------
// Algorithm Object
var algorithmKeyGen = {
  name: "RSASSA-PKCS1-v1_5",
  // RsaKeyGenParams
  modulusLength: 2048,
  publicExponent: new Uint8Array([0x01, 0x00, 0x01]),  // Equivalent to 65537
};

var algorithmSign = {
  name: "RSASSA-PKCS1-v1_5",
  // RsaSsaParams
  hash: {
    name: "SHA-256",
  }
};
------------------------------------

The hash parameter has moved into the generation algorithm, and is no longer required for the sign operation.
Comment 1 Mark Watson 2014-02-28 00:53:52 UTC
Changeset afc6807af3b8