Closed Bug 1262999 Opened 8 years ago Closed 6 years ago

Verify and sign use object reference as first argument

Categories

(Developer Documentation Graveyard :: API: DOM, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jrconlin, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

The documentation specifies that the .sign() and .verify() take a first argument as a DOMString. 

This is incorrect.

The first argument is an algorithm description object e.g. for "ECDSA" you would use something like:
{ name: "ECDSA", namedCurve: "P-256", hash: { name: "SHA-256" } }
You need to log in before you can comment on or make changes to this bug.