Changeset 276167 in webkit
- Timestamp:
- Apr 16, 2021, 2:07:29 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
crypto/algorithms/CryptoAlgorithmAES_GCM.cpp (modified) (3 diffs)
-
crypto/openssl/CryptoKeyECOpenSSL.cpp (modified) (6 diffs)
-
crypto/openssl/CryptoKeyRSAOpenSSL.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r276164 r276167 1 2021-04-16 Basuke Suzuki <basuke.suzuki@sony.com> 2 3 [PlayStation][OpenSSL] Remove warnings. 4 https://bugs.webkit.org/show_bug.cgi?id=224630 5 6 Reviewed by Don Olmstead. 7 8 There're two kinds of warnings in curl and openssl layer in our platform. 9 10 a) Unused param 11 12 b) '__WORDSIZE' is not defined. 13 warning: '__WORDSIZE' is not defined, evaluates to 0 [-Wundef] 14 #if __WORDSIZE >= 64 15 ^ 16 17 No new tests because it's only for compilation issue. 18 19 * crypto/algorithms/CryptoAlgorithmAES_GCM.cpp: 20 (WebCore::CryptoAlgorithmAES_GCM::encrypt): 21 (WebCore::CryptoAlgorithmAES_GCM::decrypt): 22 * crypto/openssl/CryptoKeyECOpenSSL.cpp: 23 (WebCore::CryptoKeyEC::platformGeneratePair): 24 (WebCore::CryptoKeyEC::platformImportRaw): 25 (WebCore::CryptoKeyEC::platformImportJWKPublic): 26 (WebCore::CryptoKeyEC::platformImportJWKPrivate): 27 (WebCore::CryptoKeyEC::platformImportSpki): 28 (WebCore::CryptoKeyEC::platformImportPkcs8): 29 * crypto/openssl/CryptoKeyRSAOpenSSL.cpp: 30 (WebCore::CryptoKeyRSA::create): 31 (WebCore::CryptoKeyRSA::generatePair): 32 (WebCore::CryptoKeyRSA::importSpki): 33 (WebCore::CryptoKeyRSA::importPkcs8): 34 1 35 2021-04-16 Alex Christensen <achristensen@webkit.org> 2 36 -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
r238754 r276167 40 40 static const char* const ALG192 = "A192GCM"; 41 41 static const char* const ALG256 = "A256GCM"; 42 #if __WORDSIZE >= 6442 #if CPU(ADDRESS64) 43 43 static const uint64_t PlainTextMaxLength = 549755813632ULL; // 2^39 - 256 44 44 #endif … … 78 78 auto& aesParameters = downcast<CryptoAlgorithmAesGcmParams>(parameters); 79 79 80 #if __WORDSIZE >= 6480 #if CPU(ADDRESS64) 81 81 if (plainText.size() > PlainTextMaxLength) { 82 82 exceptionCallback(OperationError); … … 121 121 } 122 122 123 #if __WORDSIZE >= 64123 #if CPU(ADDRESS64) 124 124 if (aesParameters.ivVector().size() > UINT64_MAX) { 125 125 exceptionCallback(OperationError); -
trunk/Source/WebCore/crypto/openssl/CryptoKeyECOpenSSL.cpp
r254958 r276167 47 47 Optional<CryptoKeyPair> CryptoKeyEC::platformGeneratePair(CryptoAlgorithmIdentifier, NamedCurve, bool extractable, CryptoKeyUsageBitmap) 48 48 { 49 UNUSED_PARAM(extractable); 49 50 notImplemented(); 50 51 return { }; … … 53 54 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportRaw(CryptoAlgorithmIdentifier, NamedCurve, Vector<uint8_t>&& keyData, bool extractable, CryptoKeyUsageBitmap) 54 55 { 56 UNUSED_PARAM(keyData); 57 UNUSED_PARAM(extractable); 55 58 notImplemented(); 56 59 return nullptr; … … 59 62 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportJWKPublic(CryptoAlgorithmIdentifier, NamedCurve, Vector<uint8_t>&& x, Vector<uint8_t>&& y, bool extractable, CryptoKeyUsageBitmap) 60 63 { 64 UNUSED_PARAM(x); 65 UNUSED_PARAM(y); 66 UNUSED_PARAM(extractable); 61 67 notImplemented(); 62 68 return nullptr; … … 65 71 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportJWKPrivate(CryptoAlgorithmIdentifier, NamedCurve, Vector<uint8_t>&& x, Vector<uint8_t>&& y, Vector<uint8_t>&& d, bool extractable, CryptoKeyUsageBitmap) 66 72 { 73 UNUSED_PARAM(x); 74 UNUSED_PARAM(y); 75 UNUSED_PARAM(d); 76 UNUSED_PARAM(extractable); 67 77 notImplemented(); 68 78 return nullptr; … … 71 81 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportSpki(CryptoAlgorithmIdentifier, NamedCurve, Vector<uint8_t>&& keyData, bool extractable, CryptoKeyUsageBitmap) 72 82 { 83 UNUSED_PARAM(keyData); 84 UNUSED_PARAM(extractable); 73 85 notImplemented(); 74 86 return nullptr; … … 77 89 RefPtr<CryptoKeyEC> CryptoKeyEC::platformImportPkcs8(CryptoAlgorithmIdentifier, NamedCurve, Vector<uint8_t>&& keyData, bool extractable, CryptoKeyUsageBitmap) 78 90 { 91 UNUSED_PARAM(keyData); 92 UNUSED_PARAM(extractable); 79 93 notImplemented(); 80 94 return nullptr; -
trunk/Source/WebCore/crypto/openssl/CryptoKeyRSAOpenSSL.cpp
r254958 r276167 34 34 namespace WebCore { 35 35 36 RefPtr<CryptoKeyRSA> CryptoKeyRSA::create(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier hash, bool hasHash, const CryptoKeyRSAComponents&, bool extractable, CryptoKeyUsageBitmap)36 RefPtr<CryptoKeyRSA> CryptoKeyRSA::create(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier, bool hasHash, const CryptoKeyRSAComponents&, bool extractable, CryptoKeyUsageBitmap) 37 37 { 38 UNUSED_PARAM(hasHash); 39 UNUSED_PARAM(extractable); 38 40 notImplemented(); 39 41 return nullptr; … … 52 54 } 53 55 54 void CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier hash, bool hasHash, unsigned modulusLength, const Vector<uint8_t>& publicExponent, bool extractable, CryptoKeyUsageBitmap, KeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext*)56 void CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier, bool hasHash, unsigned modulusLength, const Vector<uint8_t>& publicExponent, bool extractable, CryptoKeyUsageBitmap, KeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext*) 55 57 { 58 UNUSED_PARAM(hasHash); 59 UNUSED_PARAM(modulusLength); 60 UNUSED_PARAM(publicExponent); 61 UNUSED_PARAM(extractable); 62 UNUSED_PARAM(failureCallback); 56 63 notImplemented(); 57 64 } 58 65 59 RefPtr<CryptoKeyRSA> CryptoKeyRSA::importSpki(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier> hash, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap)66 RefPtr<CryptoKeyRSA> CryptoKeyRSA::importSpki(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier>, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap) 60 67 { 68 UNUSED_PARAM(extractable); 61 69 notImplemented(); 62 70 return nullptr; 63 71 } 64 72 65 RefPtr<CryptoKeyRSA> CryptoKeyRSA::importPkcs8(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier> hash, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap)73 RefPtr<CryptoKeyRSA> CryptoKeyRSA::importPkcs8(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier>, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap) 66 74 { 75 UNUSED_PARAM(extractable); 67 76 notImplemented(); 68 77 return nullptr;
Note:
See TracChangeset
for help on using the changeset viewer.