You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitcrypto.subtle.importKey("pkcs8",newUint8Array([48,102,2,1,0,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,4,76,48,74,2,1,1,4,32,255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81,161,35,3,33,0,0,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81,]),{name: "ECDSA",namedCurve: "P-256"},true,["sign"]).catch((e)=>{console.log(`e.name is ${e.name} but should be DataError`);console.log(e);});
e.name is Error but should be DataError
Error: InvalidComponent
at importKeyEC (ext:deno_crypto/00_crypto.js:3076:31)
at SubtleCrypto.importKey (ext:deno_crypto/00_crypto.js:966:16)
at <anonymous>:2:21
Refs: w3c/webcrypto#356
To reproduce, run:
The text was updated successfully, but these errors were encountered: