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

Side by Side Diff: LayoutTests/crypto/ecdh-deriveKey-failures-expected.txt

Issue 810023003: [WebCrypto] Check for OperationError instead of NotSupportedError (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
OLDNEW
1 Tests deriveKey() with various bad parameters for ECDH 1 Tests deriveKey() with various bad parameters for ECDH
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Importing the private key... 6 Importing the private key...
7 Importing the public key... 7 Importing the public key...
8 8
9 Deriving an AES key with no length... 9 Deriving an AES key with no length...
10 error is: TypeError: AesDerivedKeyParams: length: Missing required property 10 error is: TypeError: AesDerivedKeyParams: length: Missing required property
11 11
12 Deriving an AES key with bad length... 12 Deriving an AES key with bad length...
13 error is: OperationError: AES key length must be 128 or 256 bits 13 error is: OperationError: AES key length must be 128 or 256 bits
14 14
15 Deriving an AES key with unsupported length... 15 Deriving an AES key with unsupported length...
16 error is: NotSupportedError: 192-bit AES keys are not supported 16 error is: OperationError: 192-bit AES keys are not supported
17 17
18 Deriving using an ECDH key that has deriveBits but NOT deriveKey... usage 18 Deriving using an ECDH key that has deriveBits but NOT deriveKey... usage
19 error is: InvalidAccessError: key.usages does not permit this operation 19 error is: InvalidAccessError: key.usages does not permit this operation
20 20
21 Deriving using public instead of private key... 21 Deriving using public instead of private key...
22 error is: InvalidAccessError: key.usages does not permit this operation 22 error is: InvalidAccessError: key.usages does not permit this operation
23 23
24 Deriving using private instead of public key... 24 Deriving using private instead of public key...
25 error is: InvalidAccessError: The public parameter for ECDH key derivation is no t a public EC key 25 error is: InvalidAccessError: The public parameter for ECDH key derivation is no t a public EC key
26 26
(...skipping 24 matching lines...) Expand all
51 Deriving an ECDH key using ECDH... 51 Deriving an ECDH key using ECDH...
52 error is: NotSupportedError: ECDH: Unsupported operation: get key length 52 error is: NotSupportedError: ECDH: Unsupported operation: get key length
53 53
54 Deriving an RSA-OAEP key using ECDH... 54 Deriving an RSA-OAEP key using ECDH...
55 error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length 55 error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length
56 56
57 PASS successfullyParsed is true 57 PASS successfullyParsed is true
58 58
59 TEST COMPLETE 59 TEST COMPLETE
60 60
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/crypto/rsa-ssa-generateKey-parseAlgorithm-failures-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698