[Webkit-unassigned] [Bug 233704] New: support importing compressed EC keys in webcrypto

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 1 08:12:29 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=233704

            Bug ID: 233704
           Summary: support importing compressed EC keys in webcrypto
           Product: WebKit
           Version: Other
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: panva.ip at gmail.com

Steps to reproduce:

// SPKI representation of a P-384 EC key in a compressed form.
const spki = new Uint8Array([48, 70, 48, 16, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 5, 43, 129, 4, 0, 34, 3, 50, 0, 2, 251, 203, 124, 105, 238, 28, 96, 87, 155, 231, 163, 52, 19, 72, 120, 217, 197, 197, 191, 53, 213, 82, 218, 182, 60, 1, 64, 57, 126, 209, 76, 239, 99, 125, 119, 32, 146, 92, 68, 105, 158, 163, 14, 114, 135, 76, 114, 251])

crypto.subtle.importKey('spki', spki, { name: 'ECDSA', namedCurve: 'P-384' }, false, ['verify'])

Actual result:

importKey is rejected with DataError: Data provided to an operation does not meet requirements

Expected result:

compressed EC public key SPKI should import as in other browsers (we expect interoperability in this regard)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211201/705ea52c/attachment.htm>


More information about the webkit-unassigned mailing list