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

Side by Side Diff: components/test/data/webcrypto/bad_ec_keys.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 // This file contains incorrect key data in a variety of formats. 1 // This file contains incorrect key data in a variety of formats.
2 // "key" -- either a dictionary for JWK, or hex encoded bytes for PKCS8/SPKI. 2 // "key" -- either a dictionary for JWK, or hex encoded bytes for PKCS8/SPKI.
3 // "key_format" -- one of: "jwk", "pkcs8", "spki" 3 // "key_format" -- one of: "jwk", "pkcs8", "spki"
4 // "error" -- The expected rejection reason when importing the key. 4 // "error" -- The expected rejection reason when importing the key.
5 [ 5 [
6 // -------------------------------------------------------------------------- 6 // --------------------------------------------------------------------------
7 // Bad public keys 7 // Bad public keys
8 // -------------------------------------------------------------------------- 8 // --------------------------------------------------------------------------
9 // TODO(eroman): Group the bad public keys by format type. 9 // TODO(eroman): Group the bad public keys by format type.
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // The private key is exactly equal to the order + 11, and the public key is 240 // The private key is exactly equal to the order + 11, and the public key is
241 // omitted. 241 // omitted.
242 { 242 {
243 "crv": "P-521", 243 "crv": "P-521",
244 "key_format": "pkcs8", 244 "key_format": "pkcs8",
245 "key": "3060020100301006072A8648CE3D020106052B8104002304493047020101044201FF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B 7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386414", 245 "key": "3060020100301006072A8648CE3D020106052B8104002304493047020101044201FF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B 7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386414",
246 "error": "DataError: The imported EC key is invalid" 246 "error": "DataError: The imported EC key is invalid"
247 } 247 }
248 ] 248 ]
OLDNEW
« no previous file with comments | « components/test/data/webcrypto/aes_kw.json ('k') | components/test/data/webcrypto/bad_rsa_keys.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698