BrowserID Key Wrapping: Difference between revisions

Jump to navigation Jump to search
Line 36: Line 36:
Before this is exposed as a content API, BrowserID exposes secret wrapping as an internal API:
Before this is exposed as a content API, BrowserID exposes secret wrapping as an internal API:


  IDService.wrapSecret(origin, plainKey, cb)
  IDService.unwrapSecret(origin, wrappedKey, cb);


In this internal API, the <tt>origin</tt> has to be explicitly specified.
In this internal API, the <tt>origin</tt> has to be explicitly specified.
The single callback is done in a node style: first parameter is error, second parameter is result.


== Architecture ==
== Architecture ==
668

edits

Navigation menu