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

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

Issue 957713004: [WebCrypto] Split LayoutTests/crypto/subtle into per-algorithm directories (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 9 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
(Empty)
1 Tests deriveKey() with various bad parameters for ECDH
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Importing the private key...
7 Importing the public key...
8
9 Deriving an AES key with no length...
10 error is: TypeError: AesDerivedKeyParams: length: Missing required property
11
12 Deriving an AES key with bad length...
13 error is: OperationError: AES key length must be 128 or 256 bits
14
15 Deriving an AES key with unsupported length...
16 error is: OperationError: 192-bit AES keys are not supported
17
18 Deriving an AES-CBC key with unsupported usage (sign)...
19 error is: SyntaxError: Cannot create a key using the specified key usages.
20
21 Deriving using an ECDH key that has deriveBits but NOT deriveKey... usage
22 error is: InvalidAccessError: key.usages does not permit this operation
23
24 Deriving using public instead of private key...
25 error is: InvalidAccessError: key.usages does not permit this operation
26
27 Deriving using private instead of public key...
28 error is: InvalidAccessError: The public parameter for ECDH key derivation is no t a public EC key
29
30 Deriving a key larger than the field size of P-521...
31 error is: OperationError: Length specified for ECDH key derivation is too large. Maximum allowed is 528 bits
32
33 Deriving a zero-length HMAC key...
34 error is: TypeError: HMAC key length must not be zero
35
36 Deriving a key larger than field size of P-521, by requesting an HMAC SHA-512 ke y with no length...
37 error is: OperationError: Length specified for ECDH key derivation is too large. Maximum allowed is 528 bits
38
39 Deriving a key using mismatched curves on public/private keys...
40 error is: InvalidAccessError: The public parameter for ECDH key derivation is fo r a different named curve
41
42 Deriving a key using a public EC key for different algorithm (ECDSA)...
43 error is: InvalidAccessError: The public parameter for ECDH key derivation must be for ECDH
44
45 Deriving a key using an AES key for public key...
46 error is: InvalidAccessError: The public parameter for ECDH key derivation is no t a public EC key
47
48 Deriving a key without specifying the "public" parameter...
49 error is: TypeError: EcdhKeyDeriveParams: public: Missing required property
50
51 Deriving a key having specified a bogus "public" parameter...
52 error is: TypeError: EcdhKeyDeriveParams: public: Must be a CryptoKey
53
54 Deriving an ECDH key using ECDH...
55 error is: NotSupportedError: ECDH: Unsupported operation: get key length
56
57 Deriving an RSA-OAEP key using ECDH...
58 error is: NotSupportedError: RSA-OAEP: Unsupported operation: get key length
59
60 PASS successfullyParsed is true
61
62 TEST COMPLETE
63
OLDNEW
« no previous file with comments | « LayoutTests/crypto/subtle/ecdh-deriveKey-failures.html ('k') | LayoutTests/crypto/subtle/ecdh-deriveKey-hmac.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698