Bug 171983 - [WebCrypto] Do not report any operation error other than ones specified by the spec
Summary: [WebCrypto] Do not report any operation error other than ones specified by th...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-11 12:18 PDT by Jiewen Tan
Modified: 2017-06-02 11:46 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiewen Tan 2017-05-11 12:18:40 PDT
Generally speaking, in crypto we prefer not to report why an operation failed. For instance, in DSA, we should return false for any operation error.
Comment 1 Jiewen Tan 2017-05-11 17:13:58 PDT
<rdar://problem/32145895>
Comment 2 Michael Catanzaro 2017-05-22 16:22:30 PDT
Zan, you'll take care of making the corresponding changes in the GCrypt implementation?
Comment 3 Zan Dobersek 2017-05-23 05:42:31 PDT
(In reply to Michael Catanzaro from comment #2)
> Zan, you'll take care of making the corresponding changes in the GCrypt
> implementation?

Yes.
Comment 4 Jiewen Tan 2017-06-02 11:46:24 PDT
Probably there is even no need for passing exceptionCallbacks to platformVerify. This change needs to address issues in both Apple and GTK+ ports.