Changeset 220941 in webkit
- Timestamp:
- Aug 18, 2017 4:24:59 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 23 deleted
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r220936 r220941 1 2017-08-18 Sam Weinig <sam@webkit.org> 2 3 Remove the deprecated WebKitSubtleCrypto interface 4 https://bugs.webkit.org/show_bug.cgi?id=164938 5 <rdar://problem/29894563> 6 7 Reviewed by Chris Dumez. 8 9 * crypto/webkitSubtle: Removed. 10 * crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt-expected.txt: Removed. 11 * crypto/webkitSubtle/aes-cbc-192-encrypt-decrypt.html: Removed. 12 * crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt-expected.txt: Removed. 13 * crypto/webkitSubtle/aes-cbc-256-encrypt-decrypt.html: Removed. 14 * crypto/webkitSubtle/aes-cbc-encrypt-decrypt-expected.txt: Removed. 15 * crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding-expected.txt: Removed. 16 * crypto/webkitSubtle/aes-cbc-encrypt-decrypt-with-padding.html: Removed. 17 * crypto/webkitSubtle/aes-cbc-encrypt-decrypt.html: Removed. 18 * crypto/webkitSubtle/aes-cbc-generate-key-expected.txt: Removed. 19 * crypto/webkitSubtle/aes-cbc-generate-key.html: Removed. 20 * crypto/webkitSubtle/aes-cbc-import-jwk-expected.txt: Removed. 21 * crypto/webkitSubtle/aes-cbc-import-jwk.html: Removed. 22 * crypto/webkitSubtle/aes-cbc-invalid-length-expected.txt: Removed. 23 * crypto/webkitSubtle/aes-cbc-invalid-length.html: Removed. 24 * crypto/webkitSubtle/aes-cbc-unwrap-failure-expected.txt: Removed. 25 * crypto/webkitSubtle/aes-cbc-unwrap-failure.html: Removed. 26 * crypto/webkitSubtle/aes-cbc-unwrap-rsa-expected.txt: Removed. 27 * crypto/webkitSubtle/aes-cbc-unwrap-rsa.html: Removed. 28 * crypto/webkitSubtle/aes-cbc-wrap-rsa-expected.txt: Removed. 29 * crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable-expected.txt: Removed. 30 * crypto/webkitSubtle/aes-cbc-wrap-rsa-non-extractable.html: Removed. 31 * crypto/webkitSubtle/aes-cbc-wrap-rsa.html: Removed. 32 * crypto/webkitSubtle/aes-cbc-wrong-key-class-expected.txt: Removed. 33 * crypto/webkitSubtle/aes-cbc-wrong-key-class.html: Removed. 34 * crypto/webkitSubtle/aes-export-key-expected.txt: Removed. 35 * crypto/webkitSubtle/aes-export-key.html: Removed. 36 * crypto/webkitSubtle/aes-kw-key-manipulation-expected.txt: Removed. 37 * crypto/webkitSubtle/aes-kw-key-manipulation.html: Removed. 38 * crypto/webkitSubtle/aes-kw-wrap-unwrap-aes-expected.txt: Removed. 39 * crypto/webkitSubtle/aes-kw-wrap-unwrap-aes.html: Removed. 40 * crypto/webkitSubtle/aes-postMessage-expected.txt: Removed. 41 * crypto/webkitSubtle/aes-postMessage.html: Removed. 42 * crypto/webkitSubtle/argument-conversion-expected.txt: Removed. 43 * crypto/webkitSubtle/argument-conversion.html: Removed. 44 * crypto/webkitSubtle/array-buffer-view-offset-expected.txt: Removed. 45 * crypto/webkitSubtle/array-buffer-view-offset.html: Removed. 46 * crypto/webkitSubtle/disallowed-in-worker-expected.txt: Removed. 47 * crypto/webkitSubtle/disallowed-in-worker.html: Removed. 48 * crypto/webkitSubtle/gc-2-expected.txt: Removed. 49 * crypto/webkitSubtle/gc-2.html: Removed. 50 * crypto/webkitSubtle/gc-3-expected.txt: Removed. 51 * crypto/webkitSubtle/gc-3.html: Removed. 52 * crypto/webkitSubtle/gc-expected.txt: Removed. 53 * crypto/webkitSubtle/gc.html: Removed. 54 * crypto/webkitSubtle/hmac-check-algorithm-expected.txt: Removed. 55 * crypto/webkitSubtle/hmac-check-algorithm.html: Removed. 56 * crypto/webkitSubtle/hmac-export-key-expected.txt: Removed. 57 * crypto/webkitSubtle/hmac-export-key.html: Removed. 58 * crypto/webkitSubtle/hmac-generate-key-expected.txt: Removed. 59 * crypto/webkitSubtle/hmac-generate-key.html: Removed. 60 * crypto/webkitSubtle/hmac-import-jwk-expected.txt: Removed. 61 * crypto/webkitSubtle/hmac-import-jwk.html: Removed. 62 * crypto/webkitSubtle/hmac-postMessage-expected.txt: Removed. 63 * crypto/webkitSubtle/hmac-postMessage.html: Removed. 64 * crypto/webkitSubtle/hmac-sign-verify-empty-key-expected.txt: Removed. 65 * crypto/webkitSubtle/hmac-sign-verify-empty-key.html: Removed. 66 * crypto/webkitSubtle/hmac-sign-verify-expected.txt: Removed. 67 * crypto/webkitSubtle/hmac-sign-verify.html: Removed. 68 * crypto/webkitSubtle/import-export-raw-key-leak-expected.txt: Removed. 69 * crypto/webkitSubtle/import-export-raw-key-leak.html: Removed. 70 * crypto/webkitSubtle/import-jwk-expected.txt: Removed. 71 * crypto/webkitSubtle/import-jwk.html: Removed. 72 * crypto/webkitSubtle/jwk-export-use-values-expected.txt: Removed. 73 * crypto/webkitSubtle/jwk-export-use-values.html: Removed. 74 * crypto/webkitSubtle/jwk-import-use-values-expected.txt: Removed. 75 * crypto/webkitSubtle/jwk-import-use-values.html: Removed. 76 * crypto/webkitSubtle/resources: Removed. 77 * crypto/webkitSubtle/resources/disallowed-in-worker.js: Removed. 78 * crypto/webkitSubtle/resources/rsa-indexeddb-non-exportable.js: Removed. 79 * crypto/webkitSubtle/resources/rsa-indexeddb.js: Removed. 80 * crypto/webkitSubtle/rsa-export-generated-keys-expected.txt: Removed. 81 * crypto/webkitSubtle/rsa-export-generated-keys.html: Removed. 82 * crypto/webkitSubtle/rsa-export-key-expected.txt: Removed. 83 * crypto/webkitSubtle/rsa-export-key.html: Removed. 84 * crypto/webkitSubtle/rsa-export-private-key-expected.txt: Removed. 85 * crypto/webkitSubtle/rsa-export-private-key.html: Removed. 86 * crypto/webkitSubtle/rsa-indexeddb-expected.txt: Removed. 87 * crypto/webkitSubtle/rsa-indexeddb-non-exportable-expected.txt: Removed. 88 * crypto/webkitSubtle/rsa-indexeddb-non-exportable-private-expected.txt: Removed. 89 * crypto/webkitSubtle/rsa-indexeddb-non-exportable-private.html: Removed. 90 * crypto/webkitSubtle/rsa-indexeddb-non-exportable.html: Removed. 91 * crypto/webkitSubtle/rsa-indexeddb-private-expected.txt: Removed. 92 * crypto/webkitSubtle/rsa-indexeddb-private.html: Removed. 93 * crypto/webkitSubtle/rsa-indexeddb.html: Removed. 94 * crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key-expected.txt: Removed. 95 * crypto/webkitSubtle/rsa-oaep-generate-non-extractable-key.html: Removed. 96 * crypto/webkitSubtle/rsa-oaep-key-manipulation-expected.txt: Removed. 97 * crypto/webkitSubtle/rsa-oaep-key-manipulation.html: Removed. 98 * crypto/webkitSubtle/rsa-oaep-plaintext-length-expected.txt: Removed. 99 * crypto/webkitSubtle/rsa-oaep-plaintext-length.html: Removed. 100 * crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes-expected.txt: Removed. 101 * crypto/webkitSubtle/rsa-oaep-wrap-unwrap-aes.html: Removed. 102 * crypto/webkitSubtle/rsa-postMessage-expected.txt: Removed. 103 * crypto/webkitSubtle/rsa-postMessage.html: Removed. 104 * crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt-expected.txt: Removed. 105 * crypto/webkitSubtle/rsaes-pkcs1-v1_5-decrypt.html: Removed. 106 * crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt: Removed. 107 * crypto/webkitSubtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html: Removed. 108 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-expected.txt: Removed. 109 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt: Removed. 110 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html: Removed. 111 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-generate-key.html: Removed. 112 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt: Removed. 113 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key-expected.txt: Removed. 114 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk-small-key.html: Removed. 115 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-import-jwk.html: Removed. 116 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify-expected.txt: Removed. 117 * crypto/webkitSubtle/rsassa-pkcs1-v1_5-sign-verify.html: Removed. 118 * crypto/webkitSubtle/sha-1-expected.txt: Removed. 119 * crypto/webkitSubtle/sha-1.html: Removed. 120 * crypto/webkitSubtle/sha-224-expected.txt: Removed. 121 * crypto/webkitSubtle/sha-224.html: Removed. 122 * crypto/webkitSubtle/sha-256-expected.txt: Removed. 123 * crypto/webkitSubtle/sha-256.html: Removed. 124 * crypto/webkitSubtle/sha-384-expected.txt: Removed. 125 * crypto/webkitSubtle/sha-384.html: Removed. 126 * crypto/webkitSubtle/sha-512-expected.txt: Removed. 127 * crypto/webkitSubtle/sha-512.html: Removed. 128 * crypto/webkitSubtle/unimplemented-unwrap-crash-expected.txt: Removed. 129 * crypto/webkitSubtle/unimplemented-unwrap-crash.html: Removed. 130 * crypto/webkitSubtle/unwrapKey-check-usage-expected.txt: Removed. 131 * crypto/webkitSubtle/unwrapKey-check-usage.html: Removed. 132 * crypto/webkitSubtle/wrapKey-check-usage-expected.txt: Removed. 133 * crypto/webkitSubtle/wrapKey-check-usage.html: Removed. 134 135 Remove webkitSubtleCrypto tests. 136 137 * fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt: 138 139 Remove webkitSubtleCrypto deprecation warning that no longer happens. 140 141 * platform/ios-wk1/TestExpectations: 142 * platform/win/TestExpectations: 143 * platform/wpe/TestExpectations: 144 145 Remove webkitSubtle tests from expectations files. 146 1 147 2017-08-18 Jonathan Bedard <jbedard@apple.com> 2 148 -
trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt
r219405 r220941 1 CONSOLE MESSAGE: line 106: WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead.2 1 Pass. WebKit didn't crash. -
trunk/LayoutTests/platform/gtk/TestExpectations
r220915 r220941 791 791 crypto/subtle/ecdh-import-spki-key-ecdh-identifier.html [ Pass ] 792 792 793 # These are legacy APIs that we don't support, apart from a few digest algorithms.794 webkit.org/b/133122 crypto/webkitSubtle [ Skip ]795 webkit.org/b/133319 crypto/webkitSubtle/sha-1.html [ Pass ]796 webkit.org/b/133319 crypto/webkitSubtle/sha-224.html [ Pass ]797 webkit.org/b/133319 crypto/webkitSubtle/sha-256.html [ Pass ]798 webkit.org/b/133319 crypto/webkitSubtle/sha-384.html [ Pass ]799 webkit.org/b/133319 crypto/webkitSubtle/sha-512.html [ Pass ]800 webkit.org/b/133320 crypto/webkitSubtle/hmac-check-algorithm.html [ Pass ]801 webkit.org/b/133320 crypto/webkitSubtle/hmac-export-key.html [ Pass ]802 webkit.org/b/133320 crypto/webkitSubtle/hmac-generate-key.html [ Pass ]803 webkit.org/b/133320 crypto/webkitSubtle/hmac-import-jwk.html [ Pass ]804 webkit.org/b/133320 crypto/webkitSubtle/hmac-sign-verify-empty-key.html [ Pass ]805 webkit.org/b/133320 crypto/webkitSubtle/hmac-sign-verify.html [ Pass ]806 807 793 # These are the imported web-platform-tests covering crypto sections we haven't implemented yet. 808 794 imported/w3c/web-platform-tests/WebCryptoAPI/ [ Slow ] -
trunk/LayoutTests/platform/ios-wk1/TestExpectations
r220311 r220941 1006 1006 imported/w3c/IndexedDB-private-browsing 1007 1007 imported/w3c/web-platform-tests/IndexedDB 1008 crypto/webkitSubtle/rsa-indexeddb-non-exportable-private.html1009 crypto/webkitSubtle/rsa-indexeddb-non-exportable.html1010 crypto/webkitSubtle/rsa-indexeddb-private.html1011 crypto/webkitSubtle/rsa-indexeddb.html1012 1008 fast/history/page-cache-indexed-closed-db.html 1013 1009 fast/history/page-cache-indexed-opened-db.html -
trunk/LayoutTests/platform/win/TestExpectations
r220912 r220941 258 258 http/tests/security/cross-origin-worker-indexeddb.html [ Skip ] 259 259 http/tests/security/no-indexeddb-from-sandbox.html [ Skip ] 260 crypto/webkitSubtle/rsa-indexeddb-non-exportable-private.html [ Skip ]261 crypto/webkitSubtle/rsa-indexeddb-non-exportable.html [ Skip ]262 crypto/webkitSubtle/rsa-indexeddb-private.html [ Skip ]263 crypto/webkitSubtle/rsa-indexeddb.html [ Skip ]264 260 fast/history/page-cache-indexed-closed-db.html [ Skip ] 265 261 fast/history/page-cache-indexed-opened-db.html [ Skip ] … … 583 579 584 580 # TODO crypto.subtle is not yet enabled 585 crypto/webkitSubtle/ [ Skip ]586 581 crypto/subtle/ [ Skip ] 587 582 crypto/workers/subtle/ [ Skip ] -
trunk/LayoutTests/platform/wpe/TestExpectations
r220460 r220941 662 662 webkit.org/b/159754 workers/bomb.html [ Slow ] 663 663 664 # We won't be supporting the deprecated interfaces.665 crypto/webkitSubtle [ Skip ]666 667 664 # These are failures that will be enabled once the relevant parts of implementation land. 668 665 webkit.org/b/133122 crypto/subtle/aes-cfb-generate-export-key-jwk-length-128.html [ Skip ] -
trunk/Source/WebCore/CMakeLists.txt
r220924 r220941 373 373 crypto/RsaOtherPrimesInfo.idl 374 374 crypto/SubtleCrypto.idl 375 crypto/WebKitSubtleCrypto.idl376 375 377 376 crypto/keys/CryptoAesKeyAlgorithm.idl … … 1187 1186 bindings/js/JSCallbackData.cpp 1188 1187 bindings/js/JSCanvasRenderingContext2DCustom.cpp 1189 bindings/js/JSCryptoAlgorithmDictionary.cpp1190 bindings/js/JSCryptoKeySerializationJWK.cpp1191 bindings/js/JSCryptoOperationData.cpp1192 1188 bindings/js/JSCustomElementInterface.cpp 1193 1189 bindings/js/JSCustomElementRegistryCustom.cpp … … 1259 1255 bindings/js/JSWebGPURenderPassAttachmentDescriptorCustom.cpp 1260 1256 bindings/js/JSWebGPURenderingContextCustom.cpp 1261 bindings/js/JSWebKitSubtleCryptoCustom.cpp1262 1257 bindings/js/JSWorkerGlobalScopeBase.cpp 1263 1258 bindings/js/JSWorkerGlobalScopeCustom.cpp … … 1318 1313 crypto/CryptoKey.cpp 1319 1314 crypto/SubtleCrypto.cpp 1320 crypto/WebKitSubtleCrypto.cpp1321 1315 1322 1316 crypto/algorithms/CryptoAlgorithmAES_CBC.cpp … … 1347 1341 crypto/keys/CryptoKeyRSA.cpp 1348 1342 crypto/keys/CryptoKeyRaw.cpp 1349 crypto/keys/CryptoKeySerializationRaw.cpp1350 1343 1351 1344 css/BasicShapeFunctions.cpp -
trunk/Source/WebCore/ChangeLog
r220940 r220941 1 2017-08-18 Sam Weinig <sam@webkit.org> 2 3 Remove the deprecated WebKitSubtleCrypto interface 4 https://bugs.webkit.org/show_bug.cgi?id=164938 5 <rdar://problem/29894563> 6 7 Reviewed by Chris Dumez. 8 9 Remove WebKitSubtleCrypto and all of its helper classes / functionality. 10 11 * CMakeLists.txt: 12 * DerivedSources.cpp: 13 * DerivedSources.make: 14 * WebCore.xcodeproj/project.pbxproj: 15 * bindings/js/JSCryptoAlgorithmDictionary.cpp: Removed. 16 * bindings/js/JSCryptoAlgorithmDictionary.h: Removed. 17 * bindings/js/JSCryptoKeySerializationJWK.cpp: Removed. 18 * bindings/js/JSCryptoKeySerializationJWK.h: Removed. 19 * bindings/js/JSCryptoOperationData.cpp: Removed. 20 * bindings/js/JSCryptoOperationData.h: Removed. 21 * bindings/js/JSWebKitSubtleCryptoCustom.cpp: Removed. 22 * crypto/CryptoAlgorithm.cpp: 23 (WebCore::CryptoAlgorithm::deriveKey): Deleted. 24 (WebCore::CryptoAlgorithm::encryptForWrapKey): Deleted. 25 (WebCore::CryptoAlgorithm::decryptForUnwrapKey): Deleted. 26 * crypto/CryptoAlgorithm.h: 27 * crypto/CryptoAlgorithmParametersDeprecated.h: Removed. 28 * crypto/CryptoKeySerialization.h: Removed. 29 * crypto/WebKitSubtleCrypto.cpp: Removed. 30 * crypto/WebKitSubtleCrypto.h: Removed. 31 * crypto/WebKitSubtleCrypto.idl: Removed. 32 * crypto/algorithms/CryptoAlgorithmAES_CBC.cpp: 33 (WebCore::CryptoAlgorithmAES_CBC::keyAlgorithmMatches const): Deleted. 34 * crypto/algorithms/CryptoAlgorithmAES_CBC.h: 35 * crypto/algorithms/CryptoAlgorithmAES_KW.cpp: 36 (WebCore::CryptoAlgorithmAES_KW::encryptForWrapKey): Deleted. 37 (WebCore::CryptoAlgorithmAES_KW::decryptForUnwrapKey): Deleted. 38 * crypto/algorithms/CryptoAlgorithmAES_KW.h: 39 * crypto/algorithms/CryptoAlgorithmHMAC.cpp: 40 (WebCore::CryptoAlgorithmHMAC::keyAlgorithmMatches const): Deleted. 41 * crypto/algorithms/CryptoAlgorithmHMAC.h: 42 * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp: 43 * crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h: 44 * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp: 45 (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::keyAlgorithmMatches const): Deleted. 46 * crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h: 47 * crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp: 48 (WebCore::CryptoAlgorithmRSA_OAEP::keyAlgorithmMatches const): Deleted. 49 * crypto/algorithms/CryptoAlgorithmRSA_OAEP.h: 50 * crypto/algorithms/CryptoAlgorithmSHA1.cpp: 51 * crypto/algorithms/CryptoAlgorithmSHA1.h: 52 * crypto/algorithms/CryptoAlgorithmSHA224.cpp: 53 * crypto/algorithms/CryptoAlgorithmSHA224.h: 54 * crypto/algorithms/CryptoAlgorithmSHA256.cpp: 55 * crypto/algorithms/CryptoAlgorithmSHA256.h: 56 * crypto/algorithms/CryptoAlgorithmSHA384.cpp: 57 * crypto/algorithms/CryptoAlgorithmSHA384.h: 58 * crypto/algorithms/CryptoAlgorithmSHA512.cpp: 59 * crypto/algorithms/CryptoAlgorithmSHA512.h: 60 * crypto/gcrypt/CryptoAlgorithmAES_CBCGCrypt.cpp: 61 * crypto/gcrypt/CryptoAlgorithmAES_KWGCrypt.cpp: 62 (WebCore::CryptoAlgorithmAES_KW::platformEncrypt): Deleted. 63 (WebCore::CryptoAlgorithmAES_KW::platformDecrypt): Deleted. 64 * crypto/gcrypt/CryptoAlgorithmHMACGCrypt.cpp: 65 * crypto/gcrypt/CryptoAlgorithmRSAES_PKCS1_v1_5GCrypt.cpp: 66 * crypto/gcrypt/CryptoAlgorithmRSASSA_PKCS1_v1_5GCrypt.cpp: 67 * crypto/gcrypt/CryptoAlgorithmRSA_OAEPGCrypt.cpp: 68 * crypto/keys/CryptoKeySerializationRaw.cpp: Removed. 69 * crypto/keys/CryptoKeySerializationRaw.h: Removed. 70 * crypto/mac/CryptoAlgorithmAES_CBCMac.cpp: 71 * crypto/mac/CryptoAlgorithmAES_KWMac.cpp: 72 (WebCore::CryptoAlgorithmAES_KW::platformEncrypt): Deleted. 73 (WebCore::CryptoAlgorithmAES_KW::platformDecrypt): Deleted. 74 * crypto/mac/CryptoAlgorithmHMACMac.cpp: 75 * crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp: 76 * crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp: 77 * crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp: 78 * crypto/parameters/CryptoAlgorithmAesCbcParamsDeprecated.h: Removed. 79 * crypto/parameters/CryptoAlgorithmAesKeyGenParamsDeprecated.h: Removed. 80 * crypto/parameters/CryptoAlgorithmHmacKeyParamsDeprecated.h: Removed. 81 * crypto/parameters/CryptoAlgorithmHmacParamsDeprecated.h: Removed. 82 * crypto/parameters/CryptoAlgorithmRsaKeyGenParamsDeprecated.h: Removed. 83 * crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h: Removed. 84 * crypto/parameters/CryptoAlgorithmRsaOaepParamsDeprecated.h: Removed. 85 * crypto/parameters/CryptoAlgorithmRsaSsaParamsDeprecated.h: Removed. 86 * features.json: 87 * page/Crypto.cpp: 88 * page/Crypto.h: 89 * page/Crypto.idl: 90 1 91 2017-08-18 Tim Horton <timothy_horton@apple.com> 2 92 -
trunk/Source/WebCore/DerivedSources.cpp
r220734 r220941 624 624 #include "JSWebKitPlaybackTargetAvailabilityEvent.cpp" 625 625 #include "JSWebKitPoint.cpp" 626 #include "JSWebKitSubtleCrypto.cpp"627 626 #include "JSWebKitTransitionEvent.cpp" 628 627 #include "JSWebSocket.cpp" -
trunk/Source/WebCore/DerivedSources.make
r220732 r220941 307 307 $(WebCore)/crypto/RsaOtherPrimesInfo.idl \ 308 308 $(WebCore)/crypto/SubtleCrypto.idl \ 309 $(WebCore)/crypto/WebKitSubtleCrypto.idl \310 309 $(WebCore)/crypto/keys/CryptoAesKeyAlgorithm.idl \ 311 310 $(WebCore)/crypto/keys/CryptoEcKeyAlgorithm.idl \ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r220935 r220941 2547 2547 5706A6981DDE5E4600A03B14 /* JSRsaOaepParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5706A6971DDE5E4600A03B14 /* JSRsaOaepParams.h */; }; 2548 2548 5706A69A1DDE5E8500A03B14 /* JSRsaOaepParams.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5706A6991DDE5E8500A03B14 /* JSRsaOaepParams.cpp */; }; 2549 5709E8CD1D413D47003244AC /* WebKitSubtleCrypto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5709E8CA1D413CE3003244AC /* WebKitSubtleCrypto.cpp */; };2550 5709E8CE1D413D5B003244AC /* JSWebKitSubtleCryptoCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF8F661807460800132674 /* JSWebKitSubtleCryptoCustom.cpp */; };2551 5709E8CF1D413D9A003244AC /* WebKitSubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = 5709E8CB1D413CE3003244AC /* WebKitSubtleCrypto.h */; };2552 570A99DA1D417408004EC630 /* JSWebKitSubtleCrypto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FF8F62180745D800132674 /* JSWebKitSubtleCrypto.cpp */; };2553 570A99DB1D41A2F3004EC630 /* JSWebKitSubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FF8F63180745D800132674 /* JSWebKitSubtleCrypto.h */; };2554 2549 571252691E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h in Headers */ = {isa = PBXBuildFile; fileRef = 571252681E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h */; }; 2555 2550 571F21891DA57C54005C9EFD /* JSSubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = 571F21881DA57C54005C9EFD /* JSSubtleCrypto.h */; }; … … 6494 6489 E125F8361822F18A00D84CD9 /* CryptoKeyHMAC.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F8341822F18A00D84CD9 /* CryptoKeyHMAC.h */; }; 6495 6490 E125F8381822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F8371822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp */; }; 6496 E125F83A1824104800D84CD9 /* CryptoAlgorithmAesCbcParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F8391824104800D84CD9 /* CryptoAlgorithmAesCbcParamsDeprecated.h */; };6497 E125F83D182411E700D84CD9 /* JSCryptoOperationData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F83B182411E700D84CD9 /* JSCryptoOperationData.cpp */; };6498 E125F83E182411E700D84CD9 /* JSCryptoOperationData.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F83C182411E700D84CD9 /* JSCryptoOperationData.h */; };6499 6491 E125F8411824253A00D84CD9 /* CryptoAlgorithmAES_CBC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F83F1824253A00D84CD9 /* CryptoAlgorithmAES_CBC.cpp */; }; 6500 6492 E125F8421824253A00D84CD9 /* CryptoAlgorithmAES_CBC.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F8401824253A00D84CD9 /* CryptoAlgorithmAES_CBC.h */; }; … … 6502 6494 E125F84D1824289D00D84CD9 /* CryptoKeyAES.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F84B1824289D00D84CD9 /* CryptoKeyAES.cpp */; }; 6503 6495 E125F84E1824289D00D84CD9 /* CryptoKeyAES.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F84C1824289D00D84CD9 /* CryptoKeyAES.h */; }; 6504 E125F85118283A5600D84CD9 /* JSCryptoKeySerializationJWK.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F84F18283A5600D84CD9 /* JSCryptoKeySerializationJWK.cpp */; };6505 E125F85218283A5600D84CD9 /* JSCryptoKeySerializationJWK.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F85018283A5600D84CD9 /* JSCryptoKeySerializationJWK.h */; };6506 E125F856182C0F8300D84CD9 /* CryptoKeySerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F855182C0F8300D84CD9 /* CryptoKeySerialization.h */; };6507 E125F859182C1AA600D84CD9 /* CryptoKeySerializationRaw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F857182C1AA600D84CD9 /* CryptoKeySerializationRaw.cpp */; };6508 E125F85A182C1AA600D84CD9 /* CryptoKeySerializationRaw.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F858182C1AA600D84CD9 /* CryptoKeySerializationRaw.h */; };6509 6496 E125F85E182C2DF600D84CD9 /* CryptoKeyData.h in Headers */ = {isa = PBXBuildFile; fileRef = E125F85D182C2DF600D84CD9 /* CryptoKeyData.h */; }; 6510 6497 E125F863182C303A00D84CD9 /* CryptoKeyDataOctetSequence.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E125F861182C303A00D84CD9 /* CryptoKeyDataOctetSequence.cpp */; }; … … 6588 6575 E19AC3F41824DC7900349426 /* CryptoAlgorithmSHA512.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E19AC3EC1824DC7900349426 /* CryptoAlgorithmSHA512.cpp */; }; 6589 6576 E19AC3F51824DC7900349426 /* CryptoAlgorithmSHA512.h in Headers */ = {isa = PBXBuildFile; fileRef = E19AC3ED1824DC7900349426 /* CryptoAlgorithmSHA512.h */; }; 6590 E19AC3F71824E5D100349426 /* CryptoAlgorithmAesKeyGenParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E19AC3F61824E5D100349426 /* CryptoAlgorithmAesKeyGenParamsDeprecated.h */; };6591 6577 E19AC3F9182566F700349426 /* CryptoKeyMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E19AC3F8182566F700349426 /* CryptoKeyMac.cpp */; }; 6592 E19DA29C18189ADD00088BC8 /* CryptoAlgorithmHmacKeyParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E19DA29B18189ADD00088BC8 /* CryptoAlgorithmHmacKeyParamsDeprecated.h */; };6593 6578 E1A1470811102B1500EEC0F3 /* ContainerNodeAlgorithms.h in Headers */ = {isa = PBXBuildFile; fileRef = E1A1470711102B1500EEC0F3 /* ContainerNodeAlgorithms.h */; }; 6594 6579 E1A3162D134BC32D007C9A4F /* WebNSAttributedStringExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = E1A3162B134BC32D007C9A4F /* WebNSAttributedStringExtras.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 6617 6602 E1BD3319182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BD3317182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp */; }; 6618 6603 E1BD331A182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BD3318182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.h */; }; 6619 E1BD331C182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BD331B182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h */; };6620 E1BD331E182D8F4200C05D9F /* CryptoAlgorithmRsaKeyGenParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BD331D182D8F4200C05D9F /* CryptoAlgorithmRsaKeyGenParamsDeprecated.h */; };6621 6604 E1BE512D0CF6C512002EA959 /* XSLTUnicodeSort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BE512B0CF6C512002EA959 /* XSLTUnicodeSort.cpp */; }; 6622 6605 E1BE512E0CF6C512002EA959 /* XSLTUnicodeSort.h in Headers */ = {isa = PBXBuildFile; fileRef = E1BE512C0CF6C512002EA959 /* XSLTUnicodeSort.h */; }; 6623 6606 E1C266D818317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1C266D618317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp */; }; 6624 E1C266DB18319935003F8B33 /* CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C266DA18319935003F8B33 /* CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h */; };6625 6607 E1C266DE18319F31003F8B33 /* CryptoKeyDataRSAComponents.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1C266DC18319F31003F8B33 /* CryptoKeyDataRSAComponents.cpp */; }; 6626 6608 E1C266DF18319F31003F8B33 /* CryptoKeyDataRSAComponents.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C266DD18319F31003F8B33 /* CryptoKeyDataRSAComponents.h */; }; … … 6637 6619 E1C4DE690EA75C1E0023CCD6 /* ActiveDOMObject.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C4DE680EA75C1E0023CCD6 /* ActiveDOMObject.h */; settings = {ATTRIBUTES = (Private, ); }; }; 6638 6620 E1C4DE6E0EA75C650023CCD6 /* ActiveDOMObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1C4DE6D0EA75C650023CCD6 /* ActiveDOMObject.cpp */; }; 6639 E1C657121815F9DD00256CDD /* JSCryptoAlgorithmDictionary.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1C657101815F9DD00256CDD /* JSCryptoAlgorithmDictionary.cpp */; };6640 E1C657131815F9DD00256CDD /* JSCryptoAlgorithmDictionary.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C657111815F9DD00256CDD /* JSCryptoAlgorithmDictionary.h */; };6641 E1C6571F1816E50300256CDD /* CryptoAlgorithmHmacParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C6571E1816E50300256CDD /* CryptoAlgorithmHmacParamsDeprecated.h */; };6642 6621 E1C657251816E69D00256CDD /* CryptoAlgorithmIdentifier.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C657241816E69D00256CDD /* CryptoAlgorithmIdentifier.h */; }; 6643 E1C657271816F9FE00256CDD /* CryptoAlgorithmParametersDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C657261816F9FE00256CDD /* CryptoAlgorithmParametersDeprecated.h */; };6644 6622 E1C8BE5D0E8BD15A0064CB7D /* JSWorker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1C8BE5C0E8BD15A0064CB7D /* JSWorker.cpp */; }; 6645 6623 E1C94AF9191303F000D5A893 /* BlobPart.h in Headers */ = {isa = PBXBuildFile; fileRef = E1C94AF7191303F000D5A893 /* BlobPart.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 6665 6643 E1FE137418402A6700892F13 /* CommonCryptoUtilities.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FE137218402A6700892F13 /* CommonCryptoUtilities.cpp */; }; 6666 6644 E1FE137518402A6700892F13 /* CommonCryptoUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FE137318402A6700892F13 /* CommonCryptoUtilities.h */; }; 6667 E1FE1377184D1E3300892F13 /* CryptoAlgorithmRsaOaepParamsDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FE1376184D1E3300892F13 /* CryptoAlgorithmRsaOaepParamsDeprecated.h */; };6668 6645 E1FE137A184D21BB00892F13 /* CryptoAlgorithmAES_KW.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1FE1378184D21BB00892F13 /* CryptoAlgorithmAES_KW.cpp */; }; 6669 6646 E1FE137B184D21BB00892F13 /* CryptoAlgorithmAES_KW.h in Headers */ = {isa = PBXBuildFile; fileRef = E1FE1379184D21BB00892F13 /* CryptoAlgorithmAES_KW.h */; }; … … 10321 10298 5706A6971DDE5E4600A03B14 /* JSRsaOaepParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSRsaOaepParams.h; sourceTree = "<group>"; }; 10322 10299 5706A6991DDE5E8500A03B14 /* JSRsaOaepParams.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSRsaOaepParams.cpp; sourceTree = "<group>"; }; 10323 5709E8CA1D413CE3003244AC /* WebKitSubtleCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebKitSubtleCrypto.cpp; sourceTree = "<group>"; };10324 5709E8CB1D413CE3003244AC /* WebKitSubtleCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebKitSubtleCrypto.h; sourceTree = "<group>"; };10325 5709E8CC1D413CE3003244AC /* WebKitSubtleCrypto.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebKitSubtleCrypto.idl; sourceTree = "<group>"; };10326 10300 571252681E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAES_CFB.h; sourceTree = "<group>"; }; 10327 10301 5712526A1E52527C008FF369 /* CryptoAlgorithmAES_CFB.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmAES_CFB.cpp; sourceTree = "<group>"; }; … … 15099 15073 E125F8341822F18A00D84CD9 /* CryptoKeyHMAC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeyHMAC.h; sourceTree = "<group>"; }; 15100 15074 E125F8371822F1EB00D84CD9 /* CryptoAlgorithmHMACMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmHMACMac.cpp; sourceTree = "<group>"; }; 15101 E125F8391824104800D84CD9 /* CryptoAlgorithmAesCbcParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAesCbcParamsDeprecated.h; sourceTree = "<group>"; };15102 E125F83B182411E700D84CD9 /* JSCryptoOperationData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCryptoOperationData.cpp; sourceTree = "<group>"; };15103 E125F83C182411E700D84CD9 /* JSCryptoOperationData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCryptoOperationData.h; sourceTree = "<group>"; };15104 15075 E125F83F1824253A00D84CD9 /* CryptoAlgorithmAES_CBC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmAES_CBC.cpp; sourceTree = "<group>"; }; 15105 15076 E125F8401824253A00D84CD9 /* CryptoAlgorithmAES_CBC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAES_CBC.h; sourceTree = "<group>"; }; … … 15107 15078 E125F84B1824289D00D84CD9 /* CryptoKeyAES.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoKeyAES.cpp; sourceTree = "<group>"; }; 15108 15079 E125F84C1824289D00D84CD9 /* CryptoKeyAES.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeyAES.h; sourceTree = "<group>"; }; 15109 E125F84F18283A5600D84CD9 /* JSCryptoKeySerializationJWK.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCryptoKeySerializationJWK.cpp; sourceTree = "<group>"; };15110 E125F85018283A5600D84CD9 /* JSCryptoKeySerializationJWK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCryptoKeySerializationJWK.h; sourceTree = "<group>"; };15111 E125F855182C0F8300D84CD9 /* CryptoKeySerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeySerialization.h; sourceTree = "<group>"; };15112 E125F857182C1AA600D84CD9 /* CryptoKeySerializationRaw.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoKeySerializationRaw.cpp; sourceTree = "<group>"; };15113 E125F858182C1AA600D84CD9 /* CryptoKeySerializationRaw.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeySerializationRaw.h; sourceTree = "<group>"; };15114 15080 E125F85D182C2DF600D84CD9 /* CryptoKeyData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeyData.h; sourceTree = "<group>"; }; 15115 15081 E125F861182C303A00D84CD9 /* CryptoKeyDataOctetSequence.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoKeyDataOctetSequence.cpp; sourceTree = "<group>"; }; … … 15198 15164 E19AC3EC1824DC7900349426 /* CryptoAlgorithmSHA512.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmSHA512.cpp; sourceTree = "<group>"; }; 15199 15165 E19AC3ED1824DC7900349426 /* CryptoAlgorithmSHA512.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmSHA512.h; sourceTree = "<group>"; }; 15200 E19AC3F61824E5D100349426 /* CryptoAlgorithmAesKeyGenParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAesKeyGenParamsDeprecated.h; sourceTree = "<group>"; };15201 15166 E19AC3F8182566F700349426 /* CryptoKeyMac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoKeyMac.cpp; sourceTree = "<group>"; }; 15202 E19DA29B18189ADD00088BC8 /* CryptoAlgorithmHmacKeyParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmHmacKeyParamsDeprecated.h; sourceTree = "<group>"; };15203 15167 E1A1470711102B1500EEC0F3 /* ContainerNodeAlgorithms.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContainerNodeAlgorithms.h; sourceTree = "<group>"; }; 15204 15168 E1A3162B134BC32D007C9A4F /* WebNSAttributedStringExtras.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebNSAttributedStringExtras.h; sourceTree = "<group>"; }; … … 15235 15199 E1BD3317182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp; sourceTree = "<group>"; }; 15236 15200 E1BD3318182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRSASSA_PKCS1_v1_5.h; sourceTree = "<group>"; }; 15237 E1BD331B182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRsaSsaParamsDeprecated.h; sourceTree = "<group>"; };15238 E1BD331D182D8F4200C05D9F /* CryptoAlgorithmRsaKeyGenParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRsaKeyGenParamsDeprecated.h; sourceTree = "<group>"; };15239 15201 E1BE512B0CF6C512002EA959 /* XSLTUnicodeSort.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XSLTUnicodeSort.cpp; sourceTree = "<group>"; }; 15240 15202 E1BE512C0CF6C512002EA959 /* XSLTUnicodeSort.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XSLTUnicodeSort.h; sourceTree = "<group>"; }; 15241 15203 E1C266D618317AB4003F8B33 /* CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp; sourceTree = "<group>"; }; 15242 E1C266DA18319935003F8B33 /* CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h; sourceTree = "<group>"; };15243 15204 E1C266DC18319F31003F8B33 /* CryptoKeyDataRSAComponents.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoKeyDataRSAComponents.cpp; sourceTree = "<group>"; }; 15244 15205 E1C266DD18319F31003F8B33 /* CryptoKeyDataRSAComponents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoKeyDataRSAComponents.h; sourceTree = "<group>"; }; … … 15255 15216 E1C4DE680EA75C1E0023CCD6 /* ActiveDOMObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ActiveDOMObject.h; sourceTree = "<group>"; }; 15256 15217 E1C4DE6D0EA75C650023CCD6 /* ActiveDOMObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ActiveDOMObject.cpp; sourceTree = "<group>"; }; 15257 E1C657101815F9DD00256CDD /* JSCryptoAlgorithmDictionary.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCryptoAlgorithmDictionary.cpp; sourceTree = "<group>"; };15258 E1C657111815F9DD00256CDD /* JSCryptoAlgorithmDictionary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCryptoAlgorithmDictionary.h; sourceTree = "<group>"; };15259 E1C6571E1816E50300256CDD /* CryptoAlgorithmHmacParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmHmacParamsDeprecated.h; sourceTree = "<group>"; };15260 15218 E1C657241816E69D00256CDD /* CryptoAlgorithmIdentifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmIdentifier.h; sourceTree = "<group>"; }; 15261 E1C657261816F9FE00256CDD /* CryptoAlgorithmParametersDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmParametersDeprecated.h; sourceTree = "<group>"; };15262 15219 E1C6CFC21746D293007B87A1 /* DOMWindowConstructors.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = DOMWindowConstructors.idl; sourceTree = "<group>"; }; 15263 15220 E1C8BE5C0E8BD15A0064CB7D /* JSWorker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWorker.cpp; sourceTree = "<group>"; }; … … 15286 15243 E1FE137218402A6700892F13 /* CommonCryptoUtilities.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CommonCryptoUtilities.cpp; sourceTree = "<group>"; }; 15287 15244 E1FE137318402A6700892F13 /* CommonCryptoUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommonCryptoUtilities.h; sourceTree = "<group>"; }; 15288 E1FE1376184D1E3300892F13 /* CryptoAlgorithmRsaOaepParamsDeprecated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRsaOaepParamsDeprecated.h; sourceTree = "<group>"; };15289 15245 E1FE1378184D21BB00892F13 /* CryptoAlgorithmAES_KW.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmAES_KW.cpp; sourceTree = "<group>"; }; 15290 15246 E1FE1379184D21BB00892F13 /* CryptoAlgorithmAES_KW.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAES_KW.h; sourceTree = "<group>"; }; … … 15292 15248 E1FF57A20F01255B00891EBB /* ThreadGlobalData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThreadGlobalData.h; sourceTree = "<group>"; }; 15293 15249 E1FF57A50F01256B00891EBB /* ThreadGlobalData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ThreadGlobalData.cpp; sourceTree = "<group>"; }; 15294 E1FF8F62180745D800132674 /* JSWebKitSubtleCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebKitSubtleCrypto.cpp; sourceTree = "<group>"; };15295 E1FF8F63180745D800132674 /* JSWebKitSubtleCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebKitSubtleCrypto.h; sourceTree = "<group>"; };15296 E1FF8F661807460800132674 /* JSWebKitSubtleCryptoCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebKitSubtleCryptoCustom.cpp; sourceTree = "<group>"; };15297 15250 E1FF8F6A180DB5BE00132674 /* CryptoAlgorithmRegistry.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmRegistry.cpp; sourceTree = "<group>"; }; 15298 15251 E1FF8F6B180DB5BE00132674 /* CryptoAlgorithmRegistry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmRegistry.h; sourceTree = "<group>"; }; … … 23587 23540 C585A66011D4FAC5004C3E4B /* IDBBindingUtilities.cpp */, 23588 23541 C585A66111D4FAC5004C3E4B /* IDBBindingUtilities.h */, 23589 E1C657101815F9DD00256CDD /* JSCryptoAlgorithmDictionary.cpp */,23590 E1C657111815F9DD00256CDD /* JSCryptoAlgorithmDictionary.h */,23591 E125F84F18283A5600D84CD9 /* JSCryptoKeySerializationJWK.cpp */,23592 E125F85018283A5600D84CD9 /* JSCryptoKeySerializationJWK.h */,23593 E125F83B182411E700D84CD9 /* JSCryptoOperationData.cpp */,23594 E125F83C182411E700D84CD9 /* JSCryptoOperationData.h */,23595 23542 9BD4E9141C462872005065BC /* JSCustomElementInterface.cpp */, 23596 23543 9BD4E9151C462872005065BC /* JSCustomElementInterface.h */, … … 23681 23628 BCE1C43F0D9830F4003B02F2 /* JSLocationCustom.cpp */, 23682 23629 418C395D1C8F0AAB0051C8A3 /* JSReadableStreamSourceCustom.cpp */, 23683 E1FF8F661807460800132674 /* JSWebKitSubtleCryptoCustom.cpp */,23684 23630 ); 23685 23631 name = Custom; … … 24627 24573 57E2336A1DCC262400F28D01 /* CryptoKeyRSA.cpp */, 24628 24574 E164FAA218315BF400DB4E61 /* CryptoKeyRSA.h */, 24629 E125F857182C1AA600D84CD9 /* CryptoKeySerializationRaw.cpp */,24630 E125F858182C1AA600D84CD9 /* CryptoKeySerializationRaw.h */,24631 24575 7C9ACAA61F3CCEB400F3AA09 /* CryptoRsaHashedKeyAlgorithm.h */, 24632 24576 7C9ACAA71F3CCEB400F3AA09 /* CryptoRsaHashedKeyAlgorithm.idl */, … … 24645 24589 577483101DADC49900716EF9 /* AesKeyParams.idl */, 24646 24590 572093D21DDCEB9A00310AB0 /* CryptoAlgorithmAesCbcCfbParams.h */, 24647 E125F8391824104800D84CD9 /* CryptoAlgorithmAesCbcParamsDeprecated.h */,24648 24591 57E1E5A61E8DBD3E00EE37C9 /* CryptoAlgorithmAesCtrParams.h */, 24649 24592 57B5F8081E5D1A9800F34F90 /* CryptoAlgorithmAesGcmParams.h */, 24650 E19AC3F61824E5D100349426 /* CryptoAlgorithmAesKeyGenParamsDeprecated.h */,24651 24593 577483111DADC55D00716EF9 /* CryptoAlgorithmAesKeyParams.h */, 24652 24594 576814291E6F99C100E77754 /* CryptoAlgorithmEcdhKeyDeriveParams.h */, … … 24655 24597 57957CAF1E972645008072AB /* CryptoAlgorithmHkdfParams.h */, 24656 24598 577483181DB4491F00716EF9 /* CryptoAlgorithmHmacKeyParams.h */, 24657 E19DA29B18189ADD00088BC8 /* CryptoAlgorithmHmacKeyParamsDeprecated.h */,24658 E1C6571E1816E50300256CDD /* CryptoAlgorithmHmacParamsDeprecated.h */,24659 24599 57E657EB1E7162EA00F941CA /* CryptoAlgorithmPbkdf2Params.h */, 24660 24600 57E2336D1DCD43FD00F28D01 /* CryptoAlgorithmRsaHashedImportParams.h */, 24661 24601 57E233741DCD6D3B00F28D01 /* CryptoAlgorithmRsaHashedKeyGenParams.h */, 24662 24602 57FEDD3E1DB6D59200EB96F5 /* CryptoAlgorithmRsaKeyGenParams.h */, 24663 E1BD331D182D8F4200C05D9F /* CryptoAlgorithmRsaKeyGenParamsDeprecated.h */,24664 E1C266DA18319935003F8B33 /* CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h */,24665 24603 5706A6951DDE5C9500A03B14 /* CryptoAlgorithmRsaOaepParams.h */, 24666 E1FE1376184D1E3300892F13 /* CryptoAlgorithmRsaOaepParamsDeprecated.h */,24667 24604 5721A9881ECE57040081295A /* CryptoAlgorithmRsaPssParams.h */, 24668 E1BD331B182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h */,24669 24605 576814281E6F98AD00E77754 /* EcdhKeyDeriveParams.idl */, 24670 24606 57EEAA4E1E9FFBFC00701124 /* EcdsaParams.idl */, … … 24801 24737 573489381DAC6B6D00DC0667 /* CryptoAlgorithmParameters.h */, 24802 24738 574AC7531DAC367D00E9744C /* CryptoAlgorithmParameters.idl */, 24803 E1C657261816F9FE00256CDD /* CryptoAlgorithmParametersDeprecated.h */,24804 24739 E1FF8F6A180DB5BE00132674 /* CryptoAlgorithmRegistry.cpp */, 24805 24740 E1FF8F6B180DB5BE00132674 /* CryptoAlgorithmRegistry.h */, … … 24811 24746 E1F80B8618317252007885C3 /* CryptoKeyPair.h */, 24812 24747 E1F80B8418317247007885C3 /* CryptoKeyPair.idl */, 24813 E125F855182C0F8300D84CD9 /* CryptoKeySerialization.h */,24814 24748 E19727151820549E00592D51 /* CryptoKeyType.h */, 24815 24749 E172AF6F180F289500FBADB9 /* CryptoKeyUsage.h */, … … 24823 24757 5778BD811DA4802C009E3009 /* SubtleCrypto.h */, 24824 24758 5778BD801DA4733E009E3009 /* SubtleCrypto.idl */, 24825 5709E8CA1D413CE3003244AC /* WebKitSubtleCrypto.cpp */,24826 5709E8CB1D413CE3003244AC /* WebKitSubtleCrypto.h */,24827 5709E8CC1D413CE3003244AC /* WebKitSubtleCrypto.idl */,24828 24759 ); 24829 24760 path = crypto; … … 24889 24820 571F218A1DA57C7A005C9EFD /* JSSubtleCrypto.cpp */, 24890 24821 571F21881DA57C54005C9EFD /* JSSubtleCrypto.h */, 24891 E1FF8F62180745D800132674 /* JSWebKitSubtleCrypto.cpp */,24892 E1FF8F63180745D800132674 /* JSWebKitSubtleCrypto.h */,24893 24822 ); 24894 24823 name = Crypto; … … 26922 26851 E1FE137B184D21BB00892F13 /* CryptoAlgorithmAES_KW.h in Headers */, 26923 26852 572093D31DDCEB9A00310AB0 /* CryptoAlgorithmAesCbcCfbParams.h in Headers */, 26924 E125F83A1824104800D84CD9 /* CryptoAlgorithmAesCbcParamsDeprecated.h in Headers */,26925 26853 57E1E5A71E8DBD3E00EE37C9 /* CryptoAlgorithmAesCtrParams.h in Headers */, 26926 26854 57B5F8091E5D1A9800F34F90 /* CryptoAlgorithmAesGcmParams.h in Headers */, 26927 E19AC3F71824E5D100349426 /* CryptoAlgorithmAesKeyGenParamsDeprecated.h in Headers */,26928 26855 577483121DADC55D00716EF9 /* CryptoAlgorithmAesKeyParams.h in Headers */, 26929 26856 5750A9871E6A216800705C4A /* CryptoAlgorithmECDH.h in Headers */, … … 26936 26863 E125F8321822F11B00D84CD9 /* CryptoAlgorithmHMAC.h in Headers */, 26937 26864 577483191DB4491F00716EF9 /* CryptoAlgorithmHmacKeyParams.h in Headers */, 26938 E19DA29C18189ADD00088BC8 /* CryptoAlgorithmHmacKeyParamsDeprecated.h in Headers */,26939 E1C6571F1816E50300256CDD /* CryptoAlgorithmHmacParamsDeprecated.h in Headers */,26940 26865 E1C657251816E69D00256CDD /* CryptoAlgorithmIdentifier.h in Headers */, 26941 26866 573489391DAC6B6E00DC0667 /* CryptoAlgorithmParameters.h in Headers */, 26942 E1C657271816F9FE00256CDD /* CryptoAlgorithmParametersDeprecated.h in Headers */,26943 26867 57777E391E71217D00EE1A8D /* CryptoAlgorithmPBKDF2.h in Headers */, 26944 26868 57E657EC1E7162EA00F941CA /* CryptoAlgorithmPbkdf2Params.h in Headers */, … … 26949 26873 57E2336E1DCD43FD00F28D01 /* CryptoAlgorithmRsaHashedImportParams.h in Headers */, 26950 26874 57FEDD3F1DB6D59200EB96F5 /* CryptoAlgorithmRsaKeyGenParams.h in Headers */, 26951 E1BD331E182D8F4200C05D9F /* CryptoAlgorithmRsaKeyGenParamsDeprecated.h in Headers */,26952 E1C266DB18319935003F8B33 /* CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h in Headers */,26953 26875 5706A6961DDE5C9500A03B14 /* CryptoAlgorithmRsaOaepParams.h in Headers */, 26954 E1FE1377184D1E3300892F13 /* CryptoAlgorithmRsaOaepParamsDeprecated.h in Headers */,26955 26876 5721A98B1ECE57040081295A /* CryptoAlgorithmRsaPssParams.h in Headers */, 26956 26877 E1BD331A182D8DDD00C05D9F /* CryptoAlgorithmRSASSA_PKCS1_v1_5.h in Headers */, 26957 E1BD331C182D8EE900C05D9F /* CryptoAlgorithmRsaSsaParamsDeprecated.h in Headers */,26958 26878 E125F82C1822CFEC00D84CD9 /* CryptoAlgorithmSHA1.h in Headers */, 26959 26879 E19AC3EF1824DC7900349426 /* CryptoAlgorithmSHA224.h in Headers */, … … 26975 26895 57E657DF1E71373A00F941CA /* CryptoKeyRaw.h in Headers */, 26976 26896 E164FAA318315BF400DB4E61 /* CryptoKeyRSA.h in Headers */, 26977 E125F856182C0F8300D84CD9 /* CryptoKeySerialization.h in Headers */,26978 E125F85A182C1AA600D84CD9 /* CryptoKeySerializationRaw.h in Headers */,26979 26897 E19727161820549E00592D51 /* CryptoKeyType.h in Headers */, 26980 26898 E172AF70180F289500FBADB9 /* CryptoKeyUsage.h in Headers */, … … 27889 27807 975CA2A21303679D00E99AD9 /* JSCrypto.h in Headers */, 27890 27808 7C9ACAB81F3CF1AE00F3AA09 /* JSCryptoAesKeyAlgorithm.h in Headers */, 27891 E1C657131815F9DD00256CDD /* JSCryptoAlgorithmDictionary.h in Headers */,27892 27809 5739E12F1DAC7F7800E14383 /* JSCryptoAlgorithmParameters.h in Headers */, 27893 27810 7C9ACABA1F3CF1AE00F3AA09 /* JSCryptoEcKeyAlgorithm.h in Headers */, … … 27896 27813 7C9ACABE1F3CF1AF00F3AA09 /* JSCryptoKeyAlgorithm.h in Headers */, 27897 27814 E1F80B8E183172B5007885C3 /* JSCryptoKeyPair.h in Headers */, 27898 E125F85218283A5600D84CD9 /* JSCryptoKeySerializationJWK.h in Headers */,27899 27815 57D0018D1DD5413200ED19D9 /* JSCryptoKeyUsage.h in Headers */, 27900 E125F83E182411E700D84CD9 /* JSCryptoOperationData.h in Headers */,27901 27816 7C9ACAC01F3CF1AF00F3AA09 /* JSCryptoRsaHashedKeyAlgorithm.h in Headers */, 27902 27817 7C9ACAC21F3CF1AF00F3AA09 /* JSCryptoRsaKeyAlgorithm.h in Headers */, … … 28560 28475 0FDA7C271883333200C954B5 /* JSWebKitPlaybackTargetAvailabilityEvent.h in Headers */, 28561 28476 494BD79E0F55C94C00747828 /* JSWebKitPoint.h in Headers */, 28562 570A99DB1D41A2F3004EC630 /* JSWebKitSubtleCrypto.h in Headers */,28563 28477 31C0FF400E4CEFAC007D6FE5 /* JSWebKitTransitionEvent.h in Headers */, 28564 28478 5DA5E0FD102B953800088CF9 /* JSWebSocket.h in Headers */, … … 30191 30105 A5DEBDA416FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.h in Headers */, 30192 30106 494BD7950F55C8EE00747828 /* WebKitPoint.h in Headers */, 30193 5709E8CF1D413D9A003244AC /* WebKitSubtleCrypto.h in Headers */,30194 30107 31C0FF250E4CEB6E007D6FE5 /* WebKitTransitionEvent.h in Headers */, 30195 30108 0FCF332F0F2B9A25004B6795 /* WebLayer.h in Headers */, … … 31034 30947 57E2336B1DCC262400F28D01 /* CryptoKeyRSA.cpp in Sources */, 31035 30948 E164FAA518315E1A00DB4E61 /* CryptoKeyRSAMac.cpp in Sources */, 31036 E125F859182C1AA600D84CD9 /* CryptoKeySerializationRaw.cpp in Sources */,31037 30949 316FE1130E6E1DA700BF6088 /* CSSAnimationController.cpp in Sources */, 31038 30950 31BC742D1AAFF45C006B4340 /* CSSAnimationTriggerScrollValue.cpp in Sources */, … … 31873 31785 975CA2A11303679D00E99AD9 /* JSCrypto.cpp in Sources */, 31874 31786 7C9ACAB71F3CF1AE00F3AA09 /* JSCryptoAesKeyAlgorithm.cpp in Sources */, 31875 E1C657121815F9DD00256CDD /* JSCryptoAlgorithmDictionary.cpp in Sources */,31876 31787 5739E1311DAC7FD100E14383 /* JSCryptoAlgorithmParameters.cpp in Sources */, 31877 31788 7C9ACAB91F3CF1AE00F3AA09 /* JSCryptoEcKeyAlgorithm.cpp in Sources */, … … 31880 31791 7C9ACABD1F3CF1AE00F3AA09 /* JSCryptoKeyAlgorithm.cpp in Sources */, 31881 31792 E1F80B8D183172B5007885C3 /* JSCryptoKeyPair.cpp in Sources */, 31882 E125F85118283A5600D84CD9 /* JSCryptoKeySerializationJWK.cpp in Sources */,31883 31793 57D0018F1DD5415300ED19D9 /* JSCryptoKeyUsage.cpp in Sources */, 31884 E125F83D182411E700D84CD9 /* JSCryptoOperationData.cpp in Sources */,31885 31794 7C9ACABF1F3CF1AF00F3AA09 /* JSCryptoRsaHashedKeyAlgorithm.cpp in Sources */, 31886 31795 7C9ACAC11F3CF1AF00F3AA09 /* JSCryptoRsaKeyAlgorithm.cpp in Sources */, … … 32585 32494 0FDA7C261883333200C954B5 /* JSWebKitPlaybackTargetAvailabilityEvent.cpp in Sources */, 32586 32495 494BD79D0F55C94C00747828 /* JSWebKitPoint.cpp in Sources */, 32587 570A99DA1D417408004EC630 /* JSWebKitSubtleCrypto.cpp in Sources */,32588 5709E8CE1D413D5B003244AC /* JSWebKitSubtleCryptoCustom.cpp in Sources */,32589 32496 31C0FF3F0E4CEFAC007D6FE5 /* JSWebKitTransitionEvent.cpp in Sources */, 32590 32497 5DA5E0FC102B953800088CF9 /* JSWebSocket.cpp in Sources */, … … 33917 33824 7C48A6D0191C9D6500026674 /* WebKitNamespace.cpp in Sources */, 33918 33825 A5DEBDA316FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.cpp in Sources */, 33919 5709E8CD1D413D47003244AC /* WebKitSubtleCrypto.cpp in Sources */,33920 33826 31C0FF240E4CEB6E007D6FE5 /* WebKitTransitionEvent.cpp in Sources */, 33921 33827 0FCF332E0F2B9A25004B6795 /* WebLayer.mm in Sources */, -
trunk/Source/WebCore/crypto/CryptoAlgorithm.cpp
r220811 r220941 91 91 } 92 92 93 ExceptionOr<void> CryptoAlgorithm::encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)94 {95 return Exception { NotSupportedError };96 }97 98 ExceptionOr<void> CryptoAlgorithm::decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)99 {100 return Exception { NotSupportedError };101 }102 103 ExceptionOr<void> CryptoAlgorithm::sign(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)104 {105 return Exception { NotSupportedError };106 }107 108 ExceptionOr<void> CryptoAlgorithm::verify(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, const CryptoOperationData&, BoolCallback&&, VoidCallback&&)109 {110 return Exception { NotSupportedError };111 }112 113 ExceptionOr<void> CryptoAlgorithm::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)114 {115 return Exception { NotSupportedError };116 }117 118 ExceptionOr<void> CryptoAlgorithm::generateKey(const CryptoAlgorithmParametersDeprecated&, bool, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&&, ScriptExecutionContext&)119 {120 return Exception { NotSupportedError };121 }122 123 ExceptionOr<void> CryptoAlgorithm::deriveKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, CryptoAlgorithm*, bool, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&&)124 {125 return Exception { NotSupportedError };126 }127 128 ExceptionOr<void> CryptoAlgorithm::deriveBits(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, size_t, VectorCallback&&, VoidCallback&&)129 {130 return Exception { NotSupportedError };131 }132 133 ExceptionOr<void> CryptoAlgorithm::importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&&)134 {135 return Exception { NotSupportedError };136 }137 138 ExceptionOr<void> CryptoAlgorithm::encryptForWrapKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)139 {140 return encrypt(parameters, key, data, WTFMove(callback), WTFMove(failureCallback));141 }142 143 ExceptionOr<void> CryptoAlgorithm::decryptForUnwrapKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)144 {145 return decrypt(parameters, key, data, WTFMove(callback), WTFMove(failureCallback));146 }147 148 93 } 149 94 -
trunk/Source/WebCore/crypto/CryptoAlgorithm.h
r220811 r220941 43 43 44 44 class CryptoAlgorithmParameters; 45 class CryptoAlgorithmParametersDeprecated;46 45 class CryptoKey; 47 46 class CryptoKeyData; 48 47 class ScriptExecutionContext; 49 50 // Data is mutable, so async operations should copy it first.51 using CryptoOperationData = std::pair<const uint8_t*, size_t>;52 48 53 49 using KeyData = Variant<Vector<uint8_t>, JsonWebKey>; … … 82 78 virtual void unwrapKey(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&); 83 79 virtual ExceptionOr<size_t> getKeyLength(const CryptoAlgorithmParameters&); 84 85 // The following will be deprecated.86 virtual ExceptionOr<void> encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);87 virtual ExceptionOr<void> decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);88 virtual ExceptionOr<void> sign(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);89 virtual ExceptionOr<void> verify(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData& signature, const CryptoOperationData&, BoolCallback&&, VoidCallback&& failureCallback);90 virtual ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);91 virtual ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&);92 virtual ExceptionOr<void> deriveKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& baseKey, CryptoAlgorithm* derivedKeyType, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback);93 virtual ExceptionOr<void> deriveBits(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& baseKey, size_t length, VectorCallback&&, VoidCallback&& failureCallback);94 virtual ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback);95 96 // These are only different from encrypt/decrypt because some algorithms may not expose encrypt/decrypt.97 virtual ExceptionOr<void> encryptForWrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);98 virtual ExceptionOr<void> decryptForUnwrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);99 80 }; 100 81 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.cpp
r220811 r220941 30 30 31 31 #include "CryptoAlgorithmAesCbcCfbParams.h" 32 #include "CryptoAlgorithmAesCbcParamsDeprecated.h"33 #include "CryptoAlgorithmAesKeyGenParamsDeprecated.h"34 32 #include "CryptoAlgorithmAesKeyParams.h" 35 33 #include "CryptoKeyAES.h" … … 56 54 { 57 55 return s_identifier; 58 }59 60 bool CryptoAlgorithmAES_CBC::keyAlgorithmMatches(const CryptoAlgorithmAesCbcParamsDeprecated&, const CryptoKey& key) const61 {62 if (key.algorithmIdentifier() != s_identifier)63 return false;64 ASSERT(is<CryptoKeyAES>(key));65 return true;66 56 } 67 57 … … 191 181 } 192 182 193 ExceptionOr<void> CryptoAlgorithmAES_CBC::encrypt(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)194 {195 auto& aesCBCParameters = downcast<CryptoAlgorithmAesCbcParamsDeprecated>(parameters);196 if (!keyAlgorithmMatches(aesCBCParameters, key))197 return Exception { NotSupportedError };198 return platformEncrypt(aesCBCParameters, downcast<CryptoKeyAES>(key), data, WTFMove(callback), WTFMove(failureCallback));199 }200 201 ExceptionOr<void> CryptoAlgorithmAES_CBC::decrypt(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)202 {203 auto& aesCBCParameters = downcast<CryptoAlgorithmAesCbcParamsDeprecated>(parameters);204 if (!keyAlgorithmMatches(aesCBCParameters, key))205 return Exception { NotSupportedError };206 return platformDecrypt(aesCBCParameters, downcast<CryptoKeyAES>(key), data, WTFMove(callback), WTFMove(failureCallback));207 }208 209 ExceptionOr<void> CryptoAlgorithmAES_CBC::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext&)210 {211 auto& aesParameters = downcast<CryptoAlgorithmAesKeyGenParamsDeprecated>(parameters);212 213 auto result = CryptoKeyAES::generate(CryptoAlgorithmIdentifier::AES_CBC, aesParameters.length, extractable, usages);214 if (!result) {215 failureCallback();216 return { };217 }218 219 callback(WTFMove(result));220 return { };221 }222 223 ExceptionOr<void> CryptoAlgorithmAES_CBC::importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&&)224 {225 if (!is<CryptoKeyDataOctetSequence>(keyData))226 return Exception { NotSupportedError };227 auto& keyDataOctetSequence = downcast<CryptoKeyDataOctetSequence>(keyData);228 callback(CryptoKeyAES::create(CryptoAlgorithmIdentifier::AES_CBC, keyDataOctetSequence.octetSequence(), extractable, usage));229 return { };230 }231 232 183 } 233 184 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_CBC.h
r220811 r220941 32 32 namespace WebCore { 33 33 34 class CryptoAlgorithmAesCbcParamsDeprecated;35 34 class CryptoKeyAES; 36 35 … … 52 51 ExceptionOr<size_t> getKeyLength(const CryptoAlgorithmParameters&) final; 53 52 54 ExceptionOr<void> encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;55 ExceptionOr<void> decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;56 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;57 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;58 59 bool keyAlgorithmMatches(const CryptoAlgorithmAesCbcParamsDeprecated& algorithmParameters, const CryptoKey&) const;60 53 void platformEncrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 61 54 void platformDecrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 62 ExceptionOr<void> platformEncrypt(const CryptoAlgorithmAesCbcParamsDeprecated&, const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);63 ExceptionOr<void> platformDecrypt(const CryptoAlgorithmAesCbcParamsDeprecated&, const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);64 55 }; 65 56 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.cpp
r220811 r220941 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoAlgorithmAesKeyGenParamsDeprecated.h"32 31 #include "CryptoAlgorithmAesKeyParams.h" 33 32 #include "CryptoKeyAES.h" … … 54 53 { 55 54 return s_identifier; 56 }57 58 bool CryptoAlgorithmAES_KW::keyAlgorithmMatches(const CryptoKey& key) const59 {60 if (key.algorithmIdentifier() != s_identifier)61 return false;62 ASSERT(is<CryptoKeyAES>(key));63 return true;64 55 } 65 56 … … 178 169 } 179 170 180 ExceptionOr<void> CryptoAlgorithmAES_KW::encryptForWrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)181 {182 if (!keyAlgorithmMatches(key))183 return Exception { NotSupportedError };184 return platformEncrypt(downcast<CryptoKeyAES>(key), data, WTFMove(callback), WTFMove(failureCallback));185 }186 187 ExceptionOr<void> CryptoAlgorithmAES_KW::decryptForUnwrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)188 {189 if (!keyAlgorithmMatches(key))190 return Exception { NotSupportedError };191 return platformDecrypt(downcast<CryptoKeyAES>(key), data, WTFMove(callback), WTFMove(failureCallback));192 }193 194 ExceptionOr<void> CryptoAlgorithmAES_KW::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext&)195 {196 auto result = CryptoKeyAES::generate(CryptoAlgorithmIdentifier::AES_KW, downcast<CryptoAlgorithmAesKeyGenParamsDeprecated>(parameters).length, extractable, usages);197 if (!result) {198 failureCallback();199 return { };200 }201 202 callback(WTFMove(result));203 return { };204 }205 206 ExceptionOr<void> CryptoAlgorithmAES_KW::importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&&)207 {208 if (!is<CryptoKeyDataOctetSequence>(keyData))209 return Exception { NotSupportedError };210 callback(CryptoKeyAES::create(CryptoAlgorithmIdentifier::AES_KW, downcast<CryptoKeyDataOctetSequence>(keyData).octetSequence(), extractable, usage));211 return { };212 }213 214 171 } 215 172 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_KW.h
r220811 r220941 51 51 ExceptionOr<size_t> getKeyLength(const CryptoAlgorithmParameters&) final; 52 52 53 ExceptionOr<void> encryptForWrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;54 ExceptionOr<void> decryptForUnwrapKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;55 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;56 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;57 58 bool keyAlgorithmMatches(const CryptoKey&) const;59 53 void platformWrapKey(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&); 60 54 void platformUnwrapKey(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&); 61 ExceptionOr<void> platformEncrypt(const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);62 ExceptionOr<void> platformDecrypt(const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);63 55 }; 64 56 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
r220811 r220941 30 30 31 31 #include "CryptoAlgorithmHmacKeyParams.h" 32 #include "CryptoAlgorithmHmacKeyParamsDeprecated.h"33 #include "CryptoAlgorithmHmacParamsDeprecated.h"34 32 #include "CryptoKeyDataOctetSequence.h" 35 33 #include "CryptoKeyHMAC.h" … … 57 55 { 58 56 return s_identifier; 59 }60 61 bool CryptoAlgorithmHMAC::keyAlgorithmMatches(const CryptoAlgorithmHmacParamsDeprecated& parameters, const CryptoKey& key) const62 {63 if (key.algorithmIdentifier() != s_identifier)64 return false;65 66 if (downcast<CryptoKeyHMAC>(key).hashAlgorithmIdentifier() != parameters.hash)67 return false;68 69 return true;70 57 } 71 58 … … 202 189 } 203 190 204 ExceptionOr<void> CryptoAlgorithmHMAC::sign(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)205 {206 auto& hmacParameters = downcast<CryptoAlgorithmHmacParamsDeprecated>(parameters);207 if (!keyAlgorithmMatches(hmacParameters, key))208 return Exception { NotSupportedError };209 return platformSign(hmacParameters, downcast<CryptoKeyHMAC>(key), data, WTFMove(callback), WTFMove(failureCallback));210 }211 212 ExceptionOr<void> CryptoAlgorithmHMAC::verify(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& expectedSignature, const CryptoOperationData& data, BoolCallback&& callback, VoidCallback&& failureCallback)213 {214 auto& hmacParameters = downcast<CryptoAlgorithmHmacParamsDeprecated>(parameters);215 if (!keyAlgorithmMatches(hmacParameters, key))216 return Exception { NotSupportedError };217 return platformVerify(hmacParameters, downcast<CryptoKeyHMAC>(key), expectedSignature, data, WTFMove(callback), WTFMove(failureCallback));218 }219 220 ExceptionOr<void> CryptoAlgorithmHMAC::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext&)221 {222 auto& hmacParameters = downcast<CryptoAlgorithmHmacKeyParamsDeprecated>(parameters);223 auto result = CryptoKeyHMAC::generate(hmacParameters.hasLength ? hmacParameters.length : 0, hmacParameters.hash, extractable, usages);224 if (!result) {225 failureCallback();226 return { };227 }228 callback(WTFMove(result));229 return { };230 }231 232 ExceptionOr<void> CryptoAlgorithmHMAC::importKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&&)233 {234 if (!is<CryptoKeyDataOctetSequence>(keyData))235 return Exception { NotSupportedError };236 callback(CryptoKeyHMAC::create(downcast<CryptoKeyDataOctetSequence>(keyData).octetSequence(), downcast<CryptoAlgorithmHmacParamsDeprecated>(parameters).hash, extractable, usage));237 return { };238 }239 240 191 } 241 192 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.h
r220811 r220941 32 32 namespace WebCore { 33 33 34 class CryptoAlgorithmHmacParamsDeprecated;35 34 class CryptoKeyHMAC; 36 35 … … 52 51 ExceptionOr<size_t> getKeyLength(const CryptoAlgorithmParameters&) final; 53 52 54 // The following will be deprecated.55 ExceptionOr<void> sign(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;56 ExceptionOr<void> verify(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData& signature, const CryptoOperationData&, BoolCallback&&, VoidCallback&& failureCallback) final;57 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;58 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;59 60 bool keyAlgorithmMatches(const CryptoAlgorithmHmacParamsDeprecated& algorithmParameters, const CryptoKey&) const;61 53 void platformSign(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 62 54 void platformVerify(Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 63 ExceptionOr<void> platformSign(const CryptoAlgorithmHmacParamsDeprecated&, const CryptoKeyHMAC&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);64 ExceptionOr<void> platformVerify(const CryptoAlgorithmHmacParamsDeprecated&, const CryptoKeyHMAC&, const CryptoOperationData& signature, const CryptoOperationData&, BoolCallback&&, VoidCallback&& failureCallback);65 55 }; 66 56 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp
r220811 r220941 30 30 31 31 #include "CryptoAlgorithmRsaKeyGenParams.h" 32 #include "CryptoAlgorithmRsaKeyGenParamsDeprecated.h"33 #include "CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h"34 32 #include "CryptoKeyDataRSAComponents.h" 35 33 #include "CryptoKeyPair.h" … … 49 47 { 50 48 return s_identifier; 51 }52 53 bool CryptoAlgorithmRSAES_PKCS1_v1_5::keyAlgorithmMatches(const CryptoKey& key) const54 {55 if (key.algorithmIdentifier() != s_identifier)56 return false;57 ASSERT(is<CryptoKeyRSA>(key));58 59 return true;60 49 } 61 50 … … 192 181 } 193 182 194 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)195 {196 if (!keyAlgorithmMatches(key))197 return Exception { NotSupportedError };198 return platformEncrypt(downcast<CryptoKeyRSA>(key), data, WTFMove(callback), WTFMove(failureCallback));199 }200 201 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)202 {203 if (!keyAlgorithmMatches(key))204 return Exception { NotSupportedError };205 return platformDecrypt(downcast<CryptoKeyRSA>(key), data, WTFMove(callback), WTFMove(failureCallback));206 }207 208 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext& context)209 {210 auto& rsaParameters = downcast<CryptoAlgorithmRsaKeyGenParamsDeprecated>(parameters);211 auto keyPairCallback = [capturedCallback = WTFMove(callback)](CryptoKeyPair&& pair) {212 capturedCallback(WTFMove(pair));213 };214 CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5, rsaParameters.hash, rsaParameters.hasHash, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTFMove(keyPairCallback), WTFMove(failureCallback), &context);215 return { };216 }217 218 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::importKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&& failureCallback)219 {220 auto& rsaParameters = downcast<CryptoAlgorithmRsaKeyParamsWithHashDeprecated>(parameters);221 auto& rsaComponents = downcast<CryptoKeyDataRSAComponents>(keyData);222 auto result = CryptoKeyRSA::create(CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5, rsaParameters.hash, rsaParameters.hasHash, rsaComponents, extractable, usage);223 if (!result) {224 failureCallback();225 return { };226 }227 callback(*result);228 return { };229 }230 231 183 } 232 184 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h
r220811 r220941 51 51 void exportKey(CryptoKeyFormat, Ref<CryptoKey>&&, KeyDataCallback&&, ExceptionCallback&&) final; 52 52 53 ExceptionOr<void> encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;54 ExceptionOr<void> decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;55 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;56 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;57 58 bool keyAlgorithmMatches(const CryptoKey&) const;59 53 void platformEncrypt(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 60 54 void platformDecrypt(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 61 ExceptionOr<void> platformEncrypt(const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);62 ExceptionOr<void> platformDecrypt(const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);63 55 }; 64 56 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp
r220811 r220941 31 31 #include "CryptoAlgorithmRsaHashedImportParams.h" 32 32 #include "CryptoAlgorithmRsaHashedKeyGenParams.h" 33 #include "CryptoAlgorithmRsaKeyGenParamsDeprecated.h"34 #include "CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h"35 #include "CryptoAlgorithmRsaSsaParamsDeprecated.h"36 33 #include "CryptoKeyDataRSAComponents.h" 37 34 #include "CryptoKeyPair.h" … … 55 52 { 56 53 return s_identifier; 57 }58 59 bool CryptoAlgorithmRSASSA_PKCS1_v1_5::keyAlgorithmMatches(const CryptoAlgorithmRsaSsaParamsDeprecated& algorithmParameters, const CryptoKey& key) const60 {61 if (key.algorithmIdentifier() != s_identifier)62 return false;63 64 CryptoAlgorithmIdentifier keyHash;65 if (downcast<CryptoKeyRSA>(key).isRestrictedToHash(keyHash) && keyHash != algorithmParameters.hash)66 return false;67 68 return true;69 54 } 70 55 … … 245 230 } 246 231 247 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::sign(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)248 {249 auto& rsaSSAParameters = downcast<CryptoAlgorithmRsaSsaParamsDeprecated>(parameters);250 if (!keyAlgorithmMatches(rsaSSAParameters, key))251 return Exception { NotSupportedError };252 return platformSign(rsaSSAParameters, downcast<CryptoKeyRSA>(key), data, WTFMove(callback), WTFMove(failureCallback));253 }254 255 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::verify(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& signature, const CryptoOperationData& data, BoolCallback&& callback, VoidCallback&& failureCallback)256 {257 auto& rsaSSAParameters = downcast<CryptoAlgorithmRsaSsaParamsDeprecated>(parameters);258 if (!keyAlgorithmMatches(rsaSSAParameters, key))259 return Exception { NotSupportedError };260 return platformVerify(rsaSSAParameters, downcast<CryptoKeyRSA>(key), signature, data, WTFMove(callback), WTFMove(failureCallback));261 }262 263 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext& context)264 {265 auto& rsaParameters = downcast<CryptoAlgorithmRsaKeyGenParamsDeprecated>(parameters);266 auto keyPairCallback = [capturedCallback = WTFMove(callback)](CryptoKeyPair&& pair) {267 capturedCallback(WTFMove(pair));268 };269 CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5, rsaParameters.hash, rsaParameters.hasHash, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTFMove(keyPairCallback), WTFMove(failureCallback), &context);270 return { };271 }272 273 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::importKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&& failureCallback)274 {275 auto& rsaKeyParameters = downcast<CryptoAlgorithmRsaKeyParamsWithHashDeprecated>(parameters);276 auto& rsaComponents = downcast<CryptoKeyDataRSAComponents>(keyData);277 auto result = CryptoKeyRSA::create(CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5, rsaKeyParameters.hash, rsaKeyParameters.hasHash, rsaComponents, extractable, usage);278 if (!result) {279 failureCallback();280 return { };281 }282 callback(*result);283 return { };284 }285 286 232 } 287 233 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h
r220811 r220941 32 32 namespace WebCore { 33 33 34 class CryptoAlgorithmRsaSsaParamsDeprecated;35 34 class CryptoKeyRSA; 36 35 … … 51 50 void exportKey(CryptoKeyFormat, Ref<CryptoKey>&&, KeyDataCallback&&, ExceptionCallback&&) final; 52 51 53 ExceptionOr<void> sign(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;54 ExceptionOr<void> verify(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData& signature, const CryptoOperationData&, BoolCallback&&, VoidCallback&& failureCallback) final;55 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;56 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;57 58 bool keyAlgorithmMatches(const CryptoAlgorithmRsaSsaParamsDeprecated& algorithmParameters, const CryptoKey&) const;59 52 void platformSign(Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 60 53 void platformVerify(Ref<CryptoKey>&&, Vector<uint8_t>&& signature, Vector<uint8_t>&&, BoolCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 61 ExceptionOr<void> platformSign(const CryptoAlgorithmRsaSsaParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);62 ExceptionOr<void> platformVerify(const CryptoAlgorithmRsaSsaParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData& signature, const CryptoOperationData&, BoolCallback&&, VoidCallback&& failureCallback);63 54 }; 64 55 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp
r220811 r220941 31 31 #include "CryptoAlgorithmRsaHashedImportParams.h" 32 32 #include "CryptoAlgorithmRsaHashedKeyGenParams.h" 33 #include "CryptoAlgorithmRsaKeyGenParamsDeprecated.h"34 #include "CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h"35 #include "CryptoAlgorithmRsaOaepParamsDeprecated.h"36 33 #include "CryptoKeyDataRSAComponents.h" 37 34 #include "CryptoKeyPair.h" … … 55 52 { 56 53 return s_identifier; 57 }58 59 bool CryptoAlgorithmRSA_OAEP::keyAlgorithmMatches(const CryptoAlgorithmRsaOaepParamsDeprecated& algorithmParameters, const CryptoKey& key) const60 {61 if (key.algorithmIdentifier() != s_identifier)62 return false;63 64 CryptoAlgorithmIdentifier keyHash;65 if (downcast<CryptoKeyRSA>(key).isRestrictedToHash(keyHash) && keyHash != algorithmParameters.hash)66 return false;67 68 return true;69 54 } 70 55 … … 261 246 } 262 247 263 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::encrypt(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)264 {265 auto& rsaOAEPParameters = downcast<CryptoAlgorithmRsaOaepParamsDeprecated>(parameters);266 if (!keyAlgorithmMatches(rsaOAEPParameters, key))267 return Exception { NotSupportedError };268 return platformEncrypt(rsaOAEPParameters, downcast<CryptoKeyRSA>(key), data, WTFMove(callback), WTFMove(failureCallback));269 }270 271 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::decrypt(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKey& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)272 {273 auto& rsaOAEPParameters = downcast<CryptoAlgorithmRsaOaepParamsDeprecated>(parameters);274 if (!keyAlgorithmMatches(rsaOAEPParameters, key))275 return Exception { NotSupportedError };276 return platformDecrypt(rsaOAEPParameters, downcast<CryptoKeyRSA>(key), data, WTFMove(callback), WTFMove(failureCallback));277 }278 279 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::generateKey(const CryptoAlgorithmParametersDeprecated& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyOrKeyPairCallback&& callback, VoidCallback&& failureCallback, ScriptExecutionContext& context)280 {281 auto& rsaParameters = downcast<CryptoAlgorithmRsaKeyGenParamsDeprecated>(parameters);282 auto keyPairCallback = [capturedCallback = WTFMove(callback)](CryptoKeyPair&& pair) {283 capturedCallback(WTFMove(pair));284 };285 CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier::RSA_OAEP, rsaParameters.hash, rsaParameters.hasHash, rsaParameters.modulusLength, rsaParameters.publicExponent, extractable, usages, WTFMove(keyPairCallback), WTFMove(failureCallback), &context);286 return { };287 }288 289 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::importKey(const CryptoAlgorithmParametersDeprecated& parameters, const CryptoKeyData& keyData, bool extractable, CryptoKeyUsageBitmap usage, KeyCallback&& callback, VoidCallback&& failureCallback)290 {291 auto& rsaKeyParameters = downcast<CryptoAlgorithmRsaKeyParamsWithHashDeprecated>(parameters);292 auto& rsaComponents = downcast<CryptoKeyDataRSAComponents>(keyData);293 auto result = CryptoKeyRSA::create(CryptoAlgorithmIdentifier::RSA_OAEP, rsaKeyParameters.hash, rsaKeyParameters.hasHash, rsaComponents, extractable, usage);294 if (!result) {295 failureCallback();296 return { };297 }298 callback(*result);299 return { };300 }301 302 248 } 303 249 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.h
r220811 r220941 32 32 namespace WebCore { 33 33 34 class CryptoAlgorithmRsaOaepParamsDeprecated;35 34 class CryptoKeyRSA; 36 35 … … 51 50 void exportKey(CryptoKeyFormat, Ref<CryptoKey>&&, KeyDataCallback&&, ExceptionCallback&&) final; 52 51 53 ExceptionOr<void> encrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;54 ExceptionOr<void> decrypt(const CryptoAlgorithmParametersDeprecated&, const CryptoKey&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;55 ExceptionOr<void> generateKey(const CryptoAlgorithmParametersDeprecated&, bool extractable, CryptoKeyUsageBitmap, KeyOrKeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext&) final;56 ExceptionOr<void> importKey(const CryptoAlgorithmParametersDeprecated&, const CryptoKeyData&, bool extractable, CryptoKeyUsageBitmap, KeyCallback&&, VoidCallback&& failureCallback) final;57 58 bool keyAlgorithmMatches(const CryptoAlgorithmRsaOaepParamsDeprecated& algorithmParameters, const CryptoKey&) const;59 52 void platformEncrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 60 53 void platformDecrypt(std::unique_ptr<CryptoAlgorithmParameters>&&, Ref<CryptoKey>&&, Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&); 61 ExceptionOr<void> platformEncrypt(const CryptoAlgorithmRsaOaepParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);62 ExceptionOr<void> platformDecrypt(const CryptoAlgorithmRsaOaepParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback);63 54 }; 64 55 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA1.cpp
r219831 r220941 63 63 } 64 64 65 ExceptionOr<void> CryptoAlgorithmSHA1::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)66 {67 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_1);68 if (!digest) {69 failureCallback();70 return { };71 }72 digest->addBytes(data.first, data.second);73 callback(digest->computeHash());74 return { };75 }76 77 65 } 78 66 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA1.h
r209164 r220941 42 42 CryptoAlgorithmIdentifier identifier() const final; 43 43 void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 44 ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;45 44 }; 46 45 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA224.cpp
r219831 r220941 63 63 } 64 64 65 ExceptionOr<void> CryptoAlgorithmSHA224::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)66 {67 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_224);68 if (!digest) {69 failureCallback();70 return { };71 }72 digest->addBytes(data.first, data.second);73 callback(digest->computeHash());74 return { };75 }76 77 65 } 78 66 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA224.h
r209164 r220941 42 42 CryptoAlgorithmIdentifier identifier() const final; 43 43 void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 44 ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;45 44 }; 46 45 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA256.cpp
r219831 r220941 63 63 } 64 64 65 ExceptionOr<void> CryptoAlgorithmSHA256::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)66 {67 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_256);68 if (!digest) {69 failureCallback();70 return { };71 }72 digest->addBytes(data.first, data.second);73 callback(digest->computeHash());74 return { };75 }76 77 65 } 78 66 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA256.h
r209164 r220941 42 42 CryptoAlgorithmIdentifier identifier() const final; 43 43 void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 44 ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;45 44 }; 46 45 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA384.cpp
r219831 r220941 63 63 } 64 64 65 ExceptionOr<void> CryptoAlgorithmSHA384::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)66 {67 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_384);68 if (!digest) {69 failureCallback();70 return { };71 }72 digest->addBytes(data.first, data.second);73 callback(digest->computeHash());74 return { };75 }76 77 65 } 78 66 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA384.h
r209164 r220941 42 42 CryptoAlgorithmIdentifier identifier() const final; 43 43 void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 44 ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;45 44 }; 46 45 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA512.cpp
r219831 r220941 63 63 } 64 64 65 ExceptionOr<void> CryptoAlgorithmSHA512::digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)66 {67 auto digest = PAL::CryptoDigest::create(PAL::CryptoDigest::Algorithm::SHA_512);68 if (!digest) {69 failureCallback();70 return { };71 }72 digest->addBytes(data.first, data.second);73 callback(digest->computeHash());74 return { };75 }76 77 65 } 78 66 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmSHA512.h
r209164 r220941 42 42 CryptoAlgorithmIdentifier identifier() const final; 43 43 void digest(Vector<uint8_t>&&, VectorCallback&&, ExceptionCallback&&, ScriptExecutionContext&, WorkQueue&) final; 44 ExceptionOr<void> digest(const CryptoAlgorithmParametersDeprecated&, const CryptoOperationData&, VectorCallback&&, VoidCallback&& failureCallback) final;45 44 }; 46 45 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_CBCGCrypt.cpp
r219856 r220941 224 224 } 225 225 226 ExceptionOr<void> CryptoAlgorithmAES_CBC::platformEncrypt(const CryptoAlgorithmAesCbcParamsDeprecated&, const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)227 {228 notImplemented();229 return Exception { NotSupportedError };230 }231 232 ExceptionOr<void> CryptoAlgorithmAES_CBC::platformDecrypt(const CryptoAlgorithmAesCbcParamsDeprecated&, const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)233 {234 notImplemented();235 return Exception { NotSupportedError };236 }237 238 226 } // namespace WebCore 239 227 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmAES_KWGCrypt.cpp
r219856 r220941 31 31 32 32 #include "CryptoKeyAES.h" 33 #include "NotImplemented.h"34 33 #include <pal/crypto/gcrypt/Handle.h> 35 34 #include <pal/crypto/gcrypt/Utilities.h> … … 141 140 } 142 141 143 ExceptionOr<void> CryptoAlgorithmAES_KW::platformEncrypt(const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)144 {145 notImplemented();146 return Exception { NotSupportedError };147 }148 149 ExceptionOr<void> CryptoAlgorithmAES_KW::platformDecrypt(const CryptoKeyAES&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)150 {151 notImplemented();152 return Exception { NotSupportedError };153 }154 155 142 } // namespace WebCore 156 143 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmHMACGCrypt.cpp
r219856 r220941 32 32 #if ENABLE(SUBTLE_CRYPTO) 33 33 34 #include "CryptoAlgorithmHmacParamsDeprecated.h"35 34 #include "CryptoKeyHMAC.h" 36 35 #include "ScriptExecutionContext.h" … … 83 82 signature.resize(digestLength); 84 83 return WTFMove(signature); 85 }86 87 static std::optional<Vector<uint8_t>> calculateSignature(int algorithm, const Vector<uint8_t>& key, const CryptoOperationData& data)88 {89 return calculateSignature(algorithm, key, data.first, data.second);90 84 } 91 85 … … 142 136 } 143 137 144 ExceptionOr<void> CryptoAlgorithmHMAC::platformSign(const CryptoAlgorithmHmacParamsDeprecated& parameters, const CryptoKeyHMAC& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)145 {146 int algorithm = getGCryptDigestAlgorithm(parameters.hash);147 if (algorithm == GCRY_MAC_NONE)148 return Exception { NotSupportedError };149 150 auto signature = calculateSignature(algorithm, key.key(), data);151 if (signature)152 callback(*signature);153 else154 failureCallback();155 return { };156 }157 158 ExceptionOr<void> CryptoAlgorithmHMAC::platformVerify(const CryptoAlgorithmHmacParamsDeprecated& parameters, const CryptoKeyHMAC& key, const CryptoOperationData& expectedSignature, const CryptoOperationData& data, BoolCallback&& callback, VoidCallback&& failureCallback)159 {160 int algorithm = getGCryptDigestAlgorithm(parameters.hash);161 if (algorithm == GCRY_MAC_NONE)162 return Exception { NotSupportedError };163 164 auto signature = calculateSignature(algorithm, key.key(), data);165 if (!signature) {166 failureCallback();167 return { };168 }169 170 // Using a constant time comparison to prevent timing attacks.171 bool result = signature.value().size() == expectedSignature.second && !constantTimeMemcmp(signature.value().data(), expectedSignature.first, signature.value().size());172 173 callback(result);174 return { };175 }176 177 138 } 178 139 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSAES_PKCS1_v1_5GCrypt.cpp
r219856 r220941 31 31 #include "CryptoKeyRSA.h" 32 32 #include "GCryptUtilities.h" 33 #include "NotImplemented.h"34 33 #include "ScriptExecutionContext.h" 35 34 … … 150 149 } 151 150 152 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt(const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)153 {154 notImplemented();155 return Exception { NotSupportedError };156 }157 158 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::platformDecrypt(const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)159 {160 notImplemented();161 return Exception { NotSupportedError };162 }163 164 151 } // namespace WebCore 165 152 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSASSA_PKCS1_v1_5GCrypt.cpp
r219856 r220941 30 30 #if ENABLE(SUBTLE_CRYPTO) 31 31 32 #include "CryptoAlgorithmRsaSsaParamsDeprecated.h"33 32 #include "CryptoKeyRSA.h" 34 33 #include "GCryptUtilities.h" … … 191 190 } 192 191 193 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign(const CryptoAlgorithmRsaSsaParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)194 {195 notImplemented();196 return Exception { NotSupportedError };197 }198 199 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::platformVerify(const CryptoAlgorithmRsaSsaParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, const CryptoOperationData&, BoolCallback&&, VoidCallback&&)200 {201 notImplemented();202 return Exception { NotSupportedError };203 }204 205 192 } // namespace WebCore 206 193 -
trunk/Source/WebCore/crypto/gcrypt/CryptoAlgorithmRSA_OAEPGCrypt.cpp
r219856 r220941 168 168 } 169 169 170 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::platformEncrypt(const CryptoAlgorithmRsaOaepParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)171 {172 notImplemented();173 return Exception { NotSupportedError };174 }175 176 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::platformDecrypt(const CryptoAlgorithmRsaOaepParamsDeprecated&, const CryptoKeyRSA&, const CryptoOperationData&, VectorCallback&&, VoidCallback&&)177 {178 notImplemented();179 return Exception { NotSupportedError };180 }181 182 170 } // namespace WebCore 183 171 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
r219831 r220941 30 30 31 31 #include "CryptoAlgorithmAesCbcCfbParams.h" 32 #include "CryptoAlgorithmAesCbcParamsDeprecated.h"33 32 #include "CryptoKeyAES.h" 34 33 #include "ScriptExecutionContext.h" … … 115 114 } 116 115 117 ExceptionOr<void> CryptoAlgorithmAES_CBC::platformEncrypt(const CryptoAlgorithmAesCbcParamsDeprecated& parameters, const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)118 {119 ASSERT(sizeof(parameters.iv) == kCCBlockSizeAES128);120 auto result = transformAES_CBC(kCCEncrypt, parameters.iv.data(), key.key(), data.first, data.second);121 if (result.hasException()) {122 failureCallback();123 return { };124 }125 callback(result.releaseReturnValue());126 return { };127 }128 129 ExceptionOr<void> CryptoAlgorithmAES_CBC::platformDecrypt(const CryptoAlgorithmAesCbcParamsDeprecated& parameters, const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)130 {131 ASSERT(sizeof(parameters.iv) == kCCBlockSizeAES128);132 auto result = transformAES_CBC(kCCDecrypt, parameters.iv.data(), key.key(), data.first, data.second);133 if (result.hasException()) {134 failureCallback();135 return { };136 }137 callback(result.releaseReturnValue());138 return { };139 }140 141 116 } // namespace WebCore 142 117 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_KWMac.cpp
r219831 r220941 86 86 } 87 87 88 ExceptionOr<void> CryptoAlgorithmAES_KW::platformEncrypt(const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)89 {90 if (data.second % 8) {91 // RFC 3394 uses 64-bit blocks as input.92 // <rdar://problem/15949992> CommonCrypto doesn't detect incorrect data length, silently producing a bad cyphertext.93 failureCallback();94 return { };95 }96 97 auto result = wrapKeyAES_KW(key.key(), data.first, data.second);98 if (result.hasException()) {99 failureCallback();100 return { };101 }102 callback(result.releaseReturnValue());103 return { };104 }105 106 ExceptionOr<void> CryptoAlgorithmAES_KW::platformDecrypt(const CryptoKeyAES& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)107 {108 auto result = unwrapKeyAES_KW(key.key(), data.first, data.second);109 if (result.hasException()) {110 failureCallback();111 return { };112 }113 callback(result.releaseReturnValue());114 return { };}115 116 88 } // namespace WebCore 117 89 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmHMACMac.cpp
r219856 r220941 29 29 #if ENABLE(SUBTLE_CRYPTO) 30 30 31 #include "CryptoAlgorithmHmacParamsDeprecated.h"32 31 #include "CryptoKeyHMAC.h" 33 32 #include "ScriptExecutionContext.h" … … 135 134 } 136 135 137 ExceptionOr<void> CryptoAlgorithmHMAC::platformSign(const CryptoAlgorithmHmacParamsDeprecated& parameters, const CryptoKeyHMAC& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&&)138 {139 auto algorithm = commonCryptoHMACAlgorithm(parameters.hash);140 if (!algorithm)141 return Exception { NotSupportedError };142 callback(calculateSignature(*algorithm, key.key(), data.first, data.second));143 return { };144 }145 146 ExceptionOr<void> CryptoAlgorithmHMAC::platformVerify(const CryptoAlgorithmHmacParamsDeprecated& parameters, const CryptoKeyHMAC& key, const CryptoOperationData& expectedSignature, const CryptoOperationData& data, BoolCallback&& callback, VoidCallback&&)147 {148 auto algorithm = commonCryptoHMACAlgorithm(parameters.hash);149 if (!algorithm)150 return Exception { NotSupportedError };151 152 auto signature = calculateSignature(*algorithm, key.key(), data.first, data.second);153 154 // Using a constant time comparison to prevent timing attacks.155 bool result = signature.size() == expectedSignature.second && !constantTimeMemcmp(signature.data(), expectedSignature.first, signature.size());156 157 callback(result);158 159 return { };160 }161 162 136 } 163 137 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp
r219831 r220941 104 104 } 105 105 106 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt(const CryptoKeyRSA& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)107 {108 auto result = encryptRSAES_PKCS1_v1_5(key.platformKey(), key.keySizeInBits(), data.first, data.second);109 if (result.hasException()) {110 failureCallback();111 return { };112 }113 callback(result.releaseReturnValue());114 return { };115 }116 117 ExceptionOr<void> CryptoAlgorithmRSAES_PKCS1_v1_5::platformDecrypt(const CryptoKeyRSA& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)118 {119 auto result = decryptRSAES_PKCS1_v1_5(key.platformKey(), key.keySizeInBits(), data.first, data.second);120 if (result.hasException()) {121 failureCallback();122 return { };123 }124 callback(result.releaseReturnValue());125 return { };126 }127 128 106 } // namespace WebCore 129 107 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp
r219831 r220941 30 30 31 31 #include "CommonCryptoUtilities.h" 32 #include "CryptoAlgorithmRsaSsaParamsDeprecated.h"33 32 #include "CryptoDigestAlgorithm.h" 34 33 #include "CryptoKeyRSA.h" … … 134 133 } 135 134 136 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign(const CryptoAlgorithmRsaSsaParamsDeprecated& parameters, const CryptoKeyRSA& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)137 {138 auto result = signRSASSA_PKCS1_v1_5(parameters.hash, key.platformKey(), key.keySizeInBits(), data.first, data.second);139 if (result.hasException()) {140 failureCallback();141 return { };142 }143 callback(result.releaseReturnValue());144 return { };145 }146 147 ExceptionOr<void> CryptoAlgorithmRSASSA_PKCS1_v1_5::platformVerify(const CryptoAlgorithmRsaSsaParamsDeprecated& parameters, const CryptoKeyRSA& key, const CryptoOperationData& signature, const CryptoOperationData& data, BoolCallback&& callback, VoidCallback&& failureCallback)148 {149 auto result = verifyRSASSA_PKCS1_v1_5(parameters.hash, key.platformKey(), signature.first, signature.second, data.first, data.second);150 if (result.hasException()) {151 failureCallback();152 return { };153 }154 callback(result.releaseReturnValue());155 return { };156 }157 158 135 } // namespace WebCore 159 136 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp
r219831 r220941 31 31 #include "CommonCryptoUtilities.h" 32 32 #include "CryptoAlgorithmRsaOaepParams.h" 33 #include "CryptoAlgorithmRsaOaepParamsDeprecated.h"34 33 #include "CryptoKeyRSA.h" 35 34 #include "ScriptExecutionContext.h" … … 116 115 } 117 116 118 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::platformEncrypt(const CryptoAlgorithmRsaOaepParamsDeprecated& parameters, const CryptoKeyRSA& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)119 {120 ASSERT(parameters.hasLabel || parameters.label.isEmpty());121 auto result = encryptRSA_OAEP(parameters.hash, parameters.label, key.platformKey(), key.keySizeInBits(), data.first, data.second);122 if (result.hasException()) {123 failureCallback();124 return { };125 }126 callback(result.releaseReturnValue());127 return { };128 }129 130 ExceptionOr<void> CryptoAlgorithmRSA_OAEP::platformDecrypt(const CryptoAlgorithmRsaOaepParamsDeprecated& parameters, const CryptoKeyRSA& key, const CryptoOperationData& data, VectorCallback&& callback, VoidCallback&& failureCallback)131 {132 ASSERT(parameters.hasLabel || parameters.label.isEmpty());133 auto result = decryptRSA_OAEP(parameters.hash, parameters.label, key.platformKey(), key.keySizeInBits(), data.first, data.second);134 if (result.hasException()) {135 failureCallback();136 return { };137 }138 callback(result.releaseReturnValue());139 return { };140 }141 142 117 } // namespace WebCore 143 118 -
trunk/Source/WebCore/features.json
r220488 r220941 590 590 "category": "webapps", 591 591 "description": "A JavaScript API for web applications to perform cryptographic operations.", 592 "comment": "The prefixed ‘webkitSubtle’ attribute which gave access to the SubtleCrypto API is now deprecated in preference to the official “subtle” property.",593 592 "contact": { 594 593 "name": "Jiewen Tan", -
trunk/Source/WebCore/page/Crypto.cpp
r219856 r220941 32 32 #include "Crypto.h" 33 33 34 #include "Document.h" 35 #include "SubtleCrypto.h" 36 #include <runtime/ArrayBufferView.h> 37 #include <wtf/CryptographicallyRandomNumber.h> 38 34 39 #if OS(DARWIN) 35 40 #include "CommonCryptoUtilities.h" 36 41 #endif 37 #include "Document.h"38 #include "SubtleCrypto.h"39 #include "WebKitSubtleCrypto.h"40 #include <runtime/ArrayBufferView.h>41 #include <wtf/CryptographicallyRandomNumber.h>42 42 43 43 namespace WebCore { … … 77 77 } 78 78 79 ExceptionOr<WebKitSubtleCrypto&> Crypto::webkitSubtle()80 {81 if (!isMainThread())82 return Exception { NotSupportedError };83 84 if (!m_webkitSubtle) {85 m_webkitSubtle = WebKitSubtleCrypto::create(*downcast<Document>(scriptExecutionContext()));86 scriptExecutionContext()->addConsoleMessage(MessageSource::Other, MessageLevel::Warning, ASCIILiteral("WebKitSubtleCrypto is deprecated. Please use SubtleCrypto instead."));87 }88 89 return *m_webkitSubtle;90 }91 92 79 #endif 93 80 -
trunk/Source/WebCore/page/Crypto.h
r208145 r220941 40 40 41 41 class SubtleCrypto; 42 class WebKitSubtleCrypto;43 42 44 43 class Crypto : public ContextDestructionObserver, public RefCounted<Crypto> { … … 51 50 #if ENABLE(SUBTLE_CRYPTO) 52 51 SubtleCrypto& subtle(); 53 54 // Will be deprecated.55 ExceptionOr<WebKitSubtleCrypto&> webkitSubtle();56 52 #endif 57 53 … … 61 57 #if ENABLE(SUBTLE_CRYPTO) 62 58 Ref<SubtleCrypto> m_subtle; 63 64 // Will be deprecated.65 RefPtr<WebKitSubtleCrypto> m_webkitSubtle;66 59 #endif 67 60 }; -
trunk/Source/WebCore/page/Crypto.idl
r218960 r220941 34 34 [Conditional=SUBTLE_CRYPTO] readonly attribute SubtleCrypto subtle; 35 35 [MayThrowException] ArrayBufferView getRandomValues([ReturnValue] ArrayBufferView array); 36 37 // Will be deprecated.38 [Conditional=SUBTLE_CRYPTO, GetterMayThrowException] readonly attribute WebKitSubtleCrypto webkitSubtle;39 36 };
Note: See TracChangeset
for help on using the changeset viewer.