-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webcrypto: RSA support #1791
webcrypto: RSA support #1791
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of minor suggestions, but overall looks great! 🔥
docs/sources/k6/next/javascript-api/k6-experimental/webcrypto/rsahashedkeygenparams.md
Outdated
Show resolved
Hide resolved
docs/sources/k6/next/javascript-api/k6-experimental/webcrypto/rsahashedkeygenparams.md
Outdated
Show resolved
Hide resolved
name: "RSA-PSS", | ||
modulusLength: 2048, | ||
publicExponent: new Uint8Array([1, 0, 1]), | ||
hash: { name: "SHA-256" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the docs above, hash
is typed as string
, but here it looks like it is an object
with the name
attribute 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add in the type definition something like: ... or object with a single
name string property (
{name: "SHA-256"})
? Or it's just the example, that needs to be fixed? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! It supports both, an object with name and a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, since webcrypto docs has such "bug" since the beginning same as definitely typed 😢 I've fixed it here, but probably open the larger issue for fixing this in whole module
Co-authored-by: Joan López de la Franca Beltran <[email protected]>
2fd5227
to
02ba83a
Compare
What?
This documents the latest changes to the webcrypto module that were done in https://github.com/grafana/xk6-webcrypto/releases/tag/v0.5.0
Checklist
npm start
command locally and verified that the changes look good.docs/sources/next
folder of the documentation.Related PR(s)/Issue(s)
grafana/k6#4025