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