-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Implement failure tests cases for the EC import operation #48243
Implement failure tests cases for the EC import operation #48243
Conversation
4b812d9
to
bada6d7
Compare
bada6d7
to
6416238
Compare
6416238
to
acf3e41
Compare
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.
Thanks!
WebCryptoAPI/import_export/ec_importKey_failures_ECDH.https.any.js
Outdated
Show resolved
Hide resolved
e340c93
to
b2dc94c
Compare
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.
Looks good to me!
return missingJWKFieldKeyData["P-521"]; | ||
} | ||
|
||
function getInvalidJWKKeyData(algorithm) { |
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.
this function is only for the keys where the public key does not correspond to the private key?
I would prefer a more specific name maybe?
b2dc94c
to
db40770
Compare
db40770
to
edba641
Compare
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.
missingJWKFieldKeyData
is not defined for ECDSA and ECDH tests, the harness fails
- https://wpt.fyi/results/WebCryptoAPI/import_export/ec_importKey_failures_ECDSA.https.any.html?diff&filter=ADC&run_id=4867596877037568&run_id=5151923644923904
- https://wpt.fyi/results/WebCryptoAPI/import_export/ec_importKey_failures_ECDH.https.any.html?diff&filter=ADC&run_id=4867596877037568&run_id=5151923644923904
This PR implements new tests for the import operation of ECDH and ECDSA algorithms, defining failure test cases. Additionally, it applies some refactoring to the code already used for OPK keys.
edba641
to
ecbdbcb
Compare
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.
LGTM
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.
FWIW, the issue I noted was addressed.
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.
Thanks @javifernandez, and thanks all for the reviews!
Apply some refactoring to the code already used for OPK keys.