Bug 125084 - Add support for WebCrypto RSA-OAEP
Summary: Add support for WebCrypto RSA-OAEP
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks: 122679
  Show dependency treegraph
 
Reported: 2013-12-02 11:14 PST by Alexey Proskuryakov
Modified: 2013-12-02 12:26 PST (History)
2 users (show)

See Also:


Attachments
proposed patch (69.32 KB, patch)
2013-12-02 11:21 PST, Alexey Proskuryakov
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2013-12-02 11:14:01 PST
This is for encrypting small chunks of data (primarily other keys) with RSA.
Comment 1 Alexey Proskuryakov 2013-12-02 11:21:18 PST
Created attachment 218197 [details]
proposed patch
Comment 2 WebKit Commit Bot 2013-12-02 11:21:59 PST
Attachment 218197 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/crypto/subtle/rsa-oaep-key-manipulation-expected.txt', u'LayoutTests/crypto/subtle/rsa-oaep-key-manipulation.html', u'LayoutTests/crypto/subtle/rsa-oaep-plaintext-length-expected.txt', u'LayoutTests/crypto/subtle/rsa-oaep-plaintext-length.html', u'LayoutTests/crypto/subtle/rsa-oaep-wrap-unwrap-aes-expected.txt', u'LayoutTests/crypto/subtle/rsa-oaep-wrap-unwrap-aes.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp', u'Source/WebCore/bindings/js/JSCryptoKeySerializationJWK.cpp', u'Source/WebCore/crypto/CommonCryptoUtilities.cpp', u'Source/WebCore/crypto/CommonCryptoUtilities.h', u'Source/WebCore/crypto/CryptoAlgorithmParameters.h', u'Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp', u'Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.h', u'Source/WebCore/crypto/mac/CryptoAlgorithmHMACMac.cpp', u'Source/WebCore/crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp', u'Source/WebCore/crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp', u'Source/WebCore/crypto/mac/CryptoAlgorithmRegistryMac.cpp', u'Source/WebCore/crypto/mac/CryptoKeyMac.cpp', u'Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp', u'Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h']" exit_code: 1
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:40:  CryptoAlgorithmRSA_OAEP::s_name is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:50:  CryptoAlgorithmRSA_OAEP::create is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:55:  CryptoAlgorithmRSA_OAEP::identifier is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:60:  CryptoAlgorithmRSA_OAEP::keyAlgorithmMatches is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:73:  CryptoAlgorithmRSA_OAEP::encrypt is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:85:  CryptoAlgorithmRSA_OAEP::decrypt is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:97:  CryptoAlgorithmRSA_OAEP::generateKey is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:101:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Source/WebCore/crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:108:  CryptoAlgorithmRSA_OAEP::importKey is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp:38:  CryptoAlgorithmRSA_OAEP::platformEncrypt is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp:59:  CryptoAlgorithmRSA_OAEP::platformDecrypt is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:34:  Missing spaces around /  [whitespace/operators] [3]
Source/WebCore/crypto/CommonCryptoUtilities.h:40:  Missing spaces around /  [whitespace/operators] [3]
Source/WebCore/crypto/CommonCryptoUtilities.h:47:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:48:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:49:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:50:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:51:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:56:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:57:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:62:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:63:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Source/WebCore/crypto/CommonCryptoUtilities.h:68:  enum members should use InterCaps with an initial capital letter.  [readability/enum_casing] [4]
Total errors found: 23 in 23 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexey Proskuryakov 2013-12-02 11:48:16 PST
Committed <http://trac.webkit.org/r159944>.
Comment 4 Alexey Proskuryakov 2013-12-02 12:02:52 PST
Build fix in <http://trac.webkit.org/r159949>.
Comment 5 Alexey Proskuryakov 2013-12-02 12:26:25 PST
More build fix in <http://trac.webkit.org/r159951>.