Signed Exchange: devtools should differentiate signature DER parse failure from wrong signature |
||
Issue descriptionTo aid implementors of signed exchange generators, devtools could help clarify the "VerifyFinal failed" message. ECDSA requires the signature be a DER-encoded object per https://tools.ietf.org/html/rfc3279#section-2.2.3. WebCrypto's ECDSA sign method returns an ArrayBuffer (https://www.w3.org/TR/WebCryptoAPI/#ecdsa-operations) that seems at first glance like it should be pasted into `sig` directly, but it's not in the right encoding. A more specific error message for when the signature fails to parse as a DER-encoded Ecdsa-Sig-Value would help the developer diagnose this issue more quickly.
,
Oct 29
I think showing that diagnosis in dump-signedexchange would be enough for this
,
Oct 29
(Whatever Avery says; I filed this on his behalf.)
,
Oct 30
OK, filed https://github.com/WICG/webpackage/issues/319. Let me close this Chromium issue. |
||
►
Sign in to add a comment |
||
Comment 1 by ksakamoto@chromium.org
, Oct 29