grafana/k6

Support for `Ed(X)25519`

Open

#4,263 opened on Oct 30, 2024

View on GitHub
 (5 comments) (0 reactions) (1 assignee)Go (30,564 stars) (1,537 forks)batch import
area: webcryptoenhancementgood first issuehelp wanted

Description

What?

Even though original WebCrypto API doesn't include support of the Curve25519, but many of webcrypto implementation does https://github.com/w3c/webcrypto/pull/362

Even WebPlatfrom test suit tests this support, which led us to patch https://github.com/grafana/k6/blob/master/internal/js/modules/k6/webcrypto/tests/wpt-patches/WebCryptoAPI__generateKey__failures.js.patch

Draft can be found https://wicg.github.io/webcrypto-secure-curves/

From the Golang's perspective, support also looks good since we have packages:

Why?

Seems like support of this Curve25519 is demanded, so having it in k6 makes k6's implementation more attractive and useful for customers.

Contributor guide