Changeset 215423 in webkit
- Timestamp:
- Apr 17, 2017 1:07:56 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 41 added
- 33 edited
- 10 copied
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r215414 r215423 1 2017-04-14 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebCrypto] Add support for ECDSA 4 https://bugs.webkit.org/show_bug.cgi?id=170789 5 <rdar://problem/31588604> 6 7 Reviewed by Brent Fulgham. 8 9 * crypto/subtle/ec-generate-key-malformed-parameters-expected.txt: 10 * crypto/subtle/ec-generate-key-malformed-parameters.html: 11 * crypto/subtle/ec-import-key-malformed-parameters-expected.txt: 12 * crypto/subtle/ec-import-key-malformed-parameters.html: 13 * crypto/subtle/ecdh-generate-export-key-pkcs8-p256-expected.txt: Renamed from LayoutTests/crypto/subtle/ecdh-generate-export-pkcs8-p256-expected.txt. 14 * crypto/subtle/ecdh-generate-export-key-pkcs8-p256.html: Renamed from LayoutTests/crypto/subtle/ecdh-generate-export-pkcs8-p256.html. 15 * crypto/subtle/ecdh-generate-export-key-pkcs8-p384-expected.txt: Renamed from LayoutTests/crypto/subtle/ecdh-generate-export-pkcs8-p384-expected.txt. 16 * crypto/subtle/ecdh-generate-export-key-pkcs8-p384.html: Renamed from LayoutTests/crypto/subtle/ecdh-generate-export-pkcs8-p384.html. 17 * crypto/subtle/ecdsa-generate-export-jwk-key-expected.txt: Added. 18 * crypto/subtle/ecdsa-generate-export-jwk-key.html: Added. 19 * crypto/subtle/ecdsa-generate-export-key-pkcs8-expected.txt: Added. 20 * crypto/subtle/ecdsa-generate-export-key-pkcs8.html: Added. 21 * crypto/subtle/ecdsa-generate-export-key-raw-expected.txt: Added. 22 * crypto/subtle/ecdsa-generate-export-key-raw.html: Added. 23 * crypto/subtle/ecdsa-generate-export-key-spki-expected.txt: Added. 24 * crypto/subtle/ecdsa-generate-export-key-spki.html: Added. 25 * crypto/subtle/ecdsa-generate-key-expected.txt: Added. 26 * crypto/subtle/ecdsa-generate-key-sign-verify-p256-expected.txt: Added. 27 * crypto/subtle/ecdsa-generate-key-sign-verify-p256.html: Added. 28 * crypto/subtle/ecdsa-generate-key-sign-verify-p384-expected.txt: Added. 29 * crypto/subtle/ecdsa-generate-key-sign-verify-p384.html: Added. 30 * crypto/subtle/ecdsa-generate-key.html: Added. 31 * crypto/subtle/ecdsa-import-jwk-private-key-expected.txt: Added. 32 * crypto/subtle/ecdsa-import-jwk-private-key.html: Added. 33 * crypto/subtle/ecdsa-import-jwk-public-key-alg-256-expected.txt: Added. 34 * crypto/subtle/ecdsa-import-jwk-public-key-alg-256.html: Added. 35 * crypto/subtle/ecdsa-import-jwk-public-key-alg-384-expected.txt: Added. 36 * crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html: Added. 37 * crypto/subtle/ecdsa-import-jwk-public-key-expected.txt: Added. 38 * crypto/subtle/ecdsa-import-jwk-public-key.html: Added. 39 * crypto/subtle/ecdsa-import-key-sign-p256-expected.txt: Added. 40 * crypto/subtle/ecdsa-import-key-sign-p256.html: Added. 41 * crypto/subtle/ecdsa-import-key-sign-p384-expected.txt: Added. 42 * crypto/subtle/ecdsa-import-key-sign-p384.html: Added. 43 * crypto/subtle/ecdsa-import-key-verify-p256-expected.txt: Added. 44 * crypto/subtle/ecdsa-import-key-verify-p256.html: Added. 45 * crypto/subtle/ecdsa-import-key-verify-p384-expected.txt: Added. 46 * crypto/subtle/ecdsa-import-key-verify-p384.html: Added. 47 * crypto/subtle/ecdsa-import-pkcs8-key-expected.txt: Added. 48 * crypto/subtle/ecdsa-import-pkcs8-key.html: Added. 49 * crypto/subtle/ecdsa-import-raw-key-expected.txt: Added. 50 * crypto/subtle/ecdsa-import-raw-key.html: Added. 51 * crypto/subtle/ecdsa-import-spki-key-expected.txt: Added. 52 * crypto/subtle/ecdsa-import-spki-key.html: Added. 53 * crypto/subtle/ecdsa-verify-malformed-parameters-expected.txt: Added. 54 * crypto/subtle/ecdsa-verify-malformed-parameters.html: Added. 55 * crypto/workers/subtle/ecdsa-import-key-sign-expected.txt: Added. 56 * crypto/workers/subtle/ecdsa-import-key-sign.html: Added. 57 * crypto/workers/subtle/ecdsa-import-key-verify-expected.txt: Added. 58 * crypto/workers/subtle/ecdsa-import-key-verify.html: Added. 59 * crypto/workers/subtle/resources/ecdsa-import-key-sign.js: Added. 60 * crypto/workers/subtle/resources/ecdsa-import-key-verify.js: Added. 61 1 62 2017-04-17 Youenn Fablet <youenn@apple.com> 2 63 -
trunk/LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters-expected.txt
r213489 r215423 18 18 PASS crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-256"}, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 19 19 PASS crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-256"}, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 20 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["encrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 21 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["decrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 22 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 23 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 24 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 25 PASS crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 20 26 PASS crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-521"}, extractable, ["deriveKey"]) rejected promise with NotSupportedError (DOM Exception 9): The algorithm is not supported. 21 27 PASS successfullyParsed is true -
trunk/LayoutTests/crypto/subtle/ec-generate-key-malformed-parameters.html
r213489 r215423 9 9 <div id="console"></div> 10 10 11 <script >11 <script type="text/javascript"> 12 12 description("Test generating an EC key pair with malformed-paramters."); 13 13 … … 30 30 shouldReject('crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-256"}, extractable, ["wrapKey"])'); 31 31 shouldReject('crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-256"}, extractable, ["unwrapKey"])'); 32 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["encrypt"])'); 33 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["decrypt"])'); 34 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["deriveKey"])'); 35 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["deriveBits"])'); 36 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["wrapKey"])'); 37 shouldReject('crypto.subtle.generateKey({name: "ecdsa", namedCurve: "P-256"}, extractable, ["unwrapKey"])'); 32 38 // Not supported NamedCurve 33 39 shouldReject('crypto.subtle.generateKey({name: "ecdh", namedCurve: "P-521"}, extractable, ["deriveKey"])'); -
trunk/LayoutTests/crypto/subtle/ec-import-key-malformed-parameters-expected.txt
r214074 r215423 7 7 PASS crypto.subtle.importKey("raw", rawP384Key, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 8 8 PASS crypto.subtle.importKey("raw", rawP256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 9 PASS crypto.subtle.importKey("raw", rawP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 9 10 PASS crypto.subtle.importKey("raw", rawP256Key, { name: "ECDH", namedCurve: "P-521" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 10 11 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. … … 15 16 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 16 17 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 18 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 19 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 20 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 21 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 22 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 23 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 24 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 25 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 26 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 27 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 28 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 29 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 30 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 31 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 32 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, alg: "ES384"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 33 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-384", x:x, y:y, alg: "ES256"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 17 34 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d, use: "sig"}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 35 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d, use: "enc"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 18 36 PASS crypto.subtle.importKey("jwk", {kty: "RSA", crv: "P-256", x:x, y:y}, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 19 37 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d, key_ops: ["sign", "verify"]}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. … … 29 47 PASS crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-384", x:x384, y:y384, d:d}, { name: "ECDH", namedCurve: "P-384" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 30 48 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 49 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 50 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 51 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 52 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 53 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 54 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 55 PASS crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 31 56 PASS crypto.subtle.importKey("spki", truncatedSpkiP256Key1, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 32 57 PASS crypto.subtle.importKey("spki", truncatedSpkiP256Key2, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. … … 49 74 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 50 75 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 76 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 77 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 78 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 79 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 80 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 81 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 82 PASS crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"]) rejected promise with SyntaxError (DOM Exception 12): A required parameter was missing or out-of-range. 51 83 PASS crypto.subtle.importKey("pkcs8", truncatedPkcs8P256Key1, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. 52 84 PASS crypto.subtle.importKey("pkcs8", truncatedPkcs8P256Key2, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"]) rejected promise with DataError (DOM Exception 30): Data provided to an operation does not meet requirements. -
trunk/LayoutTests/crypto/subtle/ec-import-key-malformed-parameters.html
r214074 r215423 9 9 <div id="console"></div> 10 10 11 <script >11 <script type="text/javascript"> 12 12 description("Test importing a EC key with malformed parameters"); 13 13 … … 55 55 shouldReject('crypto.subtle.importKey("raw", rawP256Key, { name: "ECDH", namedCurve: "P-384" }, extractable, [ ])'); 56 56 shouldReject('crypto.subtle.importKey("raw", rawP384Key, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ])'); 57 // Raw: Non-emptyusages57 // Raw: Wrong usages 58 58 shouldReject('crypto.subtle.importKey("raw", rawP256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 59 shouldReject('crypto.subtle.importKey("raw", rawP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"])'); 59 60 // Raw: Not support named curve 60 61 shouldReject('crypto.subtle.importKey("raw", rawP256Key, { name: "ECDH", namedCurve: "P-521" }, extractable, [ ])'); … … 67 68 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 68 69 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 70 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"])'); 71 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"])'); 72 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"])'); 73 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"])'); 74 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 75 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 76 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 77 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"])'); 78 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"])'); 79 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"])'); 80 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"])'); 81 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 82 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 83 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 84 // Jwk: Wrong alg 85 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, alg: "ES384"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"])'); 86 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-384", x:x, y:y, alg: "ES256"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"])'); 69 87 // Jwk: Wrong use 70 88 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d, use: "sig"}, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"])'); 89 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-256", x:x, y:y, d:d, use: "enc"}, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"])'); 71 90 // Jwk: Wrong kty 72 91 shouldReject('crypto.subtle.importKey("jwk", {kty: "RSA", crv: "P-256", x:x, y:y}, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ])'); … … 89 108 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-384", x:x, y:y384}, { name: "ECDH", namedCurve: "P-384" }, extractable, [ ])'); 90 109 shouldReject('crypto.subtle.importKey("jwk", {kty: "EC", crv: "P-384", x:x384, y:y384, d:d}, { name: "ECDH", namedCurve: "P-384" }, extractable, [ ])'); 91 // Spki: Non-emptyusages110 // Spki: Wrong usages 92 111 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 112 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"])'); 113 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"])'); 114 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["sign"])'); 115 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"])'); 116 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 117 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 118 shouldReject('crypto.subtle.importKey("spki", spkiP256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 93 119 // Spki: Truncated keys 94 120 shouldReject('crypto.subtle.importKey("spki", truncatedSpkiP256Key1, { name: "ECDH", namedCurve: "P-256" }, extractable, [ ])'); … … 115 141 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 116 142 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDH", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 143 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["encrypt"])'); 144 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["decrypt"])'); 145 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["verify"])'); 146 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveKey"])'); 147 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["deriveBits"])'); 148 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["wrapKey"])'); 149 shouldReject('crypto.subtle.importKey("pkcs8", pkcs8P256Key, { name: "ECDSA", namedCurve: "P-256" }, extractable, ["unwrapKey"])'); 117 150 // Pkcs8: Truncated keys 118 151 shouldReject('crypto.subtle.importKey("pkcs8", truncatedPkcs8P256Key1, { name: "ECDH", namedCurve: "P-256" }, extractable, ["deriveKey"])'); -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-pkcs8-expected.txt
r215422 r215423 1 Test exporting a P-256 ECDHprivate key with PKCS8 format.1 Test exporting an ECDSA private key with PKCS8 format. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-pkcs8.html
r215422 r215423 9 9 <div id="console"></div> 10 10 11 <script >12 description("Test exporting a P-256 ECDHprivate key with PKCS8 format.");11 <script type="text/javascript"> 12 description("Test exporting an ECDSA private key with PKCS8 format."); 13 13 14 14 jsTestIsAsync = true; 15 15 16 16 var algorithmKeyGen = { 17 name: "ECD H",17 name: "ECDSA", 18 18 namedCurve: "P-256" 19 19 }; … … 22 22 var keyPair; 23 23 debug("Generating a key pair..."); 24 crypto.subtle.generateKey(algorithmKeyGen, extractable, [" deriveKey", "deriveBits"]).then(function(result) {24 crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) { 25 25 keyPair = result; 26 26 debug("Exporting the public key..."); -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-raw-expected.txt
r215422 r215423 1 Test exporting a P-384 ECDH private key with PKCS8format.1 Test exporting an ECDSA public key with raw format. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 6 6 Generating a key pair... 7 7 Exporting the public key... 8 PASS p rivateKey.byteLength is 1858 PASS publicKey.byteLength is 65 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-raw.html
r215422 r215423 9 9 <div id="console"></div> 10 10 11 <script >12 description("Test exporting a P-256 ECDH private key with PKCS8format.");11 <script type="text/javascript"> 12 description("Test exporting an ECDSA public key with raw format."); 13 13 14 14 jsTestIsAsync = true; 15 15 16 16 var algorithmKeyGen = { 17 name: "ECD H",17 name: "ECDSA", 18 18 namedCurve: "P-256" 19 19 }; … … 22 22 var keyPair; 23 23 debug("Generating a key pair..."); 24 crypto.subtle.generateKey(algorithmKeyGen, extractable, [" deriveKey", "deriveBits"]).then(function(result) {24 crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) { 25 25 keyPair = result; 26 26 debug("Exporting the public key..."); 27 return crypto.subtle.exportKey(" pkcs8", keyPair.privateKey);27 return crypto.subtle.exportKey("raw", keyPair.publicKey); 28 28 }).then(function(result) { 29 p rivateKey = result;29 publicKey = result; 30 30 31 shouldBe("p rivateKey.byteLength", "138");31 shouldBe("publicKey.byteLength", "65"); 32 32 33 33 finishJSTest(); -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-spki-expected.txt
r215422 r215423 1 Test exporting a P-384 ECDH private key with PKCS8format.1 Test exporting an ECDSA public key with SPKI format. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 6 6 Generating a key pair... 7 7 Exporting the public key... 8 PASS p rivateKey.byteLength is 1858 PASS publicKey.byteLength is 91 9 9 PASS successfullyParsed is true 10 10 -
trunk/LayoutTests/crypto/subtle/ecdsa-generate-export-key-spki.html
r215422 r215423 9 9 <div id="console"></div> 10 10 11 <script >12 description("Test exporting a P-256 ECDH private key with PKCS8format.");11 <script type="text/javascript"> 12 description("Test exporting an ECDSA public key with SPKI format."); 13 13 14 14 jsTestIsAsync = true; 15 15 16 16 var algorithmKeyGen = { 17 name: "ECD H",17 name: "ECDSA", 18 18 namedCurve: "P-256" 19 19 }; … … 22 22 var keyPair; 23 23 debug("Generating a key pair..."); 24 crypto.subtle.generateKey(algorithmKeyGen, extractable, [" deriveKey", "deriveBits"]).then(function(result) {24 crypto.subtle.generateKey(algorithmKeyGen, extractable, ["sign", "verify"]).then(function(result) { 25 25 keyPair = result; 26 26 debug("Exporting the public key..."); 27 return crypto.subtle.exportKey(" pkcs8", keyPair.privateKey);27 return crypto.subtle.exportKey("spki", keyPair.publicKey); 28 28 }).then(function(result) { 29 p rivateKey = result;29 publicKey = result; 30 30 31 shouldBe("p rivateKey.byteLength", "138");31 shouldBe("publicKey.byteLength", "91"); 32 32 33 33 finishJSTest(); -
trunk/LayoutTests/imported/w3c/ChangeLog
r215419 r215423 1 2017-04-14 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebCrypto] Add support for ECDSA 4 https://bugs.webkit.org/show_bug.cgi?id=170789 5 <rdar://problem/31588604> 6 7 Reviewed by Brent Fulgham. 8 9 * web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.worker-expected.txt: 10 * web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.worker-expected.txt: 11 * web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDSA-expected.txt: 12 * web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDSA-expected.txt: 13 * web-platform-tests/WebCryptoAPI/import_export/ec_importKey.worker-expected.txt: 14 * web-platform-tests/WebCryptoAPI/import_export/test_ec_importKey-expected.txt: 15 * web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.worker-expected.txt: 16 * web-platform-tests/WebCryptoAPI/sign_verify/hmac.worker-expected.txt: 17 * web-platform-tests/WebCryptoAPI/sign_verify/test_ecdsa-expected.txt: 18 * web-platform-tests/WebCryptoAPI/sign_verify/test_hmac-expected.txt: 19 1 20 2017-04-17 Tim Horton <timothy_horton@apple.com> 2 21 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/failures_ECDSA.worker-expected.txt
r212124 r215423 324 324 PASS Bad algorithm: generateKey({name: EC, namedCurve: P521}, RED, [decrypt, sign, deriveBits, decrypt, sign, deriveBits]) 325 325 PASS Bad algorithm: generateKey({name: EC, namedCurve: P521}, 7, [decrypt, sign, deriveBits, decrypt, sign, deriveBits]) 326 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 327 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 328 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 329 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 330 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 331 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 332 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 333 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 334 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 335 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 336 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 337 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 338 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 339 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 340 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 341 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 342 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 343 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 344 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 345 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 346 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 347 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 348 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 349 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 350 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 351 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 352 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 353 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 354 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 355 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 356 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 357 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 358 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 359 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 360 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 361 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 362 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 363 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 364 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 365 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 366 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 367 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 368 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 369 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 370 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 371 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 372 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 373 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 374 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 375 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 376 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 377 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 378 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 379 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 380 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 381 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 382 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 383 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 384 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 385 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 386 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 387 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 388 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 389 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 390 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 391 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 392 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 393 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 394 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 395 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 396 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 397 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 326 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [encrypt]) 327 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, encrypt]) 328 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, encrypt]) 329 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, encrypt]) 330 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [decrypt]) 331 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, decrypt]) 332 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, decrypt]) 333 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, decrypt]) 334 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [wrapKey]) 335 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, wrapKey]) 336 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, wrapKey]) 337 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, wrapKey]) 338 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [unwrapKey]) 339 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, unwrapKey]) 340 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, unwrapKey]) 341 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, unwrapKey]) 342 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveKey]) 343 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveKey]) 344 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveKey]) 345 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveKey]) 346 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveBits]) 347 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveBits]) 348 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveBits]) 349 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveBits]) 350 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [encrypt]) 351 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, encrypt]) 352 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, encrypt]) 353 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, encrypt]) 354 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [decrypt]) 355 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, decrypt]) 356 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, decrypt]) 357 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, decrypt]) 358 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [wrapKey]) 359 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, wrapKey]) 360 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, wrapKey]) 361 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, wrapKey]) 362 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [unwrapKey]) 363 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, unwrapKey]) 364 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, unwrapKey]) 365 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, unwrapKey]) 366 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveKey]) 367 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveKey]) 368 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveKey]) 369 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveKey]) 370 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveBits]) 371 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveBits]) 372 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveBits]) 373 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveBits]) 374 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [encrypt]) 375 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, encrypt]) 376 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, encrypt]) 377 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, encrypt]) 378 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [decrypt]) 379 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, decrypt]) 380 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, decrypt]) 381 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, decrypt]) 382 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [wrapKey]) 383 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, wrapKey]) 384 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, wrapKey]) 385 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, wrapKey]) 386 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [unwrapKey]) 387 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, unwrapKey]) 388 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, unwrapKey]) 389 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, unwrapKey]) 390 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveKey]) 391 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveKey]) 392 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveKey]) 393 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveKey]) 394 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveBits]) 395 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveBits]) 396 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveBits]) 397 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveBits]) 398 398 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: P-512}, false, [sign]) 399 399 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: P-512}, true, [sign]) … … 412 412 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: Curve25519}, false, [sign, verify, sign, sign, verify]) 413 413 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: Curve25519}, true, [sign, verify, sign, sign, verify]) 414 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 415 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 416 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 417 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 414 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, false, []) 415 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, true, []) 416 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) 417 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) 418 418 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 419 419 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/successes_ECDSA.worker-expected.txt
r212124 r215423 1 1 2 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 3 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 4 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 5 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 6 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 7 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 8 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 9 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 10 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 11 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 12 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 13 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 14 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code15 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code16 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code17 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code18 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code19 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code20 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 21 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 22 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 23 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 24 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 25 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 26 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 27 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 28 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 29 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 30 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 31 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 32 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code33 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code34 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code35 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code36 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code37 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code38 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 39 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 40 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 41 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 42 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 43 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 44 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 45 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 46 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 47 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 48 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 49 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 50 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code51 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code52 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code53 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code54 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code55 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code2 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign]) 3 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign]) 4 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [verify, sign]) 5 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign]) 6 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 7 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 8 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign]) 9 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign]) 10 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [verify, sign]) 11 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign]) 12 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): The algorithm is not supported Reached unreachable code 20 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) 21 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) 22 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [verify, sign]) 23 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [verify, sign]) 24 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 25 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 26 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign]) 27 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign]) 28 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [verify, sign]) 29 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [verify, sign]) 30 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): The algorithm is not supported Reached unreachable code 38 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) 39 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) 40 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [verify, sign]) 41 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [verify, sign]) 42 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 43 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 44 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign]) 45 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign]) 46 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [verify, sign]) 47 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [verify, sign]) 48 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): 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 (DOM Exception 9): The algorithm is not supported Reached unreachable code 56 56 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/test_failures_ECDSA-expected.txt
r212124 r215423 326 326 PASS Bad algorithm: generateKey({name: EC, namedCurve: P521}, RED, [decrypt, sign, deriveBits, decrypt, sign, deriveBits]) 327 327 PASS Bad algorithm: generateKey({name: EC, namedCurve: P521}, 7, [decrypt, sign, deriveBits, decrypt, sign, deriveBits]) 328 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 329 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 330 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 331 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 332 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 333 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 334 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 335 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 336 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 337 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 338 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 339 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 340 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 341 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 342 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 343 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 344 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 345 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 346 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 347 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 348 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 349 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 350 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 351 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 352 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 353 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 354 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 355 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 356 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 357 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 358 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 359 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 360 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 361 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 362 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 363 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 364 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 365 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 366 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 367 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 368 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 369 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 370 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 371 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 372 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 373 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 374 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 375 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 376 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 377 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 378 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 379 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, encrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 380 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 381 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 382 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 383 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, decrypt]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 384 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 385 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 386 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 387 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, wrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 388 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 389 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 390 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 391 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, unwrapKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 392 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 393 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 394 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 395 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveKey]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 396 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 397 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 398 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 399 FAIL Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveBits]) assert_equals: Bad usages not supported expected "SyntaxError" but got "NotSupportedError" 328 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [encrypt]) 329 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, encrypt]) 330 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, encrypt]) 331 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, encrypt]) 332 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [decrypt]) 333 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, decrypt]) 334 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, decrypt]) 335 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, decrypt]) 336 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [wrapKey]) 337 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, wrapKey]) 338 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, wrapKey]) 339 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, wrapKey]) 340 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [unwrapKey]) 341 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, unwrapKey]) 342 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, unwrapKey]) 343 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, unwrapKey]) 344 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveKey]) 345 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveKey]) 346 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveKey]) 347 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveKey]) 348 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [deriveBits]) 349 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, deriveBits]) 350 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign, deriveBits]) 351 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify, deriveBits]) 352 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [encrypt]) 353 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, encrypt]) 354 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, encrypt]) 355 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, encrypt]) 356 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [decrypt]) 357 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, decrypt]) 358 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, decrypt]) 359 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, decrypt]) 360 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [wrapKey]) 361 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, wrapKey]) 362 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, wrapKey]) 363 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, wrapKey]) 364 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [unwrapKey]) 365 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, unwrapKey]) 366 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, unwrapKey]) 367 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, unwrapKey]) 368 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveKey]) 369 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveKey]) 370 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveKey]) 371 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveKey]) 372 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [deriveBits]) 373 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, deriveBits]) 374 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign, deriveBits]) 375 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify, deriveBits]) 376 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [encrypt]) 377 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, encrypt]) 378 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, encrypt]) 379 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, encrypt]) 380 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [decrypt]) 381 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, decrypt]) 382 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, decrypt]) 383 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, decrypt]) 384 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [wrapKey]) 385 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, wrapKey]) 386 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, wrapKey]) 387 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, wrapKey]) 388 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [unwrapKey]) 389 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, unwrapKey]) 390 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, unwrapKey]) 391 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, unwrapKey]) 392 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveKey]) 393 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveKey]) 394 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveKey]) 395 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveKey]) 396 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [deriveBits]) 397 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, deriveBits]) 398 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign, deriveBits]) 399 PASS Bad usages: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify, deriveBits]) 400 400 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: P-512}, false, [sign]) 401 401 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: P-512}, true, [sign]) … … 414 414 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: Curve25519}, false, [sign, verify, sign, sign, verify]) 415 415 PASS Bad algorithm property: generateKey({name: ECDSA, namedCurve: Curve25519}, true, [sign, verify, sign, sign, verify]) 416 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 417 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 418 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 419 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 416 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, false, []) 417 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-256}, true, []) 418 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, false, []) 419 PASS Empty usages: generateKey({name: ECDSA, namedCurve: P-384}, true, []) 420 420 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, false, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" 421 421 FAIL Empty usages: generateKey({name: ECDSA, namedCurve: P-521}, true, []) assert_equals: Empty usages not supported expected "SyntaxError" but got "NotSupportedError" -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/generateKey/test_successes_ECDSA-expected.txt
r212124 r215423 4 4 5 5 6 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 7 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 8 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 9 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 10 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 11 FAIL Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 12 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 13 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 14 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 15 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 16 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 17 FAIL Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 18 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code19 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code20 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code21 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code22 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code23 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code24 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 25 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 26 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 27 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 28 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 29 FAIL Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 30 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 31 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 32 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 33 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 34 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 35 FAIL Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 36 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code37 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code38 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code39 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code40 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code41 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code42 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 43 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 44 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 45 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 46 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 47 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 48 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 49 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 50 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 51 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 52 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 53 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 54 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code55 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code56 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code57 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code58 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code59 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code6 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign]) 7 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign]) 8 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [verify, sign]) 9 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [verify, sign]) 10 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 11 PASS Success: generateKey({name: ECDSA, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 12 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign]) 13 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign]) 14 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [verify, sign]) 15 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [verify, sign]) 16 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 17 PASS Success: generateKey({name: ECDSA, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 18 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 19 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 20 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 21 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 22 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 23 FAIL Success: generateKey({name: ECDSA, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 24 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign]) 25 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign]) 26 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [verify, sign]) 27 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [verify, sign]) 28 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 29 PASS Success: generateKey({name: ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 30 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign]) 31 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign]) 32 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [verify, sign]) 33 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [verify, sign]) 34 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 35 PASS Success: generateKey({name: ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 36 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 37 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 38 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 39 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 40 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 41 FAIL Success: generateKey({name: ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 42 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign]) 43 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign]) 44 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [verify, sign]) 45 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [verify, sign]) 46 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, false, [sign, verify, sign, sign, verify]) 47 PASS Success: generateKey({name: Ecdsa, namedCurve: P-256}, true, [sign, verify, sign, sign, verify]) 48 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign]) 49 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign]) 50 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [verify, sign]) 51 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [verify, sign]) 52 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, false, [sign, verify, sign, sign, verify]) 53 PASS Success: generateKey({name: Ecdsa, namedCurve: P-384}, true, [sign, verify, sign, sign, verify]) 54 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 55 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 56 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 57 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [verify, sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 58 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, false, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 59 FAIL Success: generateKey({name: Ecdsa, namedCurve: P-521}, true, [sign, verify, sign, sign, verify]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The algorithm is not supported Reached unreachable code 60 60 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/ec_importKey.worker-expected.txt
r214074 r215423 1 1 2 FAIL Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 3 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 4 FAIL Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 5 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 6 FAIL Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 7 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 8 FAIL Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 9 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 10 FAIL Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 11 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 12 FAIL Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 13 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 14 FAIL Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 15 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 16 FAIL Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 17 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 18 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code19 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code20 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code21 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: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code22 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code23 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code24 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code25 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: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code2 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, true, []) 3 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, true, []) 4 PASS Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, true, [sign]) 5 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, true, [sign]) 6 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, false, []) 7 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, false, []) 8 PASS Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, false, [sign]) 9 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, false, [sign]) 10 PASS Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, true, []) 11 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, true, []) 12 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, true, [sign]) 13 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, true, [sign]) 14 PASS Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, false, []) 15 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, false, []) 16 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): Data provided to an operation does not meet requirements Reached unreachable code 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, []) -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/import_export/test_ec_importKey-expected.txt
r214074 r215423 1 1 2 FAIL Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 3 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 4 FAIL Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 5 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 6 FAIL Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 7 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 8 FAIL Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 9 FAIL Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 10 FAIL Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 11 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 12 FAIL Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 13 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 14 FAIL Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 15 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 16 FAIL Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 17 FAIL Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported. Reached unreachable code 18 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code19 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, true, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code20 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, true, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code21 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: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code22 FAIL Good parameters: P-521 bits (spki, buffer(158), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code23 FAIL Good parameters: P-521 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-521}, false, []) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code24 FAIL Good parameters: P-521 bits (pkcs8, buffer(241), {name: ECDSA, namedCurve: P-521}, false, [sign]) assert_unreached: Threw an unexpected error: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code25 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: NotSupportedError (DOM Exception 9): The operation is not supported.Reached unreachable code2 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, true, []) 3 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, true, []) 4 PASS Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, true, [sign]) 5 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, true, [sign]) 6 PASS Good parameters: P-256 bits (spki, buffer(91), {name: ECDSA, namedCurve: P-256}, false, []) 7 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-256}, false, []) 8 PASS Good parameters: P-256 bits (pkcs8, buffer(138), {name: ECDSA, namedCurve: P-256}, false, [sign]) 9 PASS Good parameters: P-256 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-256}, false, [sign]) 10 PASS Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, true, []) 11 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, true, []) 12 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, true, [sign]) 13 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y, d), {name: ECDSA, namedCurve: P-384}, true, [sign]) 14 PASS Good parameters: P-384 bits (spki, buffer(120), {name: ECDSA, namedCurve: P-384}, false, []) 15 PASS Good parameters: P-384 bits (jwk, object(kty, crv, x, y), {name: ECDSA, namedCurve: P-384}, false, []) 16 PASS Good parameters: P-384 bits (pkcs8, buffer(185), {name: ECDSA, namedCurve: P-384}, false, [sign]) 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): 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 (DOM Exception 30): Data provided to an operation does not meet requirements Reached unreachable code 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, []) -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/ecdsa.worker-expected.txt
r212124 r215423 1 1 2 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 3 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 4 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 5 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 6 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 7 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 8 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 9 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 10 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code11 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code12 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code13 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code14 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 15 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 16 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 17 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 18 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 19 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 20 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 21 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 22 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: '' The operation is not supported.'' Reached unreachable code23 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: '' The operation is not supported.'' Reached unreachable code24 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: '' The operation is not supported.'' Reached unreachable code25 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: '' The operation is not supported.'' Reached unreachable code26 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 27 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 28 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 29 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 30 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 31 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 32 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 33 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 34 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: '' The operation is not supported.'' Reached unreachable code35 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: '' The operation is not supported.'' Reached unreachable code36 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: '' The operation is not supported.'' Reached unreachable code37 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: '' The operation is not supported.'' Reached unreachable code38 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 39 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 40 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 41 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 42 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 43 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 44 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 45 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 46 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: '' The operation is not supported.'' Reached unreachable code47 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: '' The operation is not supported.'' Reached unreachable code48 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: '' The operation is not supported.'' Reached unreachable code49 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: '' The operation is not supported.'' Reached unreachable code50 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 51 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 52 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 53 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 54 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 55 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 56 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 57 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 58 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: '' The operation is not supported.'' Reached unreachable code59 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: '' The operation is not supported.'' Reached unreachable code60 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: '' The operation is not supported.'' Reached unreachable code61 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: '' The operation is not supported.'' Reached unreachable code62 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 63 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 64 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 65 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 66 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 67 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 68 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 69 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 70 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code71 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code72 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code73 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code74 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 75 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 76 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 77 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 78 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 79 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 80 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 81 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 82 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code83 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code84 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code85 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code86 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 87 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 88 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 89 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 90 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 91 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 92 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 93 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 94 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: ''The operation is not supported.'' Reached unreachable code 95 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: ''The operation is not supported.'' Reached unreachable code 96 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: ''The operation is not supported.'' Reached unreachable code 97 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: ''The operation is not supported.'' Reached unreachable code 98 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 99 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 100 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 101 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 102 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 103 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 104 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 105 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 106 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: ''The operation is not supported.'' Reached unreachable code 107 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: ''The operation is not supported.'' Reached unreachable code 108 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: ''The operation is not supported.'' Reached unreachable code 109 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: ''The operation is not supported.'' Reached unreachable code 110 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code111 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code112 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code113 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code114 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 115 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 116 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 117 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 118 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: ''The operation is not supported.'' Reached unreachable code 119 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: ''The operation is not supported.'' Reached unreachable code 120 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: ''The operation is not supported.'' Reached unreachable code 121 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: ''The operation is not supported.'' Reached unreachable code 122 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code123 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code124 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code125 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code126 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 127 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 128 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 129 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 130 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: ''The operation is not supported.'' Reached unreachable code 131 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: ''The operation is not supported.'' Reached unreachable code 132 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: ''The operation is not supported.'' Reached unreachable code 133 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: ''The operation is not supported.'' Reached unreachable code 134 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code135 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code136 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code137 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code138 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 139 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 140 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 141 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 142 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: ''The operation is not supported.'' Reached unreachable code 143 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: ''The operation is not supported.'' Reached unreachable code 144 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: ''The operation is not supported.'' Reached unreachable code 145 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: ''The operation is not supported.'' Reached unreachable code 146 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code147 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code148 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code149 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code150 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 151 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 152 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 153 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 154 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: ''The operation is not supported.'' Reached unreachable code 155 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: ''The operation is not supported.'' Reached unreachable code 156 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: ''The operation is not supported.'' Reached unreachable code 157 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: ''The operation is not supported.'' Reached unreachable code 158 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code159 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code160 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code161 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code162 FAIL importVectorKeys step: ECDSA P- 384 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code163 FAIL importVectorKeys step: ECDSA P- 384 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code164 FAIL importVectorKeys step: ECDSA P- 384 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code165 FAIL importVectorKeys step: ECDSA P- 384 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code166 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: '' The operation is not supported.'' Reached unreachable code167 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: '' The operation is not supported.'' Reached unreachable code168 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: '' The operation is not supported.'' Reached unreachable code169 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: '' The operation is not supported.'' Reached unreachable code2 PASS ECDSA P-256 with SHA-1 verification 3 PASS ECDSA P-256 with SHA-256 verification 4 PASS ECDSA P-256 with SHA-384 verification 5 PASS ECDSA P-256 with SHA-512 verification 6 PASS ECDSA P-384 with SHA-1 verification 7 PASS ECDSA P-384 with SHA-256 verification 8 PASS ECDSA P-384 with SHA-384 verification 9 PASS ECDSA P-384 with SHA-512 verification 10 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 11 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 12 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 13 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 14 PASS ECDSA P-256 with SHA-1 verification with altered signature after call 15 PASS ECDSA P-256 with SHA-256 verification with altered signature after call 16 PASS ECDSA P-256 with SHA-384 verification with altered signature after call 17 PASS ECDSA P-256 with SHA-512 verification with altered signature after call 18 PASS ECDSA P-384 with SHA-1 verification with altered signature after call 19 PASS ECDSA P-384 with SHA-256 verification with altered signature after call 20 PASS ECDSA P-384 with SHA-384 verification with altered signature after call 21 PASS ECDSA P-384 with SHA-512 verification with altered signature after call 22 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 23 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 24 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 25 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 26 PASS ECDSA P-256 with SHA-1 with altered plaintext after call 27 PASS ECDSA P-256 with SHA-256 with altered plaintext after call 28 PASS ECDSA P-256 with SHA-384 with altered plaintext after call 29 PASS ECDSA P-256 with SHA-512 with altered plaintext after call 30 PASS ECDSA P-384 with SHA-1 with altered plaintext after call 31 PASS ECDSA P-384 with SHA-256 with altered plaintext after call 32 PASS ECDSA P-384 with SHA-384 with altered plaintext after call 33 PASS ECDSA P-384 with SHA-512 with altered plaintext after call 34 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 35 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 36 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 37 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 38 PASS ECDSA P-256 with SHA-1 using privateKey to verify 39 PASS ECDSA P-256 with SHA-256 using privateKey to verify 40 PASS ECDSA P-256 with SHA-384 using privateKey to verify 41 PASS ECDSA P-256 with SHA-512 using privateKey to verify 42 PASS ECDSA P-384 with SHA-1 using privateKey to verify 43 PASS ECDSA P-384 with SHA-256 using privateKey to verify 44 PASS ECDSA P-384 with SHA-384 using privateKey to verify 45 PASS ECDSA P-384 with SHA-512 using privateKey to verify 46 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 47 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 48 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 49 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 50 PASS ECDSA P-256 with SHA-1 using publicKey to sign 51 PASS ECDSA P-256 with SHA-256 using publicKey to sign 52 PASS ECDSA P-256 with SHA-384 using publicKey to sign 53 PASS ECDSA P-256 with SHA-512 using publicKey to sign 54 PASS ECDSA P-384 with SHA-1 using publicKey to sign 55 PASS ECDSA P-384 with SHA-256 using publicKey to sign 56 PASS ECDSA P-384 with SHA-384 using publicKey to sign 57 PASS ECDSA P-384 with SHA-512 using publicKey to sign 58 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 59 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 60 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 61 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 62 PASS ECDSA P-256 with SHA-1 no verify usage 63 PASS ECDSA P-256 with SHA-256 no verify usage 64 PASS ECDSA P-256 with SHA-384 no verify usage 65 PASS ECDSA P-256 with SHA-512 no verify usage 66 PASS ECDSA P-384 with SHA-1 no verify usage 67 PASS ECDSA P-384 with SHA-256 no verify usage 68 PASS ECDSA P-384 with SHA-384 no verify usage 69 PASS ECDSA P-384 with SHA-512 no verify usage 70 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 code 71 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 code 72 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 code 73 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 code 74 PASS ECDSA P-256 with SHA-1 round trip 75 PASS ECDSA P-256 with SHA-256 round trip 76 PASS ECDSA P-256 with SHA-384 round trip 77 PASS ECDSA P-256 with SHA-512 round trip 78 PASS ECDSA P-384 with SHA-1 round trip 79 PASS ECDSA P-384 with SHA-256 round trip 80 PASS ECDSA P-384 with SHA-384 round trip 81 PASS ECDSA P-384 with SHA-512 round trip 82 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 83 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 84 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 85 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 86 PASS ECDSA P-256 with SHA-1 signing with wrong algorithm name 87 PASS ECDSA P-256 with SHA-256 signing with wrong algorithm name 88 PASS ECDSA P-256 with SHA-384 signing with wrong algorithm name 89 PASS ECDSA P-256 with SHA-512 signing with wrong algorithm name 90 PASS ECDSA P-384 with SHA-1 signing with wrong algorithm name 91 PASS ECDSA P-384 with SHA-256 signing with wrong algorithm name 92 PASS ECDSA P-384 with SHA-384 signing with wrong algorithm name 93 PASS ECDSA P-384 with SHA-512 signing with wrong algorithm name 94 PASS ECDSA P-256 with SHA-1 verifying with wrong algorithm name 95 PASS ECDSA P-256 with SHA-256 verifying with wrong algorithm name 96 PASS ECDSA P-256 with SHA-384 verifying with wrong algorithm name 97 PASS ECDSA P-256 with SHA-512 verifying with wrong algorithm name 98 PASS ECDSA P-384 with SHA-1 verifying with wrong algorithm name 99 PASS ECDSA P-384 with SHA-256 verifying with wrong algorithm name 100 PASS ECDSA P-384 with SHA-384 verifying with wrong algorithm name 101 PASS ECDSA P-384 with SHA-512 verifying with wrong algorithm name 102 PASS ECDSA P-256 with SHA-1 verification failure due to altered signature 103 PASS ECDSA P-256 with SHA-256 verification failure due to altered signature 104 PASS ECDSA P-256 with SHA-384 verification failure due to altered signature 105 PASS ECDSA P-256 with SHA-512 verification failure due to altered signature 106 PASS ECDSA P-384 with SHA-1 verification failure due to altered signature 107 PASS ECDSA P-384 with SHA-256 verification failure due to altered signature 108 PASS ECDSA P-384 with SHA-384 verification failure due to altered signature 109 PASS ECDSA P-384 with SHA-512 verification failure due to altered signature 110 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 code 111 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 code 112 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 code 113 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 code 114 PASS ECDSA P-256 with SHA-1 verification failure due to wrong hash 115 PASS ECDSA P-256 with SHA-256 verification failure due to wrong hash 116 PASS ECDSA P-256 with SHA-384 verification failure due to wrong hash 117 PASS ECDSA P-256 with SHA-512 verification failure due to wrong hash 118 PASS ECDSA P-384 with SHA-1 verification failure due to wrong hash 119 PASS ECDSA P-384 with SHA-256 verification failure due to wrong hash 120 PASS ECDSA P-384 with SHA-384 verification failure due to wrong hash 121 PASS ECDSA P-384 with SHA-512 verification failure due to wrong hash 122 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 123 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 124 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 125 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 126 PASS ECDSA P-256 with SHA-1 verification failure due to bad hash name 127 PASS ECDSA P-256 with SHA-256 verification failure due to bad hash name 128 PASS ECDSA P-256 with SHA-384 verification failure due to bad hash name 129 PASS ECDSA P-256 with SHA-512 verification failure due to bad hash name 130 PASS ECDSA P-384 with SHA-1 verification failure due to bad hash name 131 PASS ECDSA P-384 with SHA-256 verification failure due to bad hash name 132 PASS ECDSA P-384 with SHA-384 verification failure due to bad hash name 133 PASS ECDSA P-384 with SHA-512 verification failure due to bad hash name 134 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 code 135 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 code 136 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 code 137 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 code 138 PASS ECDSA P-256 with SHA-1 verification failure due to shortened signature 139 PASS ECDSA P-256 with SHA-256 verification failure due to shortened signature 140 PASS ECDSA P-256 with SHA-384 verification failure due to shortened signature 141 PASS ECDSA P-256 with SHA-512 verification failure due to shortened signature 142 PASS ECDSA P-384 with SHA-1 verification failure due to shortened signature 143 PASS ECDSA P-384 with SHA-256 verification failure due to shortened signature 144 PASS ECDSA P-384 with SHA-384 verification failure due to shortened signature 145 PASS ECDSA P-384 with SHA-512 verification failure due to shortened signature 146 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 code 147 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 code 148 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 code 149 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 code 150 PASS ECDSA P-256 with SHA-1 verification failure due to altered plaintext 151 PASS ECDSA P-256 with SHA-256 verification failure due to altered plaintext 152 PASS ECDSA P-256 with SHA-384 verification failure due to altered plaintext 153 PASS ECDSA P-256 with SHA-512 verification failure due to altered plaintext 154 PASS ECDSA P-384 with SHA-1 verification failure due to altered plaintext 155 PASS ECDSA P-384 with SHA-256 verification failure due to altered plaintext 156 PASS ECDSA P-384 with SHA-384 verification failure due to altered plaintext 157 PASS ECDSA P-384 with SHA-512 verification failure due to altered plaintext 158 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 159 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 160 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 161 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 162 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 163 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 164 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 165 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 166 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 167 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 168 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 169 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 170 170 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/hmac.worker-expected.txt
r212124 r215423 1 1 2 FAIL generate wrong key step: HMAC with SHA-1 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-1 failed: 'The operation is not supported.' Reached unreachable code3 FAIL generate wrong key step: HMAC with SHA-256 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-256 failed: 'The operation is not supported.' Reached unreachable code4 FAIL generate wrong key step: HMAC with SHA-384 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-384 failed: 'The operation is not supported.' Reached unreachable code5 FAIL generate wrong key step: HMAC with SHA-512 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-512 failed: 'The operation is not supported.' Reached unreachable code6 FAIL generate wrong key step: HMAC with SHA-1 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-1 failed: 'The operation is not supported.' Reached unreachable code7 FAIL generate wrong key step: HMAC with SHA-256 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-256 failed: 'The operation is not supported.' Reached unreachable code8 FAIL generate wrong key step: HMAC with SHA-384 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-384 failed: 'The operation is not supported.' Reached unreachable code9 FAIL generate wrong key step: HMAC with SHA-512 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-512 failed: 'The operation is not supported.' Reached unreachable code10 2 PASS HMAC with SHA-1 verification 11 3 PASS HMAC with SHA-256 verification … … 28 20 PASS HMAC with SHA-384 round trip 29 21 PASS HMAC with SHA-512 round trip 22 PASS HMAC with SHA-1 signing with wrong algorithm name 23 PASS HMAC with SHA-256 signing with wrong algorithm name 24 PASS HMAC with SHA-384 signing with wrong algorithm name 25 PASS HMAC with SHA-512 signing with wrong algorithm name 26 PASS HMAC with SHA-1 verifying with wrong algorithm name 27 PASS HMAC with SHA-256 verifying with wrong algorithm name 28 PASS HMAC with SHA-384 verifying with wrong algorithm name 29 PASS HMAC with SHA-512 verifying with wrong algorithm name 30 30 PASS HMAC with SHA-1 verification failure due to wrong plaintext 31 31 PASS HMAC with SHA-256 verification failure due to wrong plaintext -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/test_ecdsa-expected.txt
r212124 r215423 2 2 3 3 4 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 5 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 6 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 7 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 8 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 9 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 10 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 11 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 12 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code13 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code14 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code15 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 verification assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code16 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 17 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 18 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 19 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 20 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 21 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 22 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 23 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification with altered signature after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 24 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: '' The operation is not supported.'' Reached unreachable code25 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: '' The operation is not supported.'' Reached unreachable code26 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: '' The operation is not supported.'' Reached unreachable code27 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: '' The operation is not supported.'' Reached unreachable code28 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 29 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 30 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 31 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 32 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 33 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 34 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 35 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 with altered plaintext after call assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 36 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: '' The operation is not supported.'' Reached unreachable code37 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: '' The operation is not supported.'' Reached unreachable code38 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: '' The operation is not supported.'' Reached unreachable code39 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: '' The operation is not supported.'' Reached unreachable code40 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 41 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 42 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 43 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 44 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 45 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 46 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 47 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 using privateKey to verify assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 48 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: '' The operation is not supported.'' Reached unreachable code49 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: '' The operation is not supported.'' Reached unreachable code50 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: '' The operation is not supported.'' Reached unreachable code51 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: '' The operation is not supported.'' Reached unreachable code52 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 53 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 54 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 55 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 56 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 57 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 58 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 59 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 using publicKey to sign assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 60 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: '' The operation is not supported.'' Reached unreachable code61 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: '' The operation is not supported.'' Reached unreachable code62 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: '' The operation is not supported.'' Reached unreachable code63 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: '' The operation is not supported.'' Reached unreachable code64 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 65 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 66 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 67 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 68 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 69 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 70 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 71 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 72 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code73 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code74 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code75 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 no verify usage assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code76 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 77 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 78 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 79 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 80 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 81 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 82 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 83 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 84 FAIL importVectorKeys step: ECDSA P-521 with SHA-1 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-1. Message: '' The operation is not supported.'' Reached unreachable code85 FAIL importVectorKeys step: ECDSA P-521 with SHA-256 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-256. Message: '' The operation is not supported.'' Reached unreachable code86 FAIL importVectorKeys step: ECDSA P-521 with SHA-384 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-384. Message: '' The operation is not supported.'' Reached unreachable code87 FAIL importVectorKeys step: ECDSA P-521 with SHA-512 round trip assert_unreached: importVectorKeys failed for ECDSA P-521 with SHA-512. Message: '' The operation is not supported.'' Reached unreachable code88 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 89 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 90 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 91 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 92 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 93 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 94 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 95 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to altered signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 96 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: ''The operation is not supported.'' Reached unreachable code 97 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: ''The operation is not supported.'' Reached unreachable code 98 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: ''The operation is not supported.'' Reached unreachable code 99 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: ''The operation is not supported.'' Reached unreachable code 100 FAIL importVectorKeys step: ECDSA P-256 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 101 FAIL importVectorKeys step: ECDSA P-256 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 102 FAIL importVectorKeys step: ECDSA P-256 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 103 FAIL importVectorKeys step: ECDSA P-256 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 104 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 105 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 106 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 107 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to wrong hash assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 108 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: ''The operation is not supported.'' Reached unreachable code 109 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: ''The operation is not supported.'' Reached unreachable code 110 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: ''The operation is not supported.'' Reached unreachable code 111 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: ''The operation is not supported.'' Reached unreachable code 112 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code113 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code114 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code115 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code116 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 117 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 118 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 119 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to bad hash name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 120 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: ''The operation is not supported.'' Reached unreachable code 121 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: ''The operation is not supported.'' Reached unreachable code 122 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: ''The operation is not supported.'' Reached unreachable code 123 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: ''The operation is not supported.'' Reached unreachable code 124 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code125 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code126 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code127 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code128 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 129 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 130 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 131 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to shortened signature assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 132 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: ''The operation is not supported.'' Reached unreachable code 133 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: ''The operation is not supported.'' Reached unreachable code 134 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: ''The operation is not supported.'' Reached unreachable code 135 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: ''The operation is not supported.'' Reached unreachable code 136 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code137 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code138 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code139 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code140 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 141 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 142 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 143 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 verification failure due to altered plaintext assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 144 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: ''The operation is not supported.'' Reached unreachable code 145 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: ''The operation is not supported.'' Reached unreachable code 146 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: ''The operation is not supported.'' Reached unreachable code 147 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: ''The operation is not supported.'' Reached unreachable code 148 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code149 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code150 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code151 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code152 FAIL importVectorKeys step: ECDSA P-384 with SHA-1 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code 153 FAIL importVectorKeys step: ECDSA P-384 with SHA-256 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code 154 FAIL importVectorKeys step: ECDSA P-384 with SHA-384 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code 155 FAIL importVectorKeys step: ECDSA P-384 with SHA-512 signing with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code 156 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: ''The operation is not supported.'' Reached unreachable code 157 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: ''The operation is not supported.'' Reached unreachable code 158 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: ''The operation is not supported.'' Reached unreachable code 159 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: ''The operation is not supported.'' Reached unreachable code 160 FAIL importVectorKeys step: ECDSA P- 256 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code161 FAIL importVectorKeys step: ECDSA P- 256 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code162 FAIL importVectorKeys step: ECDSA P- 256 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code163 FAIL importVectorKeys step: ECDSA P- 256 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-256 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code164 FAIL importVectorKeys step: ECDSA P- 384 with SHA-1 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-1. Message: ''The operation is not supported.'' Reached unreachable code165 FAIL importVectorKeys step: ECDSA P- 384 with SHA-256 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-256. Message: ''The operation is not supported.'' Reached unreachable code166 FAIL importVectorKeys step: ECDSA P- 384 with SHA-384 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-384. Message: ''The operation is not supported.'' Reached unreachable code167 FAIL importVectorKeys step: ECDSA P- 384 with SHA-512 verifying with wrong algorithm name assert_unreached: importVectorKeys failed for ECDSA P-384 with SHA-512. Message: ''The operation is not supported.'' Reached unreachable code168 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: '' The operation is not supported.'' Reached unreachable code169 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: '' The operation is not supported.'' Reached unreachable code170 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: '' The operation is not supported.'' Reached unreachable code171 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: '' The operation is not supported.'' Reached unreachable code4 PASS ECDSA P-256 with SHA-1 verification 5 PASS ECDSA P-256 with SHA-256 verification 6 PASS ECDSA P-256 with SHA-384 verification 7 PASS ECDSA P-256 with SHA-512 verification 8 PASS ECDSA P-384 with SHA-1 verification 9 PASS ECDSA P-384 with SHA-256 verification 10 PASS ECDSA P-384 with SHA-384 verification 11 PASS ECDSA P-384 with SHA-512 verification 12 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 13 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 14 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 15 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 16 PASS ECDSA P-256 with SHA-1 verification with altered signature after call 17 PASS ECDSA P-256 with SHA-256 verification with altered signature after call 18 PASS ECDSA P-256 with SHA-384 verification with altered signature after call 19 PASS ECDSA P-256 with SHA-512 verification with altered signature after call 20 PASS ECDSA P-384 with SHA-1 verification with altered signature after call 21 PASS ECDSA P-384 with SHA-256 verification with altered signature after call 22 PASS ECDSA P-384 with SHA-384 verification with altered signature after call 23 PASS ECDSA P-384 with SHA-512 verification with altered signature after call 24 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 25 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 26 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 27 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 28 PASS ECDSA P-256 with SHA-1 with altered plaintext after call 29 PASS ECDSA P-256 with SHA-256 with altered plaintext after call 30 PASS ECDSA P-256 with SHA-384 with altered plaintext after call 31 PASS ECDSA P-256 with SHA-512 with altered plaintext after call 32 PASS ECDSA P-384 with SHA-1 with altered plaintext after call 33 PASS ECDSA P-384 with SHA-256 with altered plaintext after call 34 PASS ECDSA P-384 with SHA-384 with altered plaintext after call 35 PASS ECDSA P-384 with SHA-512 with altered plaintext after call 36 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 37 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 38 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 39 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 40 PASS ECDSA P-256 with SHA-1 using privateKey to verify 41 PASS ECDSA P-256 with SHA-256 using privateKey to verify 42 PASS ECDSA P-256 with SHA-384 using privateKey to verify 43 PASS ECDSA P-256 with SHA-512 using privateKey to verify 44 PASS ECDSA P-384 with SHA-1 using privateKey to verify 45 PASS ECDSA P-384 with SHA-256 using privateKey to verify 46 PASS ECDSA P-384 with SHA-384 using privateKey to verify 47 PASS ECDSA P-384 with SHA-512 using privateKey to verify 48 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 49 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 50 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 51 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 52 PASS ECDSA P-256 with SHA-1 using publicKey to sign 53 PASS ECDSA P-256 with SHA-256 using publicKey to sign 54 PASS ECDSA P-256 with SHA-384 using publicKey to sign 55 PASS ECDSA P-256 with SHA-512 using publicKey to sign 56 PASS ECDSA P-384 with SHA-1 using publicKey to sign 57 PASS ECDSA P-384 with SHA-256 using publicKey to sign 58 PASS ECDSA P-384 with SHA-384 using publicKey to sign 59 PASS ECDSA P-384 with SHA-512 using publicKey to sign 60 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 61 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 62 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 63 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 64 PASS ECDSA P-256 with SHA-1 no verify usage 65 PASS ECDSA P-256 with SHA-256 no verify usage 66 PASS ECDSA P-256 with SHA-384 no verify usage 67 PASS ECDSA P-256 with SHA-512 no verify usage 68 PASS ECDSA P-384 with SHA-1 no verify usage 69 PASS ECDSA P-384 with SHA-256 no verify usage 70 PASS ECDSA P-384 with SHA-384 no verify usage 71 PASS ECDSA P-384 with SHA-512 no verify usage 72 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 code 73 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 code 74 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 code 75 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 code 76 PASS ECDSA P-256 with SHA-1 round trip 77 PASS ECDSA P-256 with SHA-256 round trip 78 PASS ECDSA P-256 with SHA-384 round trip 79 PASS ECDSA P-256 with SHA-512 round trip 80 PASS ECDSA P-384 with SHA-1 round trip 81 PASS ECDSA P-384 with SHA-256 round trip 82 PASS ECDSA P-384 with SHA-384 round trip 83 PASS ECDSA P-384 with SHA-512 round trip 84 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 85 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 86 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 87 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 88 PASS ECDSA P-256 with SHA-1 signing with wrong algorithm name 89 PASS ECDSA P-256 with SHA-256 signing with wrong algorithm name 90 PASS ECDSA P-256 with SHA-384 signing with wrong algorithm name 91 PASS ECDSA P-256 with SHA-512 signing with wrong algorithm name 92 PASS ECDSA P-384 with SHA-1 signing with wrong algorithm name 93 PASS ECDSA P-384 with SHA-256 signing with wrong algorithm name 94 PASS ECDSA P-384 with SHA-384 signing with wrong algorithm name 95 PASS ECDSA P-384 with SHA-512 signing with wrong algorithm name 96 PASS ECDSA P-256 with SHA-1 verifying with wrong algorithm name 97 PASS ECDSA P-256 with SHA-256 verifying with wrong algorithm name 98 PASS ECDSA P-256 with SHA-384 verifying with wrong algorithm name 99 PASS ECDSA P-256 with SHA-512 verifying with wrong algorithm name 100 PASS ECDSA P-384 with SHA-1 verifying with wrong algorithm name 101 PASS ECDSA P-384 with SHA-256 verifying with wrong algorithm name 102 PASS ECDSA P-384 with SHA-384 verifying with wrong algorithm name 103 PASS ECDSA P-384 with SHA-512 verifying with wrong algorithm name 104 PASS ECDSA P-256 with SHA-1 verification failure due to altered signature 105 PASS ECDSA P-256 with SHA-256 verification failure due to altered signature 106 PASS ECDSA P-256 with SHA-384 verification failure due to altered signature 107 PASS ECDSA P-256 with SHA-512 verification failure due to altered signature 108 PASS ECDSA P-384 with SHA-1 verification failure due to altered signature 109 PASS ECDSA P-384 with SHA-256 verification failure due to altered signature 110 PASS ECDSA P-384 with SHA-384 verification failure due to altered signature 111 PASS ECDSA P-384 with SHA-512 verification failure due to altered signature 112 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 code 113 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 code 114 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 code 115 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 code 116 PASS ECDSA P-256 with SHA-1 verification failure due to wrong hash 117 PASS ECDSA P-256 with SHA-256 verification failure due to wrong hash 118 PASS ECDSA P-256 with SHA-384 verification failure due to wrong hash 119 PASS ECDSA P-256 with SHA-512 verification failure due to wrong hash 120 PASS ECDSA P-384 with SHA-1 verification failure due to wrong hash 121 PASS ECDSA P-384 with SHA-256 verification failure due to wrong hash 122 PASS ECDSA P-384 with SHA-384 verification failure due to wrong hash 123 PASS ECDSA P-384 with SHA-512 verification failure due to wrong hash 124 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 125 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 126 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 127 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 128 PASS ECDSA P-256 with SHA-1 verification failure due to bad hash name 129 PASS ECDSA P-256 with SHA-256 verification failure due to bad hash name 130 PASS ECDSA P-256 with SHA-384 verification failure due to bad hash name 131 PASS ECDSA P-256 with SHA-512 verification failure due to bad hash name 132 PASS ECDSA P-384 with SHA-1 verification failure due to bad hash name 133 PASS ECDSA P-384 with SHA-256 verification failure due to bad hash name 134 PASS ECDSA P-384 with SHA-384 verification failure due to bad hash name 135 PASS ECDSA P-384 with SHA-512 verification failure due to bad hash name 136 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 code 137 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 code 138 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 code 139 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 code 140 PASS ECDSA P-256 with SHA-1 verification failure due to shortened signature 141 PASS ECDSA P-256 with SHA-256 verification failure due to shortened signature 142 PASS ECDSA P-256 with SHA-384 verification failure due to shortened signature 143 PASS ECDSA P-256 with SHA-512 verification failure due to shortened signature 144 PASS ECDSA P-384 with SHA-1 verification failure due to shortened signature 145 PASS ECDSA P-384 with SHA-256 verification failure due to shortened signature 146 PASS ECDSA P-384 with SHA-384 verification failure due to shortened signature 147 PASS ECDSA P-384 with SHA-512 verification failure due to shortened signature 148 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 code 149 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 code 150 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 code 151 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 code 152 PASS ECDSA P-256 with SHA-1 verification failure due to altered plaintext 153 PASS ECDSA P-256 with SHA-256 verification failure due to altered plaintext 154 PASS ECDSA P-256 with SHA-384 verification failure due to altered plaintext 155 PASS ECDSA P-256 with SHA-512 verification failure due to altered plaintext 156 PASS ECDSA P-384 with SHA-1 verification failure due to altered plaintext 157 PASS ECDSA P-384 with SHA-256 verification failure due to altered plaintext 158 PASS ECDSA P-384 with SHA-384 verification failure due to altered plaintext 159 PASS ECDSA P-384 with SHA-512 verification failure due to altered plaintext 160 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 161 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 162 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 163 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 164 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 165 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 166 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 167 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 168 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 169 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 170 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 171 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 172 172 -
trunk/LayoutTests/imported/w3c/web-platform-tests/WebCryptoAPI/sign_verify/test_hmac-expected.txt
r212124 r215423 2 2 3 3 4 FAIL generate wrong key step: HMAC with SHA-1 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-1 failed: 'The operation is not supported.' Reached unreachable code5 FAIL generate wrong key step: HMAC with SHA-256 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-256 failed: 'The operation is not supported.' Reached unreachable code6 FAIL generate wrong key step: HMAC with SHA-384 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-384 failed: 'The operation is not supported.' Reached unreachable code7 FAIL generate wrong key step: HMAC with SHA-512 signing with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-512 failed: 'The operation is not supported.' Reached unreachable code8 FAIL generate wrong key step: HMAC with SHA-1 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-1 failed: 'The operation is not supported.' Reached unreachable code9 FAIL generate wrong key step: HMAC with SHA-256 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-256 failed: 'The operation is not supported.' Reached unreachable code10 FAIL generate wrong key step: HMAC with SHA-384 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-384 failed: 'The operation is not supported.' Reached unreachable code11 FAIL generate wrong key step: HMAC with SHA-512 verifying with wrong algorithm name assert_unreached: Generate wrong key for test HMAC with SHA-512 failed: 'The operation is not supported.' Reached unreachable code12 4 PASS HMAC with SHA-1 verification 13 5 PASS HMAC with SHA-256 verification … … 30 22 PASS HMAC with SHA-384 round trip 31 23 PASS HMAC with SHA-512 round trip 24 PASS HMAC with SHA-1 signing with wrong algorithm name 25 PASS HMAC with SHA-256 signing with wrong algorithm name 26 PASS HMAC with SHA-384 signing with wrong algorithm name 27 PASS HMAC with SHA-512 signing with wrong algorithm name 28 PASS HMAC with SHA-1 verifying with wrong algorithm name 29 PASS HMAC with SHA-256 verifying with wrong algorithm name 30 PASS HMAC with SHA-384 verifying with wrong algorithm name 31 PASS HMAC with SHA-512 verifying with wrong algorithm name 32 32 PASS HMAC with SHA-1 verification failure due to wrong plaintext 33 33 PASS HMAC with SHA-256 verification failure due to wrong plaintext -
trunk/Source/WebCore/CMakeLists.txt
r215382 r215423 357 357 crypto/parameters/EcKeyParams.idl 358 358 crypto/parameters/EcdhKeyDeriveParams.idl 359 crypto/parameters/EcdsaParams.idl 359 360 crypto/parameters/HkdfParams.idl 360 361 crypto/parameters/HmacKeyParams.idl -
trunk/Source/WebCore/ChangeLog
r215418 r215423 1 2017-04-14 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebCrypto] Add support for ECDSA 4 https://bugs.webkit.org/show_bug.cgi?id=170789 5 <rdar://problem/31588604> 6 7 Reviewed by Brent Fulgham. 8 9 This patch implements ECDSA according to the spec: https://www.w3.org/TR/WebCryptoAPI/#ecdsa. 10 Supported operations include sign, verify, generateKey, importKey and exportKey. 11 12 Tests: crypto/subtle/ecdh-generate-export-key-pkcs8-p256.html 13 crypto/subtle/ecdh-generate-export-key-pkcs8-p384.html 14 crypto/subtle/ecdsa-generate-export-jwk-key.html 15 crypto/subtle/ecdsa-generate-export-key-pkcs8.html 16 crypto/subtle/ecdsa-generate-export-key-raw.html 17 crypto/subtle/ecdsa-generate-export-key-spki.html 18 crypto/subtle/ecdsa-generate-key-sign-verify-p256.html 19 crypto/subtle/ecdsa-generate-key-sign-verify-p384.html 20 crypto/subtle/ecdsa-generate-key.html 21 crypto/subtle/ecdsa-import-jwk-private-key.html 22 crypto/subtle/ecdsa-import-jwk-public-key-alg-256.html 23 crypto/subtle/ecdsa-import-jwk-public-key-alg-384.html 24 crypto/subtle/ecdsa-import-jwk-public-key.html 25 crypto/subtle/ecdsa-import-key-sign-p256.html 26 crypto/subtle/ecdsa-import-key-sign-p384.html 27 crypto/subtle/ecdsa-import-key-verify-p256.html 28 crypto/subtle/ecdsa-import-key-verify-p384.html 29 crypto/subtle/ecdsa-import-pkcs8-key.html 30 crypto/subtle/ecdsa-import-raw-key.html 31 crypto/subtle/ecdsa-import-spki-key.html 32 crypto/subtle/ecdsa-verify-malformed-parameters.html 33 crypto/workers/subtle/ecdsa-import-key-sign.html 34 crypto/workers/subtle/ecdsa-import-key-verify.html 35 36 * CMakeLists.txt: 37 * DerivedSources.make: 38 * PlatformGTK.cmake: 39 * PlatformMac.cmake: 40 * WebCore.xcodeproj/project.pbxproj: 41 * bindings/js/JSSubtleCryptoCustom.cpp: 42 (WebCore::normalizeCryptoAlgorithmParameters): 43 (WebCore::jsSubtleCryptoFunctionSignPromise): 44 (WebCore::jsSubtleCryptoFunctionVerifyPromise): 45 Add missing parameters. 46 * crypto/CommonCryptoUtilities.h: 47 * crypto/CryptoAlgorithm.cpp: 48 (WebCore::CryptoAlgorithm::sign): 49 (WebCore::CryptoAlgorithm::verify): 50 * crypto/CryptoAlgorithm.h: 51 Add missing parameters. 52 * crypto/CryptoAlgorithmParameters.h: 53 * crypto/algorithms/CryptoAlgorithmECDSA.cpp: Added. 54 (WebCore::CryptoAlgorithmECDSA::create): 55 (WebCore::CryptoAlgorithmECDSA::identifier): 56 (WebCore::CryptoAlgorithmECDSA::sign): 57 (WebCore::CryptoAlgorithmECDSA::verify): 58 (WebCore::CryptoAlgorithmECDSA::generateKey): 59 (WebCore::CryptoAlgorithmECDSA::importKey): 60 (WebCore::CryptoAlgorithmECDSA::exportKey): 61 * crypto/algorithms/CryptoAlgorithmECDSA.h: Added. 62 * crypto/algorithms/CryptoAlgorithmHMAC.cpp: 63 (WebCore::CryptoAlgorithmHMAC::sign): 64 (WebCore::CryptoAlgorithmHMAC::verify): 65 * crypto/algorithms/CryptoAlgorithmHMAC.h: 66 Add missing parameters. 67 * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp: 68 (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::sign): 69 (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::verify): 70 * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h: 71 Add missing parameters. 72 * crypto/gcrypt/CryptoAlgorithmECDSAGCrypt.cpp: Added. 73 (WebCore::CryptoAlgorithmECDSA::platformSign): 74 (WebCore::CryptoAlgorithmECDSA::platformVerify): 75 * crypto/mac/CommonCryptoDERUtilities.cpp: Added. 76 (WebCore::bytesUsedToEncodedLength): 77 (WebCore::extraBytesNeededForEncodedLength): 78 (WebCore::addEncodedASN1Length): 79 (WebCore::bytesNeededForEncodedLength): 80 * crypto/mac/CommonCryptoDERUtilities.h: 81 (WebCore::bytesUsedToEncodedLength): Deleted. 82 (WebCore::extraBytesNeededForEncodedLength): Deleted. 83 (WebCore::addEncodedASN1Length): Deleted. 84 (WebCore::bytesNeededForEncodedLength): Deleted. 85 Move implementations to a .cpp file. 86 * crypto/mac/CryptoAlgorithmECDSAMac.cpp: Added. 87 (WebCore::cryptoDigestAlgorithm): 88 (WebCore::signECDSA): 89 (WebCore::verifyECDSA): 90 (WebCore::CryptoAlgorithmECDSA::platformSign): 91 (WebCore::CryptoAlgorithmECDSA::platformVerify): 92 * crypto/mac/CryptoAlgorithmRegistryMac.cpp: 93 (WebCore::CryptoAlgorithmRegistry::platformRegisterAlgorithms): 94 * crypto/parameters/CryptoAlgorithmEcdsaParams.h: Added. 95 * crypto/parameters/EcdsaParams.idl: Added. 96 1 97 2017-04-17 Jeremy Jones <jeremyj@apple.com> 2 98 -
trunk/Source/WebCore/DerivedSources.make
r215403 r215423 294 294 $(WebCore)/crypto/parameters/EcKeyParams.idl \ 295 295 $(WebCore)/crypto/parameters/EcdhKeyDeriveParams.idl \ 296 $(WebCore)/crypto/parameters/EcdsaParams.idl \ 296 297 $(WebCore)/crypto/parameters/HkdfParams.idl \ 297 298 $(WebCore)/crypto/parameters/HmacKeyParams.idl \ -
trunk/Source/WebCore/PlatformGTK.cmake
r215382 r215423 388 388 crypto/algorithms/CryptoAlgorithmAES_KW.cpp 389 389 crypto/algorithms/CryptoAlgorithmECDH.cpp 390 crypto/algorithms/CryptoAlgorithmECDSA.cpp 390 391 crypto/algorithms/CryptoAlgorithmHKDF.cpp 391 392 crypto/algorithms/CryptoAlgorithmHMAC.cpp … … 406 407 crypto/gcrypt/CryptoAlgorithmAES_KWGCrypt.cpp 407 408 crypto/gcrypt/CryptoAlgorithmECDHGCrypt.cpp 409 crypto/gcrypt/CryptoAlgorithmECDSAGCrypt.cpp 408 410 crypto/gcrypt/CryptoAlgorithmHKDFGCrypt.cpp 409 411 crypto/gcrypt/CryptoAlgorithmHMACGCrypt.cpp -
trunk/Source/WebCore/PlatformMac.cmake
r215382 r215423 189 189 crypto/algorithms/CryptoAlgorithmAES_KW.cpp 190 190 crypto/algorithms/CryptoAlgorithmECDH.cpp 191 crypto/algorithms/CryptoAlgorithmECDSA.cpp 191 192 crypto/algorithms/CryptoAlgorithmHKDF.cpp 192 193 crypto/algorithms/CryptoAlgorithmHMAC.cpp … … 216 217 crypto/mac/CryptoAlgorithmAES_KWMac.cpp 217 218 crypto/mac/CryptoAlgorithmECDHMac.cpp 219 crypto/mac/CryptoAlgorithmECDSAMac.cpp 218 220 crypto/mac/CryptoAlgorithmHKDFMac.cpp 219 221 crypto/mac/CryptoAlgorithmHMACMac.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r215418 r215423 2618 2618 57E657F01E71665400F941CA /* JSPbkdf2Params.h in Headers */ = {isa = PBXBuildFile; fileRef = 57E657EE1E71665400F941CA /* JSPbkdf2Params.h */; }; 2619 2619 57E664FC1E73703300765536 /* CommonCryptoDERUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 57E664FB1E73703300765536 /* CommonCryptoDERUtilities.h */; }; 2620 57EEAA461E9ED2DD00701124 /* CryptoAlgorithmECDSA.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57EEAA441E9ED2DD00701124 /* CryptoAlgorithmECDSA.cpp */; }; 2621 57EEAA471E9ED2DD00701124 /* CryptoAlgorithmECDSA.h in Headers */ = {isa = PBXBuildFile; fileRef = 57EEAA451E9ED2DD00701124 /* CryptoAlgorithmECDSA.h */; }; 2622 57EEAA4A1E9F2D3200701124 /* CryptoAlgorithmECDSAMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57EEAA481E9F2D3200701124 /* CryptoAlgorithmECDSAMac.cpp */; }; 2623 57EEAA501E9FFBFC00701124 /* CryptoAlgorithmEcdsaParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 57EEAA4D1E9FFBFC00701124 /* CryptoAlgorithmEcdsaParams.h */; }; 2624 57EEAA541EA001B100701124 /* JSEcdsaParams.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57EEAA521EA001B100701124 /* JSEcdsaParams.cpp */; }; 2625 57EEAA551EA001B100701124 /* JSEcdsaParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 57EEAA531EA001B100701124 /* JSEcdsaParams.h */; }; 2626 57EEAA581EA0AFBB00701124 /* CommonCryptoDERUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57EEAA571EA0AFBB00701124 /* CommonCryptoDERUtilities.cpp */; }; 2620 2627 57EF5E601D20C83900171E60 /* TextCodecReplacement.h in Headers */ = {isa = PBXBuildFile; fileRef = 57EF5E5F1D20C83900171E60 /* TextCodecReplacement.h */; }; 2621 2628 57EF5E621D20D28700171E60 /* TextCodecReplacement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57EF5E611D20D28700171E60 /* TextCodecReplacement.cpp */; }; … … 10355 10362 57E657EE1E71665400F941CA /* JSPbkdf2Params.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPbkdf2Params.h; sourceTree = "<group>"; }; 10356 10363 57E664FB1E73703300765536 /* CommonCryptoDERUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommonCryptoDERUtilities.h; sourceTree = "<group>"; }; 10364 57EEAA441E9ED2DD00701124 /* CryptoAlgorithmECDSA.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmECDSA.cpp; sourceTree = "<group>"; }; 10365 57EEAA451E9ED2DD00701124 /* CryptoAlgorithmECDSA.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmECDSA.h; sourceTree = "<group>"; }; 10366 57EEAA481E9F2D3200701124 /* CryptoAlgorithmECDSAMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmECDSAMac.cpp; sourceTree = "<group>"; }; 10367 57EEAA4D1E9FFBFC00701124 /* CryptoAlgorithmEcdsaParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmEcdsaParams.h; sourceTree = "<group>"; }; 10368 57EEAA4E1E9FFBFC00701124 /* EcdsaParams.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EcdsaParams.idl; sourceTree = "<group>"; }; 10369 57EEAA521EA001B100701124 /* JSEcdsaParams.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEcdsaParams.cpp; sourceTree = "<group>"; }; 10370 57EEAA531EA001B100701124 /* JSEcdsaParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEcdsaParams.h; sourceTree = "<group>"; }; 10371 57EEAA571EA0AFBB00701124 /* CommonCryptoDERUtilities.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CommonCryptoDERUtilities.cpp; sourceTree = "<group>"; }; 10357 10372 57EF5E5F1D20C83900171E60 /* TextCodecReplacement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextCodecReplacement.h; sourceTree = "<group>"; }; 10358 10373 57EF5E611D20D28700171E60 /* TextCodecReplacement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextCodecReplacement.cpp; sourceTree = "<group>"; }; … … 24349 24364 isa = PBXGroup; 24350 24365 children = ( 24366 57EEAA571EA0AFBB00701124 /* CommonCryptoDERUtilities.cpp */, 24351 24367 57E664FB1E73703300765536 /* CommonCryptoDERUtilities.h */, 24352 24368 E125F843182425C900D84CD9 /* CryptoAlgorithmAES_CBCMac.cpp */, … … 24356 24372 E1FE137C184D270200892F13 /* CryptoAlgorithmAES_KWMac.cpp */, 24357 24373 576814341E6FE3E800E77754 /* CryptoAlgorithmECDHMac.cpp */, 24374 57EEAA481E9F2D3200701124 /* CryptoAlgorithmECDSAMac.cpp */, 24358 24375 57957CAA1E97247B008072AB /* CryptoAlgorithmHKDFMac.cpp */, 24359 24376 E125F8371822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp */, … … 24386 24403 5750A9841E6A216800705C4A /* CryptoAlgorithmECDH.cpp */, 24387 24404 5750A9851E6A216800705C4A /* CryptoAlgorithmECDH.h */, 24405 57EEAA441E9ED2DD00701124 /* CryptoAlgorithmECDSA.cpp */, 24406 57EEAA451E9ED2DD00701124 /* CryptoAlgorithmECDSA.h */, 24388 24407 57957CA61E971DE0008072AB /* CryptoAlgorithmHKDF.cpp */, 24389 24408 57957CA71E971DE0008072AB /* CryptoAlgorithmHKDF.h */, … … 24449 24468 577483111DADC55D00716EF9 /* CryptoAlgorithmAesKeyParams.h */, 24450 24469 576814291E6F99C100E77754 /* CryptoAlgorithmEcdhKeyDeriveParams.h */, 24470 57EEAA4D1E9FFBFC00701124 /* CryptoAlgorithmEcdsaParams.h */, 24451 24471 5750A97D1E6A13EF00705C4A /* CryptoAlgorithmEcKeyParams.h */, 24452 24472 57957CAF1E972645008072AB /* CryptoAlgorithmHkdfParams.h */, … … 24464 24484 E1BD331B182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h */, 24465 24485 576814281E6F98AD00E77754 /* EcdhKeyDeriveParams.idl */, 24486 57EEAA4E1E9FFBFC00701124 /* EcdsaParams.idl */, 24466 24487 5750A97C1E6A12B400705C4A /* EcKeyParams.idl */, 24467 24488 57957CB01E972645008072AB /* HkdfParams.idl */, … … 24645 24666 5768143D1E709C3600E77754 /* JSEcdhKeyDeriveParams.cpp */, 24646 24667 5768143E1E709C3600E77754 /* JSEcdhKeyDeriveParams.h */, 24668 57EEAA521EA001B100701124 /* JSEcdsaParams.cpp */, 24669 57EEAA531EA001B100701124 /* JSEcdsaParams.h */, 24647 24670 5750A97F1E6A150800705C4A /* JSEcKeyParams.cpp */, 24648 24671 5750A9801E6A150800705C4A /* JSEcKeyParams.h */, … … 27785 27808 938E666209F09B87008A48EC /* JSHTMLCanvasElement.h in Headers */, 27786 27809 BCCBAD410C18C14200CE890F /* JSHTMLCollection.h in Headers */, 27810 57EEAA551EA001B100701124 /* JSEcdsaParams.h in Headers */, 27787 27811 8367587F1C56E99B008A1087 /* JSHTMLDataElement.h in Headers */, 27788 27812 F5C041E70FFCA96D00839D4A /* JSHTMLDataListElement.h in Headers */, … … 28202 28226 A7D20F63107F406900A80392 /* JSWebGLActiveInfo.h in Headers */, 28203 28227 49C7B9941042D2D30009D447 /* JSWebGLBuffer.h in Headers */, 28228 57EEAA471E9ED2DD00701124 /* CryptoAlgorithmECDSA.h in Headers */, 28204 28229 7EA30F6A16DFFE7500257D0B /* JSWebGLCompressedTextureATC.h in Headers */, 28205 28230 7EA30F6A17EFFE7500257D0B /* JSWebGLCompressedTexturePVRTC.h in Headers */, … … 29684 29709 498770F31242C535002226BA /* TilingData.h in Headers */, 29685 29710 F55B3DDC1251F12D003EF269 /* TimeInputType.h in Headers */, 29711 57EEAA501E9FFBFC00701124 /* CryptoAlgorithmEcdsaParams.h in Headers */, 29686 29712 7553CFE8108F473F00EA281E /* TimelineRecordFactory.h in Headers */, 29687 29713 9305B24D098F1B6B00C28855 /* Timer.h in Headers */, … … 31160 31186 389117431E8F4BF00061033E /* GPUComputeCommandEncoder.cpp in Sources */, 31161 31187 389117411E8F4BF00061033E /* GPUComputeCommandEncoderMetal.mm in Sources */, 31188 57EEAA461E9ED2DD00701124 /* CryptoAlgorithmECDSA.cpp in Sources */, 31162 31189 389117441E8F4BF00061033E /* GPUComputePipelineState.cpp in Sources */, 31163 31190 389117421E8F4BF00061033E /* GPUComputePipelineStateMetal.mm in Sources */, … … 31379 31406 5185FC981BB4C4E80012898F /* IDBKeyPath.cpp in Sources */, 31380 31407 5185FC9A1BB4C4E80012898F /* IDBKeyRange.cpp in Sources */, 31408 57EEAA581EA0AFBB00701124 /* CommonCryptoDERUtilities.cpp in Sources */, 31381 31409 5185FC9D1BB4C4E80012898F /* IDBKeyRangeData.cpp in Sources */, 31382 31410 5185FC9F1BB4C4E80012898F /* IDBObjectStore.cpp in Sources */, … … 31762 31790 BCD41ABB0C060DE800C0E446 /* JSHTMLFrameSetElementCustom.cpp in Sources */, 31763 31791 A80E7B140A19D606007FB8C5 /* JSHTMLHeadElement.cpp in Sources */, 31792 57EEAA541EA001B100701124 /* JSEcdsaParams.cpp in Sources */, 31764 31793 1AE2AA2E0A1CDAB400B42B25 /* JSHTMLHeadingElement.cpp in Sources */, 31765 31794 1AE2AA300A1CDAB400B42B25 /* JSHTMLHRElement.cpp in Sources */, … … 33186 33215 B22279920D00BF220071B782 /* SVGAnimateMotionElement.cpp in Sources */, 33187 33216 B22279940D00BF220071B782 /* SVGAnimateTransformElement.cpp in Sources */, 33217 57EEAA4A1E9F2D3200701124 /* CryptoAlgorithmECDSAMac.cpp in Sources */, 33188 33218 B22279970D00BF220071B782 /* SVGAnimationElement.cpp in Sources */, 33189 33219 08FB17C113BC7E9100040086 /* SVGAttributeToPropertyMap.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
r215382 r215423 42 42 #include "JSEcKeyParams.h" 43 43 #include "JSEcdhKeyDeriveParams.h" 44 #include "JSEcdsaParams.h" 44 45 #include "JSHkdfParams.h" 45 46 #include "JSHmacKeyParams.h" … … 151 152 result = std::make_unique<CryptoAlgorithmParameters>(params); 152 153 break; 154 case CryptoAlgorithmIdentifier::ECDSA: { 155 auto params = convertDictionary<CryptoAlgorithmEcdsaParams>(state, value); 156 RETURN_IF_EXCEPTION(scope, nullptr); 157 params.hashIdentifier = toHashIdentifier(state, params.hash); 158 RETURN_IF_EXCEPTION(scope, nullptr); 159 result = std::make_unique<CryptoAlgorithmEcdsaParams>(params); 160 break; 161 162 } 153 163 default: 154 164 throwNotSupportedError(state, scope); … … 645 655 JSSubtleCrypto* subtle = jsDynamicDowncast<JSSubtleCrypto*>(vm, state.thisValue()); 646 656 ASSERT(subtle); 647 algorithm->sign( key.releaseNonNull(), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), *scriptExecutionContextFromExecState(&state), subtle->wrapped().workQueue());657 algorithm->sign(WTFMove(params), key.releaseNonNull(), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), *scriptExecutionContextFromExecState(&state), subtle->wrapped().workQueue()); 648 658 } 649 659 … … 695 705 auto subtle = jsDynamicDowncast<JSSubtleCrypto*>(vm, state.thisValue()); 696 706 ASSERT(subtle); 697 algorithm->verify( key.releaseNonNull(), WTFMove(signature), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), *scriptExecutionContextFromExecState(&state), subtle->wrapped().workQueue());707 algorithm->verify(WTFMove(params), key.releaseNonNull(), WTFMove(signature), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), *scriptExecutionContextFromExecState(&state), subtle->wrapped().workQueue()); 698 708 } 699 709 -
trunk/Source/WebCore/crypto/CommonCryptoUtilities.h
r215382 r215423 110 110 extern "C" CCCryptorStatus CCECCryptorGetKeyComponents(CCECCryptorRef ecKey, size_t *keySize, uint8_t *qX, size_t *qXLength, uint8_t *qY, size_t *qYLength, uint8_t *d, size_t *dLength); 111 111 extern "C" CCCryptorStatus CCECCryptorComputeSharedSecret(CCECCryptorRef privateKey, CCECCryptorRef publicKey, void *out, size_t *outLen); 112 extern "C" CCCryptorStatus CCECCryptorSignHash(CCECCryptorRef privateKey, const void *hashToSign, size_t hashSignLen, void *signedData, size_t *signedDataLen); 113 extern "C" CCCryptorStatus CCECCryptorVerifyHash(CCECCryptorRef publicKey, const void *hash, size_t hashLen, const void *signedData, size_t signedDataLen, uint32_t *valid); 114 115 112 116 113 117 #ifndef CommonCrypto_CommonNistKeyDerivation_h -
trunk/Source/WebCore/crypto/CryptoAlgorithm.cpp
r213628 r215423 43 43 } 44 44 45 void CryptoAlgorithm::sign( Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&& exceptionCallback, ScriptExecutionContext&, WorkQueue&)45 void CryptoAlgorithm::sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&& exceptionCallback, ScriptExecutionContext&, WorkQueue&) 46 46 { 47 47 exceptionCallback(NOT_SUPPORTED_ERR); 48 48 } 49 49 50 void CryptoAlgorithm::verify( Ref<CryptoKey>&&, Vector<uint8_t>&&, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&& exceptionCallback, ScriptExecutionContext&, WorkQueue&)50 void CryptoAlgorithm::verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&& exceptionCallback, ScriptExecutionContext&, WorkQueue&) 51 51 { 52 52 exceptionCallback(NOT_SUPPORTED_ERR); -
trunk/Source/WebCore/crypto/CryptoAlgorithm.h
r213628 r215423 70 70 virtual void encrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 71 71 virtual void decrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 72 virtual void sign( Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&);73 virtual void verify( Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&);72 virtual void sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 73 virtual void verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 74 74 virtual void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 75 75 virtual void generateKey(const CryptoAlgorithmParameters&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, ExceptionCallback&&, ScriptExecutionContext&); -
trunk/Source/WebCore/crypto/CryptoAlgorithmParameters.h
r215382 r215423 44 44 EcKeyParams, 45 45 EcdhKeyDeriveParams, 46 EcdsaParams, 46 47 HkdfParams, 47 48 HmacKeyParams, -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
r213628 r215423 71 71 } 72 72 73 void CryptoAlgorithmHMAC::sign( Ref<CryptoKey>&& key, Vector<uint8_t>&& data, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue)73 void CryptoAlgorithmHMAC::sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&& key, Vector<uint8_t>&& data, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 74 74 { 75 75 platformSign(WTFMove(key), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), context, workQueue); 76 76 } 77 77 78 void CryptoAlgorithmHMAC::verify( Ref<CryptoKey>&& key, Vector<uint8_t>&& signature, Vector<uint8_t>&& data, BoolCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue)78 void CryptoAlgorithmHMAC::verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&& key, Vector<uint8_t>&& signature, Vector<uint8_t>&& data, BoolCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 79 79 { 80 80 platformVerify(WTFMove(key), WTFMove(signature), WTFMove(data), WTFMove(callback), WTFMove(exceptionCallback), context, workQueue); -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.h
r213628 r215423 45 45 CryptoAlgorithmIdentifier identifier() const final; 46 46 47 void sign( Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final;48 void verify( Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final;47 void sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 48 void verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 49 49 void generateKey(const CryptoAlgorithmParameters&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, ExceptionCallback&&, ScriptExecutionContext&) final; 50 50 void importKey(SubtleCrypto::KeyFormat, KeyData&&, const std::unique_ptr<CryptoAlgorithmParameters>&&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, ExceptionCallback&&) final; -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
r212465 r215423 70 70 } 71 71 72 void CryptoAlgorithmRSASSA_PKCS1_v1_5::sign( Ref<CryptoKey>&& key, Vector<uint8_t>&& data, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue)72 void CryptoAlgorithmRSASSA_PKCS1_v1_5::sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&& key, Vector<uint8_t>&& data, VectorCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 73 73 { 74 74 if (key->type() != CryptoKeyType::Private) { … … 79 79 } 80 80 81 void CryptoAlgorithmRSASSA_PKCS1_v1_5::verify( Ref<CryptoKey>&& key, Vector<uint8_t>&& signature, Vector<uint8_t>&& data, BoolCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue)81 void CryptoAlgorithmRSASSA_PKCS1_v1_5::verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&& key, Vector<uint8_t>&& signature, Vector<uint8_t>&& data, BoolCallback&& callback, ExceptionCallback&& exceptionCallback, ScriptExecutionContext& context, WorkQueue& workQueue) 82 82 { 83 83 if (key->type() != CryptoKeyType::Public) { -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h
r209150 r215423 45 45 CryptoAlgorithmIdentifier identifier() const final; 46 46 47 void sign( Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final;48 void verify( Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final;47 void sign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 48 void verify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 49 49 void generateKey(const CryptoAlgorithmParameters&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, ExceptionCallback&&, ScriptExecutionContext&) final; 50 50 void importKey(SubtleCrypto::KeyFormat, KeyData&&, const std::unique_ptr<CryptoAlgorithmParameters>&&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, ExceptionCallback&&) final; -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmECDSAGCrypt.cpp
r215422 r215423 1 1 /* 2 * Copyright (C) 201 6Apple Inc. All rights reserved.2 * Copyright (C) 2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #pragma once 27 28 #include "CryptoAlgorithmIdentifier.h" 29 #include <wtf/TypeCasts.h> 30 #include <wtf/text/WTFString.h> 26 #include "config.h" 27 #include "CryptoAlgorithmECDSA.h" 31 28 32 29 #if ENABLE(SUBTLE_CRYPTO) 33 30 31 #include "NotImplemented.h" 32 34 33 namespace WebCore { 35 34 36 class CryptoAlgorithmParameters { 37 public: 38 enum class Class { 39 None, 40 AesCbcCfbParams, 41 AesCtrParams, 42 AesGcmParams, 43 AesKeyParams, 44 EcKeyParams, 45 EcdhKeyDeriveParams, 46 HkdfParams, 47 HmacKeyParams, 48 Pbkdf2Params, 49 RsaHashedKeyGenParams, 50 RsaHashedImportParams, 51 RsaKeyGenParams, 52 RsaOaepParams, 53 }; 35 void CryptoAlgorithmECDSA::platformSign(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) 36 { 37 notImplemented(); 38 } 54 39 55 // FIXME: Consider merging name and identifier. 56 String name; 57 CryptoAlgorithmIdentifier identifier; 58 59 virtual ~CryptoAlgorithmParameters() { } 60 61 virtual Class parametersClass() const { return Class::None; } 62 }; 40 void CryptoAlgorithmECDSA::platformVerify(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) 41 { 42 notImplemented(); 43 } 63 44 64 45 } // namespace WebCore 65 46 66 #define SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(ToClassName) \67 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::CryptoAlgorithm##ToClassName) \68 static bool isType(const WebCore::CryptoAlgorithmParameters& parameters) { return parameters.parametersClass() == WebCore::CryptoAlgorithmParameters::Class::ToClassName; } \69 SPECIALIZE_TYPE_TRAITS_END()70 71 47 #endif // ENABLE(SUBTLE_CRYPTO) -
trunk/Source/WebCore/crypto/mac/CommonCryptoDERUtilities.cpp
r215422 r215423 24 24 */ 25 25 26 #pragma once 26 #include "config.h" 27 #include "CommonCryptoDERUtilities.h" 27 28 28 29 #if ENABLE(SUBTLE_CRYPTO) … … 30 31 namespace WebCore { 31 32 32 // Per X.690 08/2015: https://www.itu.int/rec/T-REC-X.680-X.693/en 33 static const unsigned char BitStringMark = 0x03; 34 static const unsigned char OctetStringMark = 0x04; 35 static const unsigned char SequenceMark = 0x30; 36 // Version 0. Per https://tools.ietf.org/html/rfc5208#section-5 37 static const unsigned char Version[] = {0x02, 0x01, 0x00}; 38 39 static const unsigned char InitialOctet = 0x00; 40 static const size_t MaxLengthInOneByte = 128; 41 42 static size_t bytesUsedToEncodedLength(uint8_t octet) 33 size_t bytesUsedToEncodedLength(uint8_t octet) 43 34 { 44 35 if (octet < MaxLengthInOneByte) … … 47 38 } 48 39 49 s tatic size_t extraBytesNeededForEncodedLength(size_t length)40 size_t extraBytesNeededForEncodedLength(size_t length) 50 41 { 51 42 if (!length) … … 57 48 } 58 49 59 staticvoid addEncodedASN1Length(Vector<uint8_t>& in, size_t length)50 void addEncodedASN1Length(Vector<uint8_t>& in, size_t length) 60 51 { 61 52 if (length < MaxLengthInOneByte) { … … 75 66 } 76 67 77 s tatic size_t bytesNeededForEncodedLength(size_t length)68 size_t bytesNeededForEncodedLength(size_t length) 78 69 { 79 70 if (length < MaxLengthInOneByte) -
trunk/Source/WebCore/crypto/mac/CommonCryptoDERUtilities.h
r214074 r215423 26 26 #pragma once 27 27 28 #include <wtf/Vector.h> 29 28 30 #if ENABLE(SUBTLE_CRYPTO) 29 31 32 // FIXME: <rdar://problem/31618371> 33 // The following constants and functions are for customized DER implementations. 34 // They are not intended to be used outside Crypto codes, and should be removed 35 // once the above bug is fixed. 30 36 namespace WebCore { 31 37 32 38 // Per X.690 08/2015: https://www.itu.int/rec/T-REC-X.680-X.693/en 33 39 static const unsigned char BitStringMark = 0x03; 40 static const unsigned char IntegerMark = 0x02; 34 41 static const unsigned char OctetStringMark = 0x04; 35 42 static const unsigned char SequenceMark = 0x30; … … 40 47 static const size_t MaxLengthInOneByte = 128; 41 48 42 static size_t bytesUsedToEncodedLength(uint8_t octet) 43 { 44 if (octet < MaxLengthInOneByte) 45 return 1; 46 return octet - MaxLengthInOneByte + 1; 47 } 48 49 static size_t extraBytesNeededForEncodedLength(size_t length) 50 { 51 if (!length) 52 return 0; 53 size_t result = 1; 54 while (result < sizeof(length) && length >= (1 << (result * 8))) 55 result += 1; 56 return result; 57 } 58 59 static void addEncodedASN1Length(Vector<uint8_t>& in, size_t length) 60 { 61 if (length < MaxLengthInOneByte) { 62 in.append(length); 63 return; 64 } 65 66 size_t extraBytes = extraBytesNeededForEncodedLength(length); 67 in.append(128 + extraBytes); // 128 is used to set the first bit of this byte. 68 69 size_t lastPosition = in.size() + extraBytes - 1; 70 in.grow(in.size() + extraBytes); 71 for (size_t i = 0; i < extraBytes; i++) { 72 in[lastPosition - i] = length & 0xff; 73 length = length >> 8; 74 } 75 } 76 77 static size_t bytesNeededForEncodedLength(size_t length) 78 { 79 if (length < MaxLengthInOneByte) 80 return 1; 81 return 1 + extraBytesNeededForEncodedLength(length); 82 } 49 size_t bytesUsedToEncodedLength(uint8_t); 50 size_t extraBytesNeededForEncodedLength(size_t); 51 void addEncodedASN1Length(Vector<uint8_t>&, size_t); 52 size_t bytesNeededForEncodedLength(size_t); 83 53 84 54 } // namespace WebCore -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRegistryMac.cpp
r215382 r215423 35 35 #include "CryptoAlgorithmAES_KW.h" 36 36 #include "CryptoAlgorithmECDH.h" 37 #include "CryptoAlgorithmECDSA.h" 37 38 #include "CryptoAlgorithmHKDF.h" 38 39 #include "CryptoAlgorithmHMAC.h" … … 57 58 registerAlgorithm<CryptoAlgorithmAES_KW>(); 58 59 registerAlgorithm<CryptoAlgorithmECDH>(); 60 registerAlgorithm<CryptoAlgorithmECDSA>(); 59 61 registerAlgorithm<CryptoAlgorithmHKDF>(); 60 62 registerAlgorithm<CryptoAlgorithmHMAC>(); -
trunk/Source/WebCore/crypto/parameters/CryptoAlgorithmEcdsaParams.h
r215422 r215423 1 1 /* 2 * Copyright (C) 201 6Apple Inc. All rights reserved.2 * Copyright (C) 2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #pragma once 27 27 28 #include "CryptoAlgorithmIdentifier.h" 29 #include <wtf/TypeCasts.h> 30 #include <wtf/text/WTFString.h> 28 #include "CryptoAlgorithmParameters.h" 29 #include <runtime/JSCJSValue.h> 31 30 32 31 #if ENABLE(SUBTLE_CRYPTO) … … 34 33 namespace WebCore { 35 34 36 class CryptoAlgorithm Parameters {35 class CryptoAlgorithmEcdsaParams final : public CryptoAlgorithmParameters { 37 36 public: 38 enum class Class { 39 None, 40 AesCbcCfbParams, 41 AesCtrParams, 42 AesGcmParams, 43 AesKeyParams, 44 EcKeyParams, 45 EcdhKeyDeriveParams, 46 HkdfParams, 47 HmacKeyParams, 48 Pbkdf2Params, 49 RsaHashedKeyGenParams, 50 RsaHashedImportParams, 51 RsaKeyGenParams, 52 RsaOaepParams, 53 }; 37 // FIXME: Consider merging hash and hashIdentifier. 38 JSC::JSValue hash; 39 CryptoAlgorithmIdentifier hashIdentifier; 54 40 55 // FIXME: Consider merging name and identifier. 56 String name; 57 CryptoAlgorithmIdentifier identifier; 58 59 virtual ~CryptoAlgorithmParameters() { } 60 61 virtual Class parametersClass() const { return Class::None; } 41 Class parametersClass() const final { return Class::EcdsaParams; } 62 42 }; 63 43 64 44 } // namespace WebCore 65 45 66 #define SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(ToClassName) \ 67 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::CryptoAlgorithm##ToClassName) \ 68 static bool isType(const WebCore::CryptoAlgorithmParameters& parameters) { return parameters.parametersClass() == WebCore::CryptoAlgorithmParameters::Class::ToClassName; } \ 69 SPECIALIZE_TYPE_TRAITS_END() 46 SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(EcdsaParams) 70 47 71 48 #endif // ENABLE(SUBTLE_CRYPTO) -
trunk/Source/WebCore/crypto/parameters/EcdsaParams.idl
r215422 r215423 1 1 /* 2 * Copyright (C) 201 6Apple Inc. All rights reserved.2 * Copyright (C) 2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #pragma once 27 28 #include "CryptoAlgorithmIdentifier.h" 29 #include <wtf/TypeCasts.h> 30 #include <wtf/text/WTFString.h> 31 32 #if ENABLE(SUBTLE_CRYPTO) 33 34 namespace WebCore { 35 36 class CryptoAlgorithmParameters { 37 public: 38 enum class Class { 39 None, 40 AesCbcCfbParams, 41 AesCtrParams, 42 AesGcmParams, 43 AesKeyParams, 44 EcKeyParams, 45 EcdhKeyDeriveParams, 46 HkdfParams, 47 HmacKeyParams, 48 Pbkdf2Params, 49 RsaHashedKeyGenParams, 50 RsaHashedImportParams, 51 RsaKeyGenParams, 52 RsaOaepParams, 53 }; 54 55 // FIXME: Consider merging name and identifier. 56 String name; 57 CryptoAlgorithmIdentifier identifier; 58 59 virtual ~CryptoAlgorithmParameters() { } 60 61 virtual Class parametersClass() const { return Class::None; } 26 [ 27 Conditional=SUBTLE_CRYPTO, 28 ImplementedAs=CryptoAlgorithmEcdsaParams 29 ] dictionary EcdsaParams : CryptoAlgorithmParameters { 30 // The hash algorithm to use 31 required any hash; 62 32 }; 63 64 } // namespace WebCore65 66 #define SPECIALIZE_TYPE_TRAITS_CRYPTO_ALGORITHM_PARAMETERS(ToClassName) \67 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::CryptoAlgorithm##ToClassName) \68 static bool isType(const WebCore::CryptoAlgorithmParameters& parameters) { return parameters.parametersClass() == WebCore::CryptoAlgorithmParameters::Class::ToClassName; } \69 SPECIALIZE_TYPE_TRAITS_END()70 71 #endif // ENABLE(SUBTLE_CRYPTO)
Note: See TracChangeset
for help on using the changeset viewer.