Changeset 279688 in webkit
- Timestamp:
- Jul 7, 2021 5:25:46 PM (13 months ago)
- Location:
- trunk
- Files:
-
- 26 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters-expected.txt (modified) (1 diff)
-
LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters.html (modified) (1 diff)
-
LayoutTests/crypto/subtle/ecdh-derive-bits-length-limits-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.worker-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.worker-expected.txt (modified) (3 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any.worker-expected.txt (modified) (2 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any-expected.txt (modified) (14 diffs)
-
LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any.worker-expected.txt (modified) (14 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/crypto/keys/CryptoKeyEC.h (modified) (1 diff)
-
Source/WebCore/crypto/mac/CryptoAlgorithmECDHMac.cpp (modified) (1 diff)
-
Source/WebCore/crypto/mac/CryptoAlgorithmECDSAMac.cpp (modified) (4 diffs)
-
Source/WebCore/crypto/mac/CryptoKeyECMac.cpp (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r279684 r279688 1 2021-07-07 Chris Dumez <cdumez@apple.com> 2 3 [WebCrypto] Support Elliptic Curve P-521 on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=216755 5 <rdar://problem/69667220> 6 7 Reviewed by Alex Christensen. 8 9 Update / rebaseline a few tests now that we support P-521. 10 11 * crypto/subtle/ec-generate-key-malformed-parameters-expected.txt: 12 * crypto/subtle/ec-generate-key-malformed-parameters.html: 13 * crypto/subtle/ecdh-derive-bits-length-limits-expected.txt: 14 1 15 2021-07-07 Eric Hutchison <ehutchison@apple.com> 2 16 -
trunk/LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters-expected.txt
r219663 r279688 24 24 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["wrapKey"]) rejected promise with SyntaxError: A required parameter was missing or out-of-range. 25 25 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["unwrapKey"]) rejected promise with SyntaxError: A required parameter was missing or out-of-range. 26 PASS crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-52 1"}, extractable, ["deriveKey"]) rejected promise with NotSupportedError: The algorithm is not supported.26 PASS crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-523"}, extractable, ["deriveKey"]) rejected promise with NotSupportedError: The algorithm is not supported. 27 27 PASS successfullyParsed is true 28 28 -
trunk/LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters.html
r215423 r279688 37 37 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["unwrapKey"])'); 38 38 // Not supported NamedCurve 39 shouldReject('crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-52 1"}, extractable, ["deriveKey"])');39 shouldReject('crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-523"}, extractable, ["deriveKey"])'); 40 40 </script> 41 41 -
trunk/LayoutTests/crypto/subtle/ecdh-derive-bits-length-limits-expected.txt
r221345 r279688 14 14 PASS Bit derivations for EC P-384 with minimum and maximum lengths succeeded 15 15 PASS deriveBits(P384, 384 + 8) rejected promise with OperationError: The operation failed for an operation-specific reason. 16 Bit derivations for EC P-521 skipped, likely due to missing P-521 supprot. 16 PASS deriveBits(..., 0) successfully derived 528 bits for a P-521 curve 17 PASS deriveBits(..., 8) successfully derived 8 bits for a P-521 curve 18 PASS deriveBits(..., 528) successfully derived 528 bits for a P-521 curve 19 PASS Bit derivations for EC P-521 with minimum and maximum lengths succeeded 20 PASS deriveBits(P521, 528 + 8) rejected promise with OperationError: The operation failed for an operation-specific reason. 17 21 PASS successfullyParsed is true 18 22 -
trunk/LayoutTests/imported/w3c/ChangeLog
r279686 r279688 1 2021-07-07 Chris Dumez <cdumez@apple.com> 2 3 [WebCrypto] Support Elliptic Curve P-521 on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=216755 5 <rdar://problem/69667220> 6 7 Reviewed by Alex Christensen. 8 9 Rebaseline WPT test now that a lot more checks are passing. 10 11 * web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any-expected.txt: 12 * web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any.worker-expected.txt: 13 * web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any-expected.txt: 14 * web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any.worker-expected.txt: 15 * web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any-expected.txt: 16 * web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.worker-expected.txt: 17 * web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any-expected.txt: 18 * web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.worker-expected.txt: 19 * web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any-expected.txt: 20 * web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.worker-expected.txt: 21 * web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any-expected.txt: 22 * web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.worker-expected.txt: 23 * web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any-expected.txt: 24 * web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any.worker-expected.txt: 25 * web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any-expected.txt: 26 * web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any.worker-expected.txt: 27 1 28 2021-07-07 Chris Dumez <cdumez@apple.com> 2 29 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any-expected.txt
r263598 r279688 1 1 2 FAIL setup - define tests promise_test: Unhandled rejection with value: object "DataError: Data provided to an operation does not meet requirements" 2 PASS setup - define tests 3 PASS P-521 good parameters 4 PASS P-521 mixed case parameters 5 PASS P-521 with null length 6 PASS P-521 short result 7 FAIL P-521 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 8 PASS P-521 missing public curve 9 PASS P-521 public property of algorithm is not a CryptoKey 10 PASS P-521 mismatched curves 11 PASS P-521 public property of algorithm is not an ECDSA public key 12 PASS P-521 no deriveBits usage for base key 13 PASS P-521 base key is not a private key 14 PASS P-521 public property value is a private key 15 PASS P-521 public property value is a secret key 16 PASS P-521 asking for too many bits 17 PASS P-256 good parameters 18 PASS P-256 mixed case parameters 19 PASS P-256 with null length 20 PASS P-256 short result 21 FAIL P-256 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 22 PASS P-256 missing public curve 23 PASS P-256 public property of algorithm is not a CryptoKey 24 PASS P-256 mismatched curves 25 PASS P-256 public property of algorithm is not an ECDSA public key 26 PASS P-256 no deriveBits usage for base key 27 PASS P-256 base key is not a private key 28 PASS P-256 public property value is a private key 29 PASS P-256 public property value is a secret key 30 PASS P-256 asking for too many bits 31 PASS P-384 good parameters 32 PASS P-384 mixed case parameters 33 PASS P-384 with null length 34 PASS P-384 short result 35 FAIL P-384 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 36 PASS P-384 missing public curve 37 PASS P-384 public property of algorithm is not a CryptoKey 38 PASS P-384 mismatched curves 39 PASS P-384 public property of algorithm is not an ECDSA public key 40 PASS P-384 no deriveBits usage for base key 41 PASS P-384 base key is not a private key 42 PASS P-384 public property value is a private key 43 PASS P-384 public property value is a secret key 44 PASS P-384 asking for too many bits 3 45 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_bits.https.any.worker-expected.txt
r253630 r279688 1 1 2 FAIL setup - define tests promise_test: Unhandled rejection with value: object "DataError: Data provided to an operation does not meet requirements" 2 PASS setup - define tests 3 PASS P-521 good parameters 4 PASS P-521 mixed case parameters 5 PASS P-521 with null length 6 PASS P-521 short result 7 FAIL P-521 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 8 PASS P-521 missing public curve 9 PASS P-521 public property of algorithm is not a CryptoKey 10 PASS P-521 mismatched curves 11 PASS P-521 public property of algorithm is not an ECDSA public key 12 PASS P-521 no deriveBits usage for base key 13 PASS P-521 base key is not a private key 14 PASS P-521 public property value is a private key 15 PASS P-521 public property value is a secret key 16 PASS P-521 asking for too many bits 17 PASS P-256 good parameters 18 PASS P-256 mixed case parameters 19 PASS P-256 with null length 20 PASS P-256 short result 21 FAIL P-256 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 22 PASS P-256 missing public curve 23 PASS P-256 public property of algorithm is not a CryptoKey 24 PASS P-256 mismatched curves 25 PASS P-256 public property of algorithm is not an ECDSA public key 26 PASS P-256 no deriveBits usage for base key 27 PASS P-256 base key is not a private key 28 PASS P-256 public property value is a private key 29 PASS P-256 public property value is a secret key 30 PASS P-256 asking for too many bits 31 PASS P-384 good parameters 32 PASS P-384 mixed case parameters 33 PASS P-384 with null length 34 PASS P-384 short result 35 FAIL P-384 non-multiple of 8 bits assert_unreached: deriveBits failed with error OperationError: The operation failed for an operation-specific reason Reached unreachable code 36 PASS P-384 missing public curve 37 PASS P-384 public property of algorithm is not a CryptoKey 38 PASS P-384 mismatched curves 39 PASS P-384 public property of algorithm is not an ECDSA public key 40 PASS P-384 no deriveBits usage for base key 41 PASS P-384 base key is not a private key 42 PASS P-384 public property value is a private key 43 PASS P-384 public property value is a secret key 44 PASS P-384 asking for too many bits 3 45 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any-expected.txt
r263598 r279688 1 1 2 FAIL setup - define tests promise_test: Unhandled rejection with value: object "DataError: Data provided to an operation does not meet requirements" 2 PASS setup - define tests 3 PASS P-521 good parameters 4 PASS P-521 mixed case parameters 5 PASS P-521 missing public curve 6 PASS P-521 public property of algorithm is not a CryptoKey 7 PASS P-521 mismatched curves 8 PASS P-521 public property of algorithm is not an ECDSA public key 9 PASS P-521 no deriveKey usage for base key 10 PASS P-521 base key is not a private key 11 PASS P-521 public property value is a private key 12 PASS P-521 public property value is a secret key 13 PASS P-256 good parameters 14 PASS P-256 mixed case parameters 15 PASS P-256 missing public curve 16 PASS P-256 public property of algorithm is not a CryptoKey 17 PASS P-256 mismatched curves 18 PASS P-256 public property of algorithm is not an ECDSA public key 19 PASS P-256 no deriveKey usage for base key 20 PASS P-256 base key is not a private key 21 PASS P-256 public property value is a private key 22 PASS P-256 public property value is a secret key 23 PASS P-384 good parameters 24 PASS P-384 mixed case parameters 25 PASS P-384 missing public curve 26 PASS P-384 public property of algorithm is not a CryptoKey 27 PASS P-384 mismatched curves 28 PASS P-384 public property of algorithm is not an ECDSA public key 29 PASS P-384 no deriveKey usage for base key 30 PASS P-384 base key is not a private key 31 PASS P-384 public property value is a private key 32 PASS P-384 public property value is a secret key 3 33 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/derive_bits_keys/ecdh_keys.https.any.worker-expected.txt
r253630 r279688 1 1 2 FAIL setup - define tests promise_test: Unhandled rejection with value: object "DataError: Data provided to an operation does not meet requirements" 2 PASS setup - define tests 3 PASS P-521 good parameters 4 PASS P-521 mixed case parameters 5 PASS P-521 missing public curve 6 PASS P-521 public property of algorithm is not a CryptoKey 7 PASS P-521 mismatched curves 8 PASS P-521 public property of algorithm is not an ECDSA public key 9 PASS P-521 no deriveKey usage for base key 10 PASS P-521 base key is not a private key 11 PASS P-521 public property value is a private key 12 PASS P-521 public property value is a secret key 13 PASS P-256 good parameters 14 PASS P-256 mixed case parameters 15 PASS P-256 missing public curve 16 PASS P-256 public property of algorithm is not a CryptoKey 17 PASS P-256 mismatched curves 18 PASS P-256 public property of algorithm is not an ECDSA public key 19 PASS P-256 no deriveKey usage for base key 20 PASS P-256 base key is not a private key 21 PASS P-256 public property value is a private key 22 PASS P-256 public property value is a secret key 23 PASS P-384 good parameters 24 PASS P-384 mixed case parameters 25 PASS P-384 missing public curve 26 PASS P-384 public property of algorithm is not a CryptoKey 27 PASS P-384 mismatched curves 28 PASS P-384 public property of algorithm is not an ECDSA public key 29 PASS P-384 no deriveKey usage for base key 30 PASS P-384 base key is not a private key 31 PASS P-384 public property value is a private key 32 PASS P-384 public property value is a secret key 3 33 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any-expected.txt
r267651 r279688 438 438 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-384}, false, []) 439 439 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-384}, true, []) 440 FAIL Empty usages: generateKey({name: ECDH, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 441 FAIL Empty usages: generateKey({name: ECDH, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 440 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-521}, false, []) 441 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-521}, true, []) 442 442 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDH.https.any.worker-expected.txt
r267651 r279688 438 438 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-384}, false, []) 439 439 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-384}, true, []) 440 FAIL Empty usages: generateKey({name: ECDH, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 441 FAIL Empty usages: generateKey({name: ECDH, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 440 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-521}, false, []) 441 PASS Empty usages: generateKey({name: ECDH, namedCurve: P-521}, true, []) 442 442 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any-expected.txt
r267651 r279688 416 416 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) 417 417 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) 418 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 419 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 418 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) 419 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) 420 420 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.https.any.worker-expected.txt
r267651 r279688 416 416 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) 417 417 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) 418 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 419 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 418 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) 419 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) 420 420 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any-expected.txt
r267651 r279688 16 16 PASS Success: generateKey({name: ECDH, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 17 17 PASS Success: generateKey({name: ECDH, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 18 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 19 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 20 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 21 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 22 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 23 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 24 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 25 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 18 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey]) 19 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey]) 20 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 21 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 22 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits]) 23 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits]) 24 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 25 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 26 26 PASS Success: generateKey({name: ecdh, namedCurve: P-256}, false, [deriveKey]) 27 27 PASS Success: generateKey({name: ecdh, namedCurve: P-256}, true, [deriveKey]) … … 40 40 PASS Success: generateKey({name: ecdh, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 41 41 PASS Success: generateKey({name: ecdh, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 42 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 43 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 44 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 45 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 46 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 47 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 48 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 49 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 42 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey]) 43 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey]) 44 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) 45 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) 46 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits]) 47 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits]) 48 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 49 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 50 50 PASS Success: generateKey({name: Ecdh, namedCurve: P-256}, false, [deriveKey]) 51 51 PASS Success: generateKey({name: Ecdh, namedCurve: P-256}, true, [deriveKey]) … … 64 64 PASS Success: generateKey({name: Ecdh, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 65 65 PASS Success: generateKey({name: Ecdh, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 66 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 67 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 68 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 69 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 70 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 71 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 72 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 73 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 66 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey]) 67 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey]) 68 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) 69 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) 70 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits]) 71 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits]) 72 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 73 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 74 74 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDH.https.any.worker-expected.txt
r267651 r279688 16 16 PASS Success: generateKey({name: ECDH, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 17 17 PASS Success: generateKey({name: ECDH, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 18 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 19 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 20 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 21 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 22 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 23 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 24 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 25 FAIL Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 18 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey]) 19 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey]) 20 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 21 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 22 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveBits]) 23 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveBits]) 24 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 25 PASS Success: generateKey({name: ECDH, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 26 26 PASS Success: generateKey({name: ecdh, namedCurve: P-256}, false, [deriveKey]) 27 27 PASS Success: generateKey({name: ecdh, namedCurve: P-256}, true, [deriveKey]) … … 40 40 PASS Success: generateKey({name: ecdh, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 41 41 PASS Success: generateKey({name: ecdh, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 42 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 43 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 44 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 45 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 46 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 47 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 48 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 49 FAIL Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 42 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey]) 43 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey]) 44 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) 45 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) 46 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveBits]) 47 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveBits]) 48 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 49 PASS Success: generateKey({name: ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 50 50 PASS Success: generateKey({name: Ecdh, namedCurve: P-256}, false, [deriveKey]) 51 51 PASS Success: generateKey({name: Ecdh, namedCurve: P-256}, true, [deriveKey]) … … 64 64 PASS Success: generateKey({name: Ecdh, namedCurve: P-384}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 65 65 PASS Success: generateKey({name: Ecdh, namedCurve: P-384}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 66 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 67 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 68 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 69 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 70 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 71 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 72 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 73 FAIL Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 66 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey]) 67 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey]) 68 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits, deriveKey]) 69 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits, deriveKey]) 70 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveBits]) 71 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveBits]) 72 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, false, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 73 PASS Success: generateKey({name: Ecdh, namedCurve: P-521}, true, [deriveKey, deriveBits, deriveKey, deriveBits, deriveKey, deriveBits]) 74 74 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any-expected.txt
r267651 r279688 12 12 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 13 13 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 14 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 15 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 16 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 17 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 18 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 19 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 14 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) 15 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) 16 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) 17 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) 18 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 19 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 20 20 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) 21 21 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) … … 30 30 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 31 31 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 32 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 33 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 34 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 35 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 36 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 37 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 32 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) 33 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) 34 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) 35 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) 36 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 37 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 38 38 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) 39 39 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) … … 48 48 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 49 49 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 50 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 51 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 52 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 53 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 54 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 55 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 50 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) 51 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) 52 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) 53 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) 54 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 55 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 56 56 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.https.any.worker-expected.txt
r267651 r279688 12 12 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 13 13 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 14 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 15 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 16 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 17 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 18 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 19 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 14 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) 15 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) 16 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) 17 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) 18 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 19 PASS Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 20 20 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) 21 21 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) … … 30 30 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 31 31 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 32 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 33 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 34 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 35 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 36 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 37 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 32 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) 33 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) 34 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) 35 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) 36 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 37 PASS Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 38 38 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) 39 39 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) … … 48 48 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 49 49 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 50 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 51 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 52 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 53 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 54 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 55 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError: The algorithm is not supported Reached unreachable code 50 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) 51 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) 52 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) 53 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) 54 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) 55 PASS Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) 56 56 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any-expected.txt
r279516 r279688 16 16 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) 17 17 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, false, [sign]) 18 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 19 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 20 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 21 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 22 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 23 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 24 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 25 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 18 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) 19 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) 20 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) 21 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, true, [sign]) 22 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) 23 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) 24 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) 25 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, false, [sign]) 26 26 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDH, namedCurve: P-256}, true, []) 27 27 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-256}, true, []) … … 56 56 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDH, namedCurve: P-384}, false, [deriveBits]) 57 57 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-384}, false, [deriveBits]) 58 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 59 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 60 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 61 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 62 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 63 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 64 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 65 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 66 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 67 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 68 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 69 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 70 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 71 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 72 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 73 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 58 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, true, []) 59 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, true, []) 60 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) 61 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) 62 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 63 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 64 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) 65 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) 66 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, false, []) 67 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, false, []) 68 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) 69 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) 70 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 71 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 72 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) 73 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) 74 74 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/ec_importKey.https.any.worker-expected.txt
r279516 r279688 16 16 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) 17 17 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, false, [sign]) 18 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 19 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 20 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 21 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 22 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 23 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 24 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 25 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 18 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) 19 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) 20 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) 21 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, true, [sign]) 22 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) 23 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) 24 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) 25 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-521}, false, [sign]) 26 26 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDH, namedCurve: P-256}, true, []) 27 27 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-256}, true, []) … … 56 56 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDH, namedCurve: P-384}, false, [deriveBits]) 57 57 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-384}, false, [deriveBits]) 58 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 59 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 60 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 61 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 62 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 63 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 64 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 65 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 66 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 67 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 68 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 69 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 70 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 71 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 72 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 73 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) assert_unreached: Threw an unexpected error: DataError: Data provided to an operation does not meet requirements Reached unreachable code 58 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, true, []) 59 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, true, []) 60 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) 61 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveKey]) 62 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 63 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits, deriveKey]) 64 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) 65 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, true, [deriveBits]) 66 PASS Good parameters: P-521 bits (spki, buffer(158), {name: ECDH, namedCurve: P-521}, false, []) 67 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDH, namedCurve: P-521}, false, []) 68 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) 69 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveKey]) 70 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 71 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits, deriveKey]) 72 PASS Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) 73 PASS Good parameters: P-521 bits (jwk, object(kty, crv, x, y, d), {name: ECDH, namedCurve: P-521}, false, [deriveBits]) 74 74 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any-expected.txt
r279516 r279688 9 9 PASS ECDSA P-384 with SHA-384 verification 10 10 PASS ECDSA P-384 with SHA-512 verification 11 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 12 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 13 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 14 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 11 PASS ECDSA P-521 with SHA-1 verification 12 PASS ECDSA P-521 with SHA-256 verification 13 PASS ECDSA P-521 with SHA-384 verification 14 PASS ECDSA P-521 with SHA-512 verification 15 15 PASS ECDSA P-256 with SHA-1 verification with altered signature after call 16 16 PASS ECDSA P-256 with SHA-256 verification with altered signature after call … … 21 21 PASS ECDSA P-384 with SHA-384 verification with altered signature after call 22 22 PASS ECDSA P-384 with SHA-512 verification with altered signature after call 23 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 24 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 25 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 26 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 23 PASS ECDSA P-521 with SHA-1 verification with altered signature after call 24 PASS ECDSA P-521 with SHA-256 verification with altered signature after call 25 PASS ECDSA P-521 with SHA-384 verification with altered signature after call 26 PASS ECDSA P-521 with SHA-512 verification with altered signature after call 27 27 PASS ECDSA P-256 with SHA-1 with altered plaintext after call 28 28 PASS ECDSA P-256 with SHA-256 with altered plaintext after call … … 33 33 PASS ECDSA P-384 with SHA-384 with altered plaintext after call 34 34 PASS ECDSA P-384 with SHA-512 with altered plaintext after call 35 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 36 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 37 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 38 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 35 PASS ECDSA P-521 with SHA-1 with altered plaintext after call 36 PASS ECDSA P-521 with SHA-256 with altered plaintext after call 37 PASS ECDSA P-521 with SHA-384 with altered plaintext after call 38 PASS ECDSA P-521 with SHA-512 with altered plaintext after call 39 39 PASS ECDSA P-256 with SHA-1 using privateKey to verify 40 40 PASS ECDSA P-256 with SHA-256 using privateKey to verify … … 45 45 PASS ECDSA P-384 with SHA-384 using privateKey to verify 46 46 PASS ECDSA P-384 with SHA-512 using privateKey to verify 47 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 48 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 49 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 50 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 47 PASS ECDSA P-521 with SHA-1 using privateKey to verify 48 PASS ECDSA P-521 with SHA-256 using privateKey to verify 49 PASS ECDSA P-521 with SHA-384 using privateKey to verify 50 PASS ECDSA P-521 with SHA-512 using privateKey to verify 51 51 PASS ECDSA P-256 with SHA-1 using publicKey to sign 52 52 PASS ECDSA P-256 with SHA-256 using publicKey to sign … … 57 57 PASS ECDSA P-384 with SHA-384 using publicKey to sign 58 58 PASS ECDSA P-384 with SHA-512 using publicKey to sign 59 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 60 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 61 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 62 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 59 PASS ECDSA P-521 with SHA-1 using publicKey to sign 60 PASS ECDSA P-521 with SHA-256 using publicKey to sign 61 PASS ECDSA P-521 with SHA-384 using publicKey to sign 62 PASS ECDSA P-521 with SHA-512 using publicKey to sign 63 63 PASS ECDSA P-256 with SHA-1 no verify usage 64 64 PASS ECDSA P-256 with SHA-256 no verify usage … … 69 69 PASS ECDSA P-384 with SHA-384 no verify usage 70 70 PASS ECDSA P-384 with SHA-512 no verify usage 71 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code72 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code73 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code74 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code71 PASS ECDSA P-521 with SHA-1 no verify usage 72 PASS ECDSA P-521 with SHA-256 no verify usage 73 PASS ECDSA P-521 with SHA-384 no verify usage 74 PASS ECDSA P-521 with SHA-512 no verify usage 75 75 PASS ECDSA P-256 with SHA-1 round trip 76 76 PASS ECDSA P-256 with SHA-256 round trip … … 81 81 PASS ECDSA P-384 with SHA-384 round trip 82 82 PASS ECDSA P-384 with SHA-512 round trip 83 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 84 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 85 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 86 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 83 PASS ECDSA P-521 with SHA-1 round trip 84 PASS ECDSA P-521 with SHA-256 round trip 85 PASS ECDSA P-521 with SHA-384 round trip 86 PASS ECDSA P-521 with SHA-512 round trip 87 87 PASS ECDSA P-256 with SHA-1 signing with wrong algorithm name 88 88 PASS ECDSA P-256 with SHA-256 signing with wrong algorithm name … … 93 93 PASS ECDSA P-384 with SHA-384 signing with wrong algorithm name 94 94 PASS ECDSA P-384 with SHA-512 signing with wrong algorithm name 95 PASS ECDSA P-521 with SHA-1 signing with wrong algorithm name 96 PASS ECDSA P-521 with SHA-256 signing with wrong algorithm name 97 PASS ECDSA P-521 with SHA-384 signing with wrong algorithm name 98 PASS ECDSA P-521 with SHA-512 signing with wrong algorithm name 95 99 PASS ECDSA P-256 with SHA-1 verifying with wrong algorithm name 96 100 PASS ECDSA P-256 with SHA-256 verifying with wrong algorithm name … … 101 105 PASS ECDSA P-384 with SHA-384 verifying with wrong algorithm name 102 106 PASS ECDSA P-384 with SHA-512 verifying with wrong algorithm name 107 PASS ECDSA P-521 with SHA-1 verifying with wrong algorithm name 108 PASS ECDSA P-521 with SHA-256 verifying with wrong algorithm name 109 PASS ECDSA P-521 with SHA-384 verifying with wrong algorithm name 110 PASS ECDSA P-521 with SHA-512 verifying with wrong algorithm name 103 111 PASS ECDSA P-256 with SHA-1 verification failure due to altered signature 104 112 PASS ECDSA P-256 with SHA-256 verification failure due to altered signature … … 109 117 PASS ECDSA P-384 with SHA-384 verification failure due to altered signature 110 118 PASS ECDSA P-384 with SHA-512 verification failure due to altered signature 111 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code112 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code113 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code114 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code119 PASS ECDSA P-521 with SHA-1 verification failure due to altered signature 120 PASS ECDSA P-521 with SHA-256 verification failure due to altered signature 121 PASS ECDSA P-521 with SHA-384 verification failure due to altered signature 122 PASS ECDSA P-521 with SHA-512 verification failure due to altered signature 115 123 PASS ECDSA P-256 with SHA-1 verification failure due to wrong hash 116 124 PASS ECDSA P-256 with SHA-256 verification failure due to wrong hash … … 121 129 PASS ECDSA P-384 with SHA-384 verification failure due to wrong hash 122 130 PASS ECDSA P-384 with SHA-512 verification failure due to wrong hash 123 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 124 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 125 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 126 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 131 PASS ECDSA P-521 with SHA-1 verification failure due to wrong hash 132 PASS ECDSA P-521 with SHA-256 verification failure due to wrong hash 133 PASS ECDSA P-521 with SHA-384 verification failure due to wrong hash 134 PASS ECDSA P-521 with SHA-512 verification failure due to wrong hash 127 135 PASS ECDSA P-256 with SHA-1 verification failure due to bad hash name 128 136 PASS ECDSA P-256 with SHA-256 verification failure due to bad hash name … … 133 141 PASS ECDSA P-384 with SHA-384 verification failure due to bad hash name 134 142 PASS ECDSA P-384 with SHA-512 verification failure due to bad hash name 135 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code136 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code137 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code138 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code143 PASS ECDSA P-521 with SHA-1 verification failure due to bad hash name 144 PASS ECDSA P-521 with SHA-256 verification failure due to bad hash name 145 PASS ECDSA P-521 with SHA-384 verification failure due to bad hash name 146 PASS ECDSA P-521 with SHA-512 verification failure due to bad hash name 139 147 PASS ECDSA P-256 with SHA-1 verification failure due to shortened signature 140 148 PASS ECDSA P-256 with SHA-256 verification failure due to shortened signature … … 145 153 PASS ECDSA P-384 with SHA-384 verification failure due to shortened signature 146 154 PASS ECDSA P-384 with SHA-512 verification failure due to shortened signature 147 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code148 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code149 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code150 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code155 PASS ECDSA P-521 with SHA-1 verification failure due to shortened signature 156 PASS ECDSA P-521 with SHA-256 verification failure due to shortened signature 157 PASS ECDSA P-521 with SHA-384 verification failure due to shortened signature 158 PASS ECDSA P-521 with SHA-512 verification failure due to shortened signature 151 159 PASS ECDSA P-256 with SHA-1 verification failure due to altered plaintext 152 160 PASS ECDSA P-256 with SHA-256 verification failure due to altered plaintext … … 157 165 PASS ECDSA P-384 with SHA-384 verification failure due to altered plaintext 158 166 PASS ECDSA P-384 with SHA-512 verification failure due to altered plaintext 159 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 160 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 161 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 162 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 163 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 164 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 165 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 166 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 167 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 168 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 169 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 170 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 167 PASS ECDSA P-521 with SHA-1 verification failure due to altered plaintext 168 PASS ECDSA P-521 with SHA-256 verification failure due to altered plaintext 169 PASS ECDSA P-521 with SHA-384 verification failure due to altered plaintext 170 PASS ECDSA P-521 with SHA-512 verification failure due to altered plaintext 171 171 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.https.any.worker-expected.txt
r279516 r279688 9 9 PASS ECDSA P-384 with SHA-384 verification 10 10 PASS ECDSA P-384 with SHA-512 verification 11 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 12 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 13 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 14 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 11 PASS ECDSA P-521 with SHA-1 verification 12 PASS ECDSA P-521 with SHA-256 verification 13 PASS ECDSA P-521 with SHA-384 verification 14 PASS ECDSA P-521 with SHA-512 verification 15 15 PASS ECDSA P-256 with SHA-1 verification with altered signature after call 16 16 PASS ECDSA P-256 with SHA-256 verification with altered signature after call … … 21 21 PASS ECDSA P-384 with SHA-384 verification with altered signature after call 22 22 PASS ECDSA P-384 with SHA-512 verification with altered signature after call 23 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 24 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 25 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 26 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 23 PASS ECDSA P-521 with SHA-1 verification with altered signature after call 24 PASS ECDSA P-521 with SHA-256 verification with altered signature after call 25 PASS ECDSA P-521 with SHA-384 verification with altered signature after call 26 PASS ECDSA P-521 with SHA-512 verification with altered signature after call 27 27 PASS ECDSA P-256 with SHA-1 with altered plaintext after call 28 28 PASS ECDSA P-256 with SHA-256 with altered plaintext after call … … 33 33 PASS ECDSA P-384 with SHA-384 with altered plaintext after call 34 34 PASS ECDSA P-384 with SHA-512 with altered plaintext after call 35 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 36 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 37 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 38 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 35 PASS ECDSA P-521 with SHA-1 with altered plaintext after call 36 PASS ECDSA P-521 with SHA-256 with altered plaintext after call 37 PASS ECDSA P-521 with SHA-384 with altered plaintext after call 38 PASS ECDSA P-521 with SHA-512 with altered plaintext after call 39 39 PASS ECDSA P-256 with SHA-1 using privateKey to verify 40 40 PASS ECDSA P-256 with SHA-256 using privateKey to verify … … 45 45 PASS ECDSA P-384 with SHA-384 using privateKey to verify 46 46 PASS ECDSA P-384 with SHA-512 using privateKey to verify 47 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 48 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 49 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 50 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 47 PASS ECDSA P-521 with SHA-1 using privateKey to verify 48 PASS ECDSA P-521 with SHA-256 using privateKey to verify 49 PASS ECDSA P-521 with SHA-384 using privateKey to verify 50 PASS ECDSA P-521 with SHA-512 using privateKey to verify 51 51 PASS ECDSA P-256 with SHA-1 using publicKey to sign 52 52 PASS ECDSA P-256 with SHA-256 using publicKey to sign … … 57 57 PASS ECDSA P-384 with SHA-384 using publicKey to sign 58 58 PASS ECDSA P-384 with SHA-512 using publicKey to sign 59 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 60 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 61 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 62 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 59 PASS ECDSA P-521 with SHA-1 using publicKey to sign 60 PASS ECDSA P-521 with SHA-256 using publicKey to sign 61 PASS ECDSA P-521 with SHA-384 using publicKey to sign 62 PASS ECDSA P-521 with SHA-512 using publicKey to sign 63 63 PASS ECDSA P-256 with SHA-1 no verify usage 64 64 PASS ECDSA P-256 with SHA-256 no verify usage … … 69 69 PASS ECDSA P-384 with SHA-384 no verify usage 70 70 PASS ECDSA P-384 with SHA-512 no verify usage 71 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code72 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code73 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code74 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code71 PASS ECDSA P-521 with SHA-1 no verify usage 72 PASS ECDSA P-521 with SHA-256 no verify usage 73 PASS ECDSA P-521 with SHA-384 no verify usage 74 PASS ECDSA P-521 with SHA-512 no verify usage 75 75 PASS ECDSA P-256 with SHA-1 round trip 76 76 PASS ECDSA P-256 with SHA-256 round trip … … 81 81 PASS ECDSA P-384 with SHA-384 round trip 82 82 PASS ECDSA P-384 with SHA-512 round trip 83 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 84 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 85 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 86 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 83 PASS ECDSA P-521 with SHA-1 round trip 84 PASS ECDSA P-521 with SHA-256 round trip 85 PASS ECDSA P-521 with SHA-384 round trip 86 PASS ECDSA P-521 with SHA-512 round trip 87 87 PASS ECDSA P-256 with SHA-1 signing with wrong algorithm name 88 88 PASS ECDSA P-256 with SHA-256 signing with wrong algorithm name … … 93 93 PASS ECDSA P-384 with SHA-384 signing with wrong algorithm name 94 94 PASS ECDSA P-384 with SHA-512 signing with wrong algorithm name 95 PASS ECDSA P-521 with SHA-1 signing with wrong algorithm name 96 PASS ECDSA P-521 with SHA-256 signing with wrong algorithm name 97 PASS ECDSA P-521 with SHA-384 signing with wrong algorithm name 98 PASS ECDSA P-521 with SHA-512 signing with wrong algorithm name 95 99 PASS ECDSA P-256 with SHA-1 verifying with wrong algorithm name 96 100 PASS ECDSA P-256 with SHA-256 verifying with wrong algorithm name … … 101 105 PASS ECDSA P-384 with SHA-384 verifying with wrong algorithm name 102 106 PASS ECDSA P-384 with SHA-512 verifying with wrong algorithm name 107 PASS ECDSA P-521 with SHA-1 verifying with wrong algorithm name 108 PASS ECDSA P-521 with SHA-256 verifying with wrong algorithm name 109 PASS ECDSA P-521 with SHA-384 verifying with wrong algorithm name 110 PASS ECDSA P-521 with SHA-512 verifying with wrong algorithm name 103 111 PASS ECDSA P-256 with SHA-1 verification failure due to altered signature 104 112 PASS ECDSA P-256 with SHA-256 verification failure due to altered signature … … 109 117 PASS ECDSA P-384 with SHA-384 verification failure due to altered signature 110 118 PASS ECDSA P-384 with SHA-512 verification failure due to altered signature 111 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code112 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code113 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code114 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code119 PASS ECDSA P-521 with SHA-1 verification failure due to altered signature 120 PASS ECDSA P-521 with SHA-256 verification failure due to altered signature 121 PASS ECDSA P-521 with SHA-384 verification failure due to altered signature 122 PASS ECDSA P-521 with SHA-512 verification failure due to altered signature 115 123 PASS ECDSA P-256 with SHA-1 verification failure due to wrong hash 116 124 PASS ECDSA P-256 with SHA-256 verification failure due to wrong hash … … 121 129 PASS ECDSA P-384 with SHA-384 verification failure due to wrong hash 122 130 PASS ECDSA P-384 with SHA-512 verification failure due to wrong hash 123 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 124 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 125 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 126 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 131 PASS ECDSA P-521 with SHA-1 verification failure due to wrong hash 132 PASS ECDSA P-521 with SHA-256 verification failure due to wrong hash 133 PASS ECDSA P-521 with SHA-384 verification failure due to wrong hash 134 PASS ECDSA P-521 with SHA-512 verification failure due to wrong hash 127 135 PASS ECDSA P-256 with SHA-1 verification failure due to bad hash name 128 136 PASS ECDSA P-256 with SHA-256 verification failure due to bad hash name … … 133 141 PASS ECDSA P-384 with SHA-384 verification failure due to bad hash name 134 142 PASS ECDSA P-384 with SHA-512 verification failure due to bad hash name 135 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code136 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code137 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code138 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code143 PASS ECDSA P-521 with SHA-1 verification failure due to bad hash name 144 PASS ECDSA P-521 with SHA-256 verification failure due to bad hash name 145 PASS ECDSA P-521 with SHA-384 verification failure due to bad hash name 146 PASS ECDSA P-521 with SHA-512 verification failure due to bad hash name 139 147 PASS ECDSA P-256 with SHA-1 verification failure due to shortened signature 140 148 PASS ECDSA P-256 with SHA-256 verification failure due to shortened signature … … 145 153 PASS ECDSA P-384 with SHA-384 verification failure due to shortened signature 146 154 PASS ECDSA P-384 with SHA-512 verification failure due to shortened signature 147 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code148 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code149 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code150 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code155 PASS ECDSA P-521 with SHA-1 verification failure due to shortened signature 156 PASS ECDSA P-521 with SHA-256 verification failure due to shortened signature 157 PASS ECDSA P-521 with SHA-384 verification failure due to shortened signature 158 PASS ECDSA P-521 with SHA-512 verification failure due to shortened signature 151 159 PASS ECDSA P-256 with SHA-1 verification failure due to altered plaintext 152 160 PASS ECDSA P-256 with SHA-256 verification failure due to altered plaintext … … 157 165 PASS ECDSA P-384 with SHA-384 verification failure due to altered plaintext 158 166 PASS ECDSA P-384 with SHA-512 verification failure due to altered plaintext 159 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 160 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 161 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 162 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 163 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 164 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 165 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 166 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 167 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 168 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 169 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 170 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: ''Data provided to an operation does not meet requirements'' Reached unreachable code 167 PASS ECDSA P-521 with SHA-1 verification failure due to altered plaintext 168 PASS ECDSA P-521 with SHA-256 verification failure due to altered plaintext 169 PASS ECDSA P-521 with SHA-384 verification failure due to altered plaintext 170 PASS ECDSA P-521 with SHA-512 verification failure due to altered plaintext 171 171 -
trunk/Source/WebCore/ChangeLog
r279686 r279688 1 2021-07-07 Chris Dumez <cdumez@apple.com> 2 3 [WebCrypto] Support Elliptic Curve P-521 on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=216755 5 <rdar://problem/69667220> 6 7 Reviewed by Alex Christensen. 8 9 Add support for Elliptic Curve P-521 in WebCrypto for ECDSA and ECDH, on macOS. 10 Both Gecko and Blink already support this. 11 12 No new tests, rebaselined existing tests. 13 14 * crypto/mac/CryptoAlgorithmECDHMac.cpp: 15 (WebCore::CryptoAlgorithmECDH::platformDeriveBits): 16 * crypto/mac/CryptoAlgorithmECDSAMac.cpp: 17 Use std::ceil() when converting bits to bytes since 521 is not a multiple of 8. 18 This is as per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf, which indicates 19 we should use ceil(). 20 21 (WebCore::signECDSA): 22 Stop assuming the length can be encoded in a single byte as this is not true with 23 P-521 (values >= 128 require 2 bytes). 24 25 (WebCore::verifyECDSA): 26 Do not reject the promise when CCECCryptorVerifyHash() fails and instead return 27 false to indicate that the signature fails. This was needed to pass a few more 28 WPT checks. We do not do much validation on r and s before passing them to 29 CommonCrypto and CCECCryptorVerifyHash() may return a kCCNotVerified error when 30 the input signature is invalid (invalid signatures are tested by WPT tests). 31 32 (WebCore::CryptoAlgorithmECDSA::platformSign): 33 (WebCore::CryptoAlgorithmECDSA::platformVerify): 34 * crypto/mac/CryptoKeyECMac.cpp: 35 (WebCore::doesUncompressedPointMatchNamedCurve): 36 (WebCore::doesFieldElementMatchNamedCurve): 37 (WebCore::getKeySizeFromNamedCurve): 38 (WebCore::CryptoKeyEC::platformSupportedCurve): 39 (WebCore::CryptoKeyEC::platformExportRaw const): 40 (WebCore::CryptoKeyEC::platformAddFieldElements const): 41 (WebCore::getOID): 42 (WebCore::CryptoKeyEC::platformExportSpki const): 43 (WebCore::CryptoKeyEC::platformImportPkcs8): 44 (WebCore::CryptoKeyEC::platformExportPkcs8 const): 45 Add support for P-521 and use std::ceil() when converting bits to bytes since 46 521 is not a multiple of 8. 47 1 48 2021-07-07 Chris Dumez <cdumez@apple.com> 2 49 -
trunk/Source/WebCore/crypto/keys/CryptoKeyEC.h
r279682 r279688 87 87 88 88 size_t keySizeInBits() const; 89 size_t keySizeInBytes() const { return std::ceil(keySizeInBits() / 8.); } 89 90 NamedCurve namedCurve() const { return m_curve; } 90 91 String namedCurveString() const; -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmECDHMac.cpp
r278253 r279688 37 37 { 38 38 std::optional<Vector<uint8_t>> result = std::nullopt; 39 Vector<uint8_t> derivedKey(baseKey.keySizeInB its() / 8); // Per https://tools.ietf.org/html/rfc6090#section-4.39 Vector<uint8_t> derivedKey(baseKey.keySizeInBytes()); // Per https://tools.ietf.org/html/rfc6090#section-4. 40 40 size_t size = derivedKey.size(); 41 41 if (!CCECCryptorComputeSharedSecret(baseKey.platformKey(), publicKey.platformKey(), derivedKey.data(), &size)) -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmECDSAMac.cpp
r238754 r279688 65 65 Vector<uint8_t> newSignature; 66 66 newSignature.reserveCapacity(keyLengthInBytes * 2); 67 size_t offset = 3; // skip tag, length, tag 67 size_t offset = 1; // skip tag 68 offset += bytesUsedToEncodedLength(signature[offset]); // skip length 69 ++offset; // skip tag 68 70 69 71 // If r < keyLengthInBytes, fill the head of r with 0s. … … 89 91 } else if (signature[offset] > keyLengthInBytes) // Otherwise skip the leading 0s of s. 90 92 offset += signature[offset] - keyLengthInBytes; 91 offset++; // skip length93 ++offset; // skip length 92 94 ASSERT_WITH_SECURITY_IMPLICATION(signature.size() >= offset + bytesToCopy); 93 95 newSignature.append(signature.data() + offset, bytesToCopy); … … 149 151 uint32_t valid; 150 152 CCCryptorStatus status = CCECCryptorVerifyHash(key, digestData.data(), digestData.size(), newSignature.data(), newSignature.size(), &valid); 151 if (status) 152 return Exception { OperationError }; 153 if (status) { 154 WTFLogAlways("ERROR: CCECCryptorVerifyHash() returns error=%d", status); 155 return false; 156 } 153 157 return valid; 154 158 } … … 156 160 ExceptionOr<Vector<uint8_t>> CryptoAlgorithmECDSA::platformSign(const CryptoAlgorithmEcdsaParams& parameters, const CryptoKeyEC& key, const Vector<uint8_t>& data) 157 161 { 158 return signECDSA(parameters.hashIdentifier, key.platformKey(), key.keySizeInB its() / 8, data);162 return signECDSA(parameters.hashIdentifier, key.platformKey(), key.keySizeInBytes(), data); 159 163 } 160 164 161 165 ExceptionOr<bool> CryptoAlgorithmECDSA::platformVerify(const CryptoAlgorithmEcdsaParams& parameters, const CryptoKeyEC& key, const Vector<uint8_t>& signature, const Vector<uint8_t>& data) 162 166 { 163 return verifyECDSA(parameters.hashIdentifier, key.platformKey(), key.keySizeInB its() / 8, signature, data);167 return verifyECDSA(parameters.hashIdentifier, key.platformKey(), key.keySizeInBytes(), signature, data); 164 168 } 165 169 -
trunk/Source/WebCore/crypto/mac/CryptoKeyECMac.cpp
r278253 r279688 42 42 // OID secp384r1 1.3.132.0.34 43 43 static constexpr unsigned char Secp384r1[] = {0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22}; 44 // OID secp521r1 1.3.132.0.35 45 static constexpr unsigned char Secp521r1[] = {0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x23}; 46 44 47 // Version 1. Per https://tools.ietf.org/html/rfc5915#section-3 45 48 static const unsigned char PrivateKeyVersion[] = {0x02, 0x01, 0x01}; … … 47 50 static const unsigned char TaggedType1 = 0xa1; 48 51 49 // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf 50 // We only support uncompressed point format. 51 static bool doesUncompressedPointMatchNamedCurve(CryptoKeyEC::NamedCurve curve, size_t size) 52 { 53 switch (curve) { 54 case CryptoKeyEC::NamedCurve::P256: 55 return size == 65; 56 case CryptoKeyEC::NamedCurve::P384: 57 return size == 97; 58 case CryptoKeyEC::NamedCurve::P521: 59 break; 60 } 61 62 ASSERT_NOT_REACHED(); 63 return false; 64 } 65 66 // Per Section 2.3.5 of http://www.secg.org/sec1-v2.pdf 67 static bool doesFieldElementMatchNamedCurve(CryptoKeyEC::NamedCurve curve, size_t size) 68 { 69 switch (curve) { 70 case CryptoKeyEC::NamedCurve::P256: 71 return size == 32; 72 case CryptoKeyEC::NamedCurve::P384: 73 return size == 48; 74 case CryptoKeyEC::NamedCurve::P521: 75 break; 76 } 77 78 ASSERT_NOT_REACHED(); 79 return false; 80 } 81 82 static size_t getKeySizeFromNamedCurve(CryptoKeyEC::NamedCurve curve) 52 static constexpr size_t sizeCeil(float f) 53 { 54 auto s = static_cast<size_t>(f); 55 return f > s ? s + 1 : s; 56 } 57 58 static constexpr size_t keySizeInBitsFromNamedCurve(CryptoKeyEC::NamedCurve curve) 83 59 { 84 60 switch (curve) { … … 88 64 return 384; 89 65 case CryptoKeyEC::NamedCurve::P521: 90 break;66 return 521; 91 67 } 92 68 … … 95 71 } 96 72 73 static constexpr size_t keySizeInBytesFromNamedCurve(CryptoKeyEC::NamedCurve curve) 74 { 75 return sizeCeil(keySizeInBitsFromNamedCurve(curve) / 8.); 76 } 77 78 // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf 79 // We only support uncompressed point format. 80 static constexpr bool doesUncompressedPointMatchNamedCurve(CryptoKeyEC::NamedCurve curve, size_t size) 81 { 82 return (keySizeInBytesFromNamedCurve(curve) * 2 + 1) == size; 83 } 84 85 // Per Section 2.3.5 of http://www.secg.org/sec1-v2.pdf 86 static constexpr bool doesFieldElementMatchNamedCurve(CryptoKeyEC::NamedCurve curve, size_t size) 87 { 88 return keySizeInBytesFromNamedCurve(curve) == size; 89 } 90 97 91 size_t CryptoKeyEC::keySizeInBits() const 98 92 { … … 103 97 bool CryptoKeyEC::platformSupportedCurve(NamedCurve curve) 104 98 { 105 return curve == NamedCurve::P256 || curve == NamedCurve::P384 ;99 return curve == NamedCurve::P256 || curve == NamedCurve::P384 || curve == NamedCurve::P521; 106 100 } 107 101 108 102 std::optional<CryptoKeyPair> CryptoKeyEC::platformGeneratePair(CryptoAlgorithmIdentifier identifier, NamedCurve curve, bool extractable, CryptoKeyUsageBitmap usages) 109 103 { 110 size_t size = getKeySizeFromNamedCurve(curve);104 size_t size = keySizeInBitsFromNamedCurve(curve); 111 105 CCECCryptorRef ccPublicKey = nullptr; 112 106 CCECCryptorRef ccPrivateKey = nullptr; … … 133 127 Vector<uint8_t> CryptoKeyEC::platformExportRaw() const 134 128 { 135 size_t expectedSize = keySizeInBits() / 4+ 1; // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf129 size_t expectedSize = 2 * keySizeInBytes() + 1; // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf 136 130 Vector<uint8_t> result(expectedSize); 137 131 size_t size = result.size(); … … 146 140 return nullptr; 147 141 148 size_t size = getKeySizeFromNamedCurve(curve);142 size_t size = keySizeInBitsFromNamedCurve(curve); 149 143 CCECCryptorRef ccPublicKey = nullptr; 150 144 if (CCECCryptorCreateFromData(size, x.data(), x.size(), y.data(), y.size(), &ccPublicKey)) … … 176 170 bool CryptoKeyEC::platformAddFieldElements(JsonWebKey& jwk) const 177 171 { 178 size_t keySizeInBytes = keySizeInBits() / 8;172 size_t keySizeInBytes = this->keySizeInBytes(); 179 173 size_t publicKeySize = keySizeInBytes * 2 + 1; // 04 + X + Y per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf 180 174 size_t privateKeySize = keySizeInBytes * 3 + 1; // 04 + X + Y + D … … 218 212 break; 219 213 case CryptoKeyEC::NamedCurve::P521: 220 ASSERT_NOT_REACHED(); 221 oid = nullptr; 222 oidSize = 0; 214 oid = Secp521r1; 215 oidSize = sizeof(Secp521r1); 223 216 break; 224 217 } … … 233 226 // secp256r1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) curves(3) prime(1) 7 } 234 227 // secp384r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 34 } 228 // secp521r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 35 } 235 229 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportSpki(CryptoAlgorithmIdentifier identifier, NamedCurve curve, Vector<uint8_t>&& keyData, bool extractable, CryptoKeyUsageBitmap usages) 236 230 { … … 273 267 Vector<uint8_t> CryptoKeyEC::platformExportSpki() const 274 268 { 275 size_t expectedKeySize = keySizeInBits() / 4+ 1; // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf269 size_t expectedKeySize = 2 * keySizeInBytes() + 1; // Per Section 2.3.4 of http://www.secg.org/sec1-v2.pdf 276 270 Vector<uint8_t> keyBytes(expectedKeySize); 277 271 size_t keySize = keyBytes.size(); … … 285 279 size_t oidSize = getOID(namedCurve(), oid); 286 280 287 // SEQUENCE + length(1) + OID id-ecPublicKey + OID secp256r1/OID secp384r1 + BIT STRING + length(?) + InitialOctet + Key size281 // SEQUENCE + length(1) + OID id-ecPublicKey + OID secp256r1/OID secp384r1/OID secp521r1 + BIT STRING + length(?) + InitialOctet + Key size 288 282 size_t totalSize = sizeof(IdEcPublicKey) + oidSize + bytesNeededForEncodedLength(keySize + 1) + keySize + 4; 289 283 … … 343 337 index += bytesUsedToEncodedLength(keyData[index]); // Read length 344 338 345 if (keyData.size() < index + getKeySizeFromNamedCurve(curve) / 8) 339 size_t privateKeySize = keySizeInBytesFromNamedCurve(curve); 340 if (keyData.size() < index + privateKeySize) 346 341 return nullptr; 347 342 size_t privateKeyPos = index; 348 index += getKeySizeFromNamedCurve(curve) / 8+ 1; // Read privateKey, TaggedType1343 index += privateKeySize + 1; // Read privateKey, TaggedType1 349 344 if (keyData.size() < index + 1) 350 345 return nullptr; … … 358 353 if (!doesUncompressedPointMatchNamedCurve(curve, keyBinary.size())) 359 354 return nullptr; 360 keyBinary.append(keyData.data() + privateKeyPos, getKeySizeFromNamedCurve(curve) / 8);355 keyBinary.append(keyData.data() + privateKeyPos, privateKeySize); 361 356 362 357 CCECCryptorRef ccPrivateKey = nullptr; … … 369 364 Vector<uint8_t> CryptoKeyEC::platformExportPkcs8() const 370 365 { 371 size_t keySizeInBytes = keySizeInBits() / 8;366 size_t keySizeInBytes = this->keySizeInBytes(); 372 367 size_t expectedKeySize = keySizeInBytes * 3 + 1; // 04 + X + Y + D 373 368 Vector<uint8_t> keyBytes(expectedKeySize); … … 390 385 // SEQUENCE + length(?) + ecPrivateKeySize 391 386 size_t privateKeySize = bytesNeededForEncodedLength(ecPrivateKeySize) + ecPrivateKeySize + 1; 392 // VERSION + SEQUENCE + length(1) + OID id-ecPublicKey + OID secp256r1/OID secp384r1 + OCTET STRING + length(?) + privateKeySize387 // VERSION + SEQUENCE + length(1) + OID id-ecPublicKey + OID secp256r1/OID secp384r1/OID secp521r1 + OCTET STRING + length(?) + privateKeySize 393 388 size_t totalSize = sizeof(Version) + sizeof(IdEcPublicKey) + oidSize + bytesNeededForEncodedLength(privateKeySize) + privateKeySize + 3; 394 389
Note: See TracChangeset
for help on using the changeset viewer.