RESOLVED FIXED 173696
[GCrypt] Implement CryptoKeyRSA PKCS#8 imports
https://bugs.webkit.org/show_bug.cgi?id=173696
Summary [GCrypt] Implement CryptoKeyRSA PKCS#8 imports
Zan Dobersek
Reported 2017-06-21 23:19:06 PDT
SSIA.
Attachments
WIP patch (11.76 KB, patch)
2017-06-21 23:57 PDT, Zan Dobersek
no flags
Patch (13.85 KB, patch)
2017-06-28 09:27 PDT, Zan Dobersek
no flags
Patch (11.07 KB, patch)
2017-07-13 03:17 PDT, Zan Dobersek
no flags
Archive of layout-test-results from ews117 for mac-elcapitan (1.72 MB, application/zip)
2017-07-13 07:02 PDT, Build Bot
no flags
Zan Dobersek
Comment 1 2017-06-21 23:57:18 PDT
Created attachment 313589 [details] WIP patch
Build Bot
Comment 2 2017-06-22 00:17:15 PDT
Attachment 313589 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 3 2017-06-28 09:27:21 PDT
Jiewen Tan
Comment 4 2017-07-12 10:47:45 PDT
Comment on attachment 314029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314029&action=review Looks good to me. r- because of the duplicated function. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:244 > +static bool supportedAlgorithmIdentifier(const uint8_t* data, size_t size) I believe this part is duplicated with Bug 173694. Please upload another patch after that bug is resolved. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:297 > + if (version->size() != 1 || version->at(0) != 0x00) See comments on Bug 173647. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:328 > + if (version->size() != 1 || version->at(0) != 0x00) Ditto.
Zan Dobersek
Comment 5 2017-07-13 02:54:51 PDT
Comment on attachment 314029 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314029&action=review >> Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:244 >> +static bool supportedAlgorithmIdentifier(const uint8_t* data, size_t size) > > I believe this part is duplicated with Bug 173694. Please upload another patch after that bug is resolved. This, and the duplication in bug #173697, was intentional to get the patch building on the EWS bots. I'll upload new patches in both cases.
Zan Dobersek
Comment 6 2017-07-13 03:17:56 PDT
Build Bot
Comment 7 2017-07-13 07:02:40 PDT
Comment on attachment 315339 [details] Patch Attachment 315339 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4113067 New failing tests: storage/indexeddb/modern/new-database-after-user-delete.html
Build Bot
Comment 8 2017-07-13 07:02:41 PDT
Created attachment 315344 [details] Archive of layout-test-results from ews117 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Jiewen Tan
Comment 9 2017-07-14 08:43:29 PDT
Comment on attachment 315339 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=315339&action=review Looks good to me. r=me. Please address my comments in a followup patch. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:337 > + if (version->size() != 1 || version->at(0) != 0x00) Please do a follow up patch to replace the 0x00 with a constant in all the places. Using memcmp here is more ideal. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:368 > + if (version->size() != 1 || version->at(0) != 0x00) Ditto.
Zan Dobersek
Comment 10 2017-07-14 22:20:35 PDT
Comment on attachment 315339 [details] Patch Clearing flags on attachment: 315339 Committed r219535: <http://trac.webkit.org/changeset/219535>
Zan Dobersek
Comment 11 2017-07-14 22:20:39 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.