W3C home > Mailing lists > Public > public-webcrypto@w3.org > May 2014

[Bug 25816] New: DH import of PKCS8 uses OperationError instead of DataError for privateKeyInfo parse failure

From: <bugzilla@jessica.w3.org>
Date: Mon, 19 May 2014 20:40:32 +0000
To: public-webcrypto@w3.org
Message-ID: <bug-25816-7213@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25816

            Bug ID: 25816
           Summary: DH import of PKCS8 uses OperationError instead of
                    DataError for privateKeyInfo parse failure
           Product: Web Cryptography
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Cryptography API Document
          Assignee: sleevi@google.com
          Reporter: sleevi@google.com
                CC: public-webcrypto@w3.org

The specification for handling "Import Key" for Diffie-Hellman (
https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dh-operations
) states for Import Key

"If format is "pkcs8"":
  2. Let privateKeyInfo be the result of running the parse a privateKeyInfo
algorithm over keyData
  3. If an error occurred whiled parsing, then return an error named
OperationError

However, this differs from all other cases, where the error returned from a
parse failure is a DataError.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 19 May 2014 20:40:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:17:22 UTC