[EFL] Add subtle crypto to the build system
authorevab.u-szeged@partner.samsung.com <evab.u-szeged@partner.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 09:25:10 +0000 (09:25 +0000)
committerevab.u-szeged@partner.samsung.com <evab.u-szeged@partner.samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Dec 2014 09:25:10 +0000 (09:25 +0000)
commitbb554f0277a9c22138c0e8c9ab9d5bca75f78466
tree92223a7b371753745b49adf8724be58d7d042845
parent566301487dcdfd5e60820b1dcfbb3992216538b6
[EFL] Add subtle crypto to the build system
https://bugs.webkit.org/show_bug.cgi?id=138612

Reviewed by Csaba Osztrogon√°c.

.:

* Source/cmake/OptionsEfl.cmake:

Source/WebCore:

It is obvious to make Efl use GnuTLS as well,
and since there seems no reason why to separate
Efl and Gtk implementations from each other, I
also propose renaming the gtk directory and file
suffixes to gnutls.

No new tests needed.

* PlatformEfl.cmake:
* PlatformGTK.cmake:
* crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp.
(WebCore::CryptoAlgorithmAES_CBC::platformEncrypt):
(WebCore::CryptoAlgorithmAES_CBC::platformDecrypt):
* crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_KWGtk.cpp.
(WebCore::CryptoAlgorithmAES_KW::platformEncrypt):
(WebCore::CryptoAlgorithmAES_KW::platformDecrypt):
* crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmHMACGtk.cpp.
(WebCore::getGnutlsDigestAlgorithm):
(WebCore::calculateSignature):
(WebCore::CryptoAlgorithmHMAC::platformSign):
(WebCore::CryptoAlgorithmHMAC::platformVerify):
* crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSAES_PKCS1_v1_5Gtk.cpp.
(WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt):
(WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformDecrypt):
* crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSASSA_PKCS1_v1_5Gtk.cpp.
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign):
(WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformVerify):
* crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRSA_OAEPGtk.cpp.
(WebCore::CryptoAlgorithmRSA_OAEP::platformEncrypt):
(WebCore::CryptoAlgorithmRSA_OAEP::platformDecrypt):
* crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoAlgorithmRegistryGtk.cpp.
(WebCore::CryptoAlgorithmRegistry::platformRegisterAlgorithms):
* crypto/gnutls/CryptoDigestGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoDigestGtk.cpp.
(WebCore::CryptoDigest::CryptoDigest):
(WebCore::CryptoDigest::~CryptoDigest):
(WebCore::CryptoDigest::create):
(WebCore::CryptoDigest::addBytes):
(WebCore::CryptoDigest::computeHash):
* crypto/gnutls/CryptoKeyRSAGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/CryptoKeyRSAGtk.cpp.
(WebCore::CryptoKeyRSA::CryptoKeyRSA):
(WebCore::CryptoKeyRSA::create):
(WebCore::CryptoKeyRSA::~CryptoKeyRSA):
(WebCore::CryptoKeyRSA::restrictToHash):
(WebCore::CryptoKeyRSA::isRestrictedToHash):
(WebCore::CryptoKeyRSA::keySizeInBits):
(WebCore::CryptoKeyRSA::buildAlgorithmDescription):
(WebCore::CryptoKeyRSA::exportData):
(WebCore::CryptoKeyRSA::generatePair):
* crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp: Renamed from Source/WebCore/crypto/gtk/SerializedCryptoKeyWrapGtk.cpp.
(WebCore::getDefaultWebCryptoMasterKey):
(WebCore::wrapSerializedCryptoKey):
(WebCore::unwrapSerializedCryptoKey):
* crypto/keys/CryptoKeyRSA.h:

Tools:

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

* platform/efl/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/platform/efl/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/PlatformEfl.cmake
Source/WebCore/PlatformGTK.cmake
Source/WebCore/crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmAES_KWGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmAES_KWGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmHMACGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmRSAES_PKCS1_v1_5GnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmRSAES_PKCS1_v1_5Gtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmRSASSA_PKCS1_v1_5Gtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmRSA_OAEPGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoAlgorithmRegistryGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoAlgorithmRegistryGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoDigestGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoDigestGtk.cpp with 100% similarity]
Source/WebCore/crypto/gnutls/CryptoKeyRSAGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/CryptoKeyRSAGtk.cpp with 99% similarity]
Source/WebCore/crypto/gnutls/SerializedCryptoKeyWrapGnuTLS.cpp [moved from Source/WebCore/crypto/gtk/SerializedCryptoKeyWrapGtk.cpp with 100% similarity]
Source/WebCore/crypto/keys/CryptoKeyRSA.h
Source/cmake/OptionsEfl.cmake
Tools/ChangeLog
Tools/Scripts/webkitperl/FeatureList.pm