OLD | NEW |
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 Loading... |
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 ] |
OLD | NEW |