grafana / xk6-webcrypto

WIP implementation of the WebCrypto specification for k6
GNU Affero General Public License v3.0
7 stars 4 forks source link

Activate `WebCryptoAPI/import_export/importKey_failures.js` test #91

Open olegbespalov opened 1 month ago

olegbespalov commented 1 month ago

What?

While we implemented support for elliptic curve algorithms (#67 and #69), we missed the Web Platform Test WebCryptoAPI/import_export/importKey_failures.js, which tests some negatives for the import keys.

It is worth activating it (please see https://github.com/grafana/xk6-webcrypto/tree/main/webcrypto/tests), which probably could also cause some adjustments in implementation.

At the moment of writing issue, we do support two algorithms from there (ECDH and ECDSA), but depending on the state of the extension, it could be more.

Why?

Testing against the Web Platform Test suite is essential since it gives some confidence about the implementation.