[WebIDL] Replace JSCryptoKeyCustom and JSCryptoAlgorithmBuilder with generated code
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Aug 2017 00:07:00 +0000 (00:07 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 12 Aug 2017 00:07:00 +0000 (00:07 +0000)
commit5d41f59addf825654524efe1a098021b31c991c5
treeccc50439a3a7adaee8034ecdeb4653951190e923
parentbaff7a970464eb5d19d9c1a31ebb4c10cba7e958
[WebIDL] Replace JSCryptoKeyCustom and JSCryptoAlgorithmBuilder with generated code
https://bugs.webkit.org/show_bug.cgi?id=175457

Patch by Sam Weinig <sam@webkit.org> on 2017-08-11
Reviewed by Chris Dumez.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSCryptoAlgorithmBuilder.cpp: Removed.
* bindings/js/JSCryptoAlgorithmBuilder.h: Removed.
* bindings/js/JSCryptoKeyCustom.cpp: Removed.

    Remove JSCryptoAlgorithmBuilder and JSCryptoKeyCustom, add KeyAlgorithm
    IDLs and headers.

* crypto/CryptoKey.cpp:
* crypto/CryptoKey.h:
* crypto/CryptoKey.idl:

    Replace custom algorithm attribute with a union of the supported key algorithms.

* crypto/keys/CryptoAesKeyAlgorithm.h: Added.
* crypto/keys/CryptoAesKeyAlgorithm.idl: Added.
* crypto/keys/CryptoEcKeyAlgorithm.h: Added.
* crypto/keys/CryptoEcKeyAlgorithm.idl: Added.
* crypto/keys/CryptoHmacKeyAlgorithm.h: Added.
* crypto/keys/CryptoHmacKeyAlgorithm.idl: Added.
* crypto/keys/CryptoKeyAlgorithm.h: Added.
* crypto/keys/CryptoKeyAlgorithm.idl: Added.
* crypto/keys/CryptoRsaHashedKeyAlgorithm.h: Added.
* crypto/keys/CryptoRsaHashedKeyAlgorithm.idl: Added.
* crypto/keys/CryptoRsaKeyAlgorithm.h: Added.
* crypto/keys/CryptoRsaKeyAlgorithm.idl: Added.

    Add IDLs and headers fo the supported key algorithms.

* crypto/keys/CryptoKeyAES.h:
* crypto/keys/CryptoKeyEC.h:
* crypto/keys/CryptoKeyHMAC.h:
* crypto/keys/CryptoKeyRSA.h:
* crypto/keys/CryptoKeyRaw.h:

    Give each of the existing KeyAlgorithm subclasses a dictionary() function
    that returns the populated corresponding spec'd dictionary.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
31 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSCryptoAlgorithmBuilder.cpp [deleted file]
Source/WebCore/bindings/js/JSCryptoKeyCustom.cpp [deleted file]
Source/WebCore/crypto/CryptoKey.cpp
Source/WebCore/crypto/CryptoKey.h
Source/WebCore/crypto/CryptoKey.idl
Source/WebCore/crypto/keys/CryptoAesKeyAlgorithm.h [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoAesKeyAlgorithm.idl [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoEcKeyAlgorithm.h [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoEcKeyAlgorithm.idl [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoHmacKeyAlgorithm.h [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoHmacKeyAlgorithm.idl [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoKeyAES.cpp
Source/WebCore/crypto/keys/CryptoKeyAES.h
Source/WebCore/crypto/keys/CryptoKeyAlgorithm.h [moved from Source/WebCore/bindings/js/JSCryptoAlgorithmBuilder.h with 64% similarity]
Source/WebCore/crypto/keys/CryptoKeyAlgorithm.idl [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoKeyEC.cpp
Source/WebCore/crypto/keys/CryptoKeyEC.h
Source/WebCore/crypto/keys/CryptoKeyHMAC.cpp
Source/WebCore/crypto/keys/CryptoKeyHMAC.h
Source/WebCore/crypto/keys/CryptoKeyRSA.cpp
Source/WebCore/crypto/keys/CryptoKeyRSA.h
Source/WebCore/crypto/keys/CryptoKeyRaw.cpp
Source/WebCore/crypto/keys/CryptoKeyRaw.h
Source/WebCore/crypto/keys/CryptoRsaHashedKeyAlgorithm.h [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoRsaHashedKeyAlgorithm.idl [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoRsaKeyAlgorithm.h [new file with mode: 0644]
Source/WebCore/crypto/keys/CryptoRsaKeyAlgorithm.idl [new file with mode: 0644]