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 25420 - Allow errors to be returned from exportKey()
Summary: Allow errors to be returned from exportKey()
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: Ryan Sleevi
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 01:10 UTC by Eric Roman
Modified: 2014-06-16 23:19 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2014-04-23 01:10:40 UTC
The current text for exportKey() doesn't seem to provide for any errors being returned when exporting a private key in pkcs8 format.

Whereas other methods like encrypt(), offer an escape hatch in the generic description saying that if an error occurs to return an OperationError.

The NSS functions for exporting key allow for such errors so it may be possible for implementation based on it to fail here.

Failures might also occur when exporting keys from secure elements.