RESOLVED FIXED Bug 173697
[GCrypt] Implement CryptoKeyRSA PKCS#8 exports
https://bugs.webkit.org/show_bug.cgi?id=173697
Summary [GCrypt] Implement CryptoKeyRSA PKCS#8 exports
Zan Dobersek
Reported 2017-06-21 23:19:23 PDT
SSIA.
Attachments
WIP patch (16.81 KB, patch)
2017-06-22 00:13 PDT, Zan Dobersek
no flags
WIP patch (13.09 KB, patch)
2017-06-26 04:59 PDT, Zan Dobersek
no flags
Patch (15.56 KB, patch)
2017-06-28 09:29 PDT, Zan Dobersek
no flags
Patch (15.66 KB, patch)
2017-07-03 01:04 PDT, Zan Dobersek
no flags
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.14 MB, application/zip)
2017-07-03 03:59 PDT, Build Bot
no flags
Patch (13.41 KB, patch)
2017-07-13 03:25 PDT, Zan Dobersek
jiewen_tan: review+
Zan Dobersek
Comment 1 2017-06-22 00:13:06 PDT
Created attachment 313591 [details] WIP patch
Build Bot
Comment 2 2017-06-22 00:18:06 PDT
Attachment 313591 [details] did not pass style-queue: ERROR: Source/WebCore/PAL/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] 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: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 3 2017-06-26 04:59:10 PDT
Created attachment 313828 [details] WIP patch
Build Bot
Comment 4 2017-06-26 05:02:39 PDT
Attachment 313828 [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 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 5 2017-06-28 09:29:11 PDT
Zan Dobersek
Comment 6 2017-06-28 09:29:34 PDT
(In reply to Zan Dobersek from comment #5) > Created attachment 314030 [details] > Patch This is ready for review, but the patch still relies on libtasn1 helpers that are being added in bug #173646.
Zan Dobersek
Comment 7 2017-07-03 01:04:04 PDT
Created attachment 314463 [details] Patch Now buildable.
Build Bot
Comment 8 2017-07-03 03:59:40 PDT
Comment on attachment 314463 [details] Patch Attachment 314463 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4043009 New failing tests: workers/bomb.html
Build Bot
Comment 9 2017-07-03 03:59:41 PDT
Created attachment 314470 [details] Archive of layout-test-results from ews105 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Jiewen Tan
Comment 10 2017-07-12 11:49:39 PDT
Comment on attachment 314463 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314463&action=review Looks good to me. r- because of duplicated functions. > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:377 > + if (!PAL::TASN1::writeElement(pkcs8, "privateKeyAlgorithm.algorithm", "1.2.840.113549.1.1.1", 1)) Constant for "1.2.840.113549.1.1.1". > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:381 > + if (!PAL::TASN1::writeElement(pkcs8, "privateKeyAlgorithm.parameters", "\x05\x00", 2)) Ditto for "\x05\x00". > Source/WebCore/crypto/gcrypt/GCryptUtilities.h:159 > +static inline std::optional<Vector<uint8_t>> mpiSignedData(gcry_mpi_t mpi) Remove these two duplicated function after Bug 173695 is resolved.
Zan Dobersek
Comment 11 2017-07-13 03:25:21 PDT
Jiewen Tan
Comment 12 2017-07-14 08:56:43 PDT
Comment on attachment 315340 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=315340&action=review > Source/WebCore/crypto/gcrypt/CryptoKeyRSAGCrypt.cpp:517 > + if (!PAL::TASN1::writeElement(pkcs8, "privateKeyAlgorithm.parameters", "\x05\x00", 2)) "\x05\x00" could be a constant. You can do it separately.
Jiewen Tan
Comment 13 2017-07-14 08:57:06 PDT
Comment on attachment 315340 [details] Patch Looks good to me. r=me.
Zan Dobersek
Comment 14 2017-07-14 22:23:22 PDT
Note You need to log in before you can comment on or make changes to this bug.