Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Extension

Rainer Villido edited this page May 15, 2015 · 23 revisions

In progress:

  • Has a page action when website makes use of the functionality
  • To allow disabling access to smart cards permanently for a site
  • Has options for advanced behaviour settings
  • Backend selection (PKCS#11, with module path or CAPI)
  • Exposing to websites

Distribution

Security considerations

Development

See DeveloperTips

API

The extension API is very similar to the hwcrypto.js API. See the details over there. See also the Native Messaging API for more detailed description.

VERSION message

  • getVersion()
  • Returns "extension version/native host version":
  • Example: "0.0.20/1.0.0.0" where
  • 0.0.20 is the extension version
  • 1.0.0.0 is the native host version

CERT message

  • getCertificate(options) with parameters
  • options.lang language
  • Returns a JSON object with hex parameter containing the certificate
  • Example: {"hex": "308204FD308203E5...CDF738"}

SIGN message

  • sign(cert, hash, options) with parameters:
  • cert.hex Certificate in HEX
  • hash.hex Hash in HEX
  • hash.type Hash type
  • options.lang language
  • Returns a JSON object with hex parameter containing the signature
  • Example: {"hex": "562112EB88E9513...E497313A8546"}