Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2900)

Unified Diff: content/test/data/webcrypto/ecdh.json

Issue 777403004: [WebCrypto] Throw syntaxError if keyUsage is empty in ImportKey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated issues in ecdh tests and other review comments. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/webcrypto_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/webcrypto/ecdh.json
diff --git a/content/test/data/webcrypto/ecdh.json b/content/test/data/webcrypto/ecdh.json
index d2e2e48c584102327008fcff64271456ba697974..f51f7d103c206af7ffdfc349c005d0d0ec2eb9af 100644
--- a/content/test/data/webcrypto/ecdh.json
+++ b/content/test/data/webcrypto/ecdh.json
@@ -347,28 +347,6 @@
"error": "OperationError: Length specified for ECDH key derivation is too large. Maximum allowed is 256 bits"
},
- // The public key parameter is in fact a private key
eroman 2014/12/17 21:17:42 This test should not be removed. If it is failing
eroman 2014/12/17 21:21:03 Actually I am OK with removing this test, as we ha
- // (not allowed by web crypto), even though it could in practice work.
- {
- "private_key": {
- "kty":"EC",
- "crv":"P-256",
- "x":"u6dWhaRHrvFF0CiFVuUUFafU6ixveQf9trHDXJ8hgV8",
- "y":"thSm4LIY35vDD-5LE454eB7TShn919DVVGZ_7tWdjTE",
- "d":"CQ8uF_-zB1NftLO6ytwKM3Cnuol64PQw5qOuCzQJeFU"
- },
- "public_key": {
- "kty":"EC",
- "crv":"P-256",
- "d":"uN2YSQvxuxhQQ9Y1XXjYi1vr2ZTdzuoDX18PYu4LU-0",
- "x":"S2S3tjygMB0DkM-N9jYUgGLt_9_H6km5P9V6V_KS4_4",
- "y":"03j8Tyqgrc4R4FAUV2C7-im96yMmfmO_5Om6Kr8YP3o"
- },
-
- "length_bits": 256,
- "error": "InvalidAccess: The public parameter for ECDH key derivation is not a public EC key"
- },
-
// Curve mismatch (public key is for P-521 however private key was for P-256).
{
"private_key": {
« no previous file with comments | « content/child/webcrypto/webcrypto_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698