Changeset 209061 in webkit
- Timestamp:
- Nov 28, 2016 9:49:36 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209059 r209061 1 2016-11-28 Jiewen Tan <jiewen_tan@apple.com> 2 3 Unreviewed, followup patch after r209059. 4 5 * crypto/mac/CryptoAlgorithmAES_CBCMac.cpp: 6 (WebCore::CryptoAlgorithmAES_CBC::platformEncrypt): 7 (WebCore::CryptoAlgorithmAES_CBC::platformDecrypt): 8 * crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp: 9 (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt): 10 (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformDecrypt): 11 * crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp: 12 (WebCore::CryptoAlgorithmRSA_OAEP::platformEncrypt): 13 (WebCore::CryptoAlgorithmRSA_OAEP::platformDecrypt): 14 1 15 2016-11-28 Jiewen Tan <jiewen_tan@apple.com> 2 16 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_CBCMac.cpp
r209059 r209061 83 83 auto result = transformAES_CBC(kCCEncrypt, aesParameters.ivVector().data(), aesKey.key(), plainText.data(), plainText.size()); 84 84 if (result.hasException()) { 85 // We should only dere nference callbacks after being back to the Document/Worker threads.85 // We should only dereference callbacks after being back to the Document/Worker threads. 86 86 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 87 87 exceptionCallback(ec); … … 90 90 return; 91 91 } 92 // We should only dere nference callbacks after being back to the Document/Worker threads.92 // We should only dereference callbacks after being back to the Document/Worker threads. 93 93 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 94 94 callback(result); … … 107 107 auto result = transformAES_CBC(kCCDecrypt, aesParameters.ivVector().data(), aesKey.key(), cipherText.data(), cipherText.size()); 108 108 if (result.hasException()) { 109 // We should only dere nference callbacks after being back to the Document/Worker threads.109 // We should only dereference callbacks after being back to the Document/Worker threads. 110 110 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 111 111 exceptionCallback(ec); … … 114 114 return; 115 115 } 116 // We should only dere nference callbacks after being back to the Document/Worker threads.116 // We should only dereference callbacks after being back to the Document/Worker threads. 117 117 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 118 118 callback(result); -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSAES_PKCS1_v1_5Mac.cpp
r209059 r209061 68 68 auto result = encryptRSAES_PKCS1_v1_5(rsaKey.platformKey(), rsaKey.keySizeInBits(), plainText.data(), plainText.size()); 69 69 if (result.hasException()) { 70 // We should only dere nference callbacks after being back to the Document/Worker threads.70 // We should only dereference callbacks after being back to the Document/Worker threads. 71 71 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 72 72 exceptionCallback(ec); … … 75 75 return; 76 76 } 77 // We should only dere nference callbacks after being back to the Document/Worker threads.77 // We should only dereference callbacks after being back to the Document/Worker threads. 78 78 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 79 79 callback(result); … … 90 90 auto result = decryptRSAES_PKCS1_v1_5(rsaKey.platformKey(), rsaKey.keySizeInBits(), cipherText.data(), cipherText.size()); 91 91 if (result.hasException()) { 92 // We should only dere nference callbacks after being back to the Document/Worker threads.92 // We should only dereference callbacks after being back to the Document/Worker threads. 93 93 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 94 94 exceptionCallback(ec); … … 97 97 return; 98 98 } 99 // We should only dere nference callbacks after being back to the Document/Worker threads.99 // We should only dereference callbacks after being back to the Document/Worker threads. 100 100 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 101 101 callback(result); -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp
r209059 r209061 79 79 auto result = encryptRSA_OAEP(rsaKey.hashAlgorithmIdentifier(), rsaParameters.labelVector(), rsaKey.platformKey(), rsaKey.keySizeInBits(), plainText.data(), plainText.size()); 80 80 if (result.hasException()) { 81 // We should only dere nference callbacks after being back to the Document/Worker threads.81 // We should only dereference callbacks after being back to the Document/Worker threads. 82 82 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 83 83 exceptionCallback(ec); … … 86 86 return; 87 87 } 88 // We should only dere nference callbacks after being back to the Document/Worker threads.88 // We should only dereference callbacks after being back to the Document/Worker threads. 89 89 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 90 90 callback(result); … … 102 102 auto result = decryptRSA_OAEP(rsaKey.hashAlgorithmIdentifier(), rsaParameters.labelVector(), rsaKey.platformKey(), rsaKey.keySizeInBits(), cipherText.data(), cipherText.size()); 103 103 if (result.hasException()) { 104 // We should only dere nference callbacks after being back to the Document/Worker threads.104 // We should only dereference callbacks after being back to the Document/Worker threads. 105 105 context.postTask([exceptionCallback = WTFMove(exceptionCallback), ec = result.releaseException().code(), callback = WTFMove(callback)](ScriptExecutionContext& context) { 106 106 exceptionCallback(ec); … … 109 109 return; 110 110 } 111 // We should only dere nference callbacks after being back to the Document/Worker threads.111 // We should only dereference callbacks after being back to the Document/Worker threads. 112 112 context.postTask([callback = WTFMove(callback), result = result.releaseReturnValue(), exceptionCallback = WTFMove(exceptionCallback)](ScriptExecutionContext& context) { 113 113 callback(result);
Note: See TracChangeset
for help on using the changeset viewer.