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

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