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 25422 - Allow errors to be returned from digest()
Summary: Allow errors to be returned from digest()
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:13 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:13:59 UTC
The text describing SHA digest does not allow for any errors to be returned.

However the NSS library allows for errors to occur in such cases, so implementations based on it may have the need to fail.

I propose allowing digest() to fail with OperationError similar to encrypt().