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

Side by Side Diff: components/test/data/webcrypto/ecdh.json

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 months 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 unified diff | Download patch
OLDNEW
1 // TODO(eroman): Use known test vectors. The samples I used here I generated mys elf. 1 // TODO(eroman): Use known test vectors. The samples I used here I generated mys elf.
2 [ 2 [
3 // Test key derivation using ECDH (P-256), using a public and private key from 3 // Test key derivation using ECDH (P-256), using a public and private key from
4 // different key pairs. 4 // different key pairs.
5 { 5 {
6 "public_key": { 6 "public_key": {
7 "crv": "P-256", 7 "crv": "P-256",
8 "kty":"EC", 8 "kty":"EC",
9 "x":"u6dWhaRHrvFF0CiFVuUUFafU6ixveQf9trHDXJ8hgV8", 9 "x":"u6dWhaRHrvFF0CiFVuUUFafU6ixveQf9trHDXJ8hgV8",
10 "y":"thSm4LIY35vDD-5LE454eB7TShn919DVVGZ_7tWdjTE" 10 "y":"thSm4LIY35vDD-5LE454eB7TShn919DVVGZ_7tWdjTE"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 "d":"uN2YSQvxuxhQQ9Y1XXjYi1vr2ZTdzuoDX18PYu4LU-0", 405 "d":"uN2YSQvxuxhQQ9Y1XXjYi1vr2ZTdzuoDX18PYu4LU-0",
406 "x":"S2S3tjygMB0DkM-N9jYUgGLt_9_H6km5P9V6V_KS4_4", 406 "x":"S2S3tjygMB0DkM-N9jYUgGLt_9_H6km5P9V6V_KS4_4",
407 "y":"03j8Tyqgrc4R4FAUV2C7-im96yMmfmO_5Om6Kr8YP3o", 407 "y":"03j8Tyqgrc4R4FAUV2C7-im96yMmfmO_5Om6Kr8YP3o",
408 "use": "enc" 408 "use": "enc"
409 }, 409 },
410 410
411 "private_key_error": "DataError: The JWK \"use\" member was inconsistent wit h that specified by the Web Crypto call. The JWK usage must be a superset of tho se requested" 411 "private_key_error": "DataError: The JWK \"use\" member was inconsistent wit h that specified by the Web Crypto call. The JWK usage must be a superset of tho se requested"
412 } 412 }
413 ] 413 ]
414 414
OLDNEW
« no previous file with comments | « components/test/data/webcrypto/ec_private_keys.json ('k') | components/test/data/webcrypto/ecdsa.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698