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

Side by Side Diff: content/test/data/webcrypto/aes_cbc.json

Issue 814883002: [WebCrypto] Throw OperationError instead of NotSupportedError when AES length is 192 and RSA modulu… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « content/child/webcrypto/status.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 // F.2.1 (CBC-AES128.Encrypt) 2 // F.2.1 (CBC-AES128.Encrypt)
3 // http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf 3 // http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
4 { 4 {
5 "key_format": "raw", 5 "key_format": "raw",
6 "key": "2b7e151628aed2a6abf7158809cf4f3c", 6 "key": "2b7e151628aed2a6abf7158809cf4f3c",
7 "iv": "000102030405060708090a0b0c0d0e0f", 7 "iv": "000102030405060708090a0b0c0d0e0f",
8 "plain_text": "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8 e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710", 8 "plain_text": "6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8 e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710",
9 // Added a padding block: encryption of {0x10, 0x10, ... 0x10}) (not given b y the 9 // Added a padding block: encryption of {0x10, 0x10, ... 0x10}) (not given b y the
10 // NIST test vector) 10 // NIST test vector)
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 "alg": "A128CBC", 305 "alg": "A128CBC",
306 "k": "dGhpcyAgaXMgIDI0ICBieXRlcyBsb25n" 306 "k": "dGhpcyAgaXMgIDI0ICBieXRlcyBsb25n"
307 }, 307 },
308 "import_error": "DataError: The JWK \"k\" member did not include the right l ength of key data for the given algorithm." 308 "import_error": "DataError: The JWK \"k\" member did not include the right l ength of key data for the given algorithm."
309 }, 309 },
310 310
311 // AES 192-bit is not allowed: http://crbug.com/381829 311 // AES 192-bit is not allowed: http://crbug.com/381829
312 { 312 {
313 "key_format": "raw", 313 "key_format": "raw",
314 "key": "5377656574205369787465656e2049560000000000000000", 314 "key": "5377656574205369787465656e2049560000000000000000",
315 "import_error": "NotSupported: 192-bit AES keys are not supported" 315 "import_error": "OperationError: 192-bit AES keys are not supported"
316 }, 316 },
317 317
318 // JWK: AES 192-bit is not allowed: http://crbug.com/381829 318 // JWK: AES 192-bit is not allowed: http://crbug.com/381829
319 { 319 {
320 "key_format": "jwk", 320 "key_format": "jwk",
321 "key": { 321 "key": {
322 "kty": "oct", 322 "kty": "oct",
323 "alg": "A192CBC", 323 "alg": "A192CBC",
324 "k": "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh" 324 "k": "YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFh"
325 }, 325 },
326 "import_error": "NotSupported: 192-bit AES keys are not supported" 326 "import_error": "OperationError: 192-bit AES keys are not supported"
327 } 327 }
328 ] 328 ]
OLDNEW
« no previous file with comments | « content/child/webcrypto/status.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698