aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-08-21Extract tortls structures into a new header; clean up a littleNick Mathewson
2018-08-21Split X509 code out of tortls.cNick Mathewson
2018-08-21The RSA_free in this test is no longer needed or wantedNick Mathewson
2018-08-21Implement RSA for NSS.Nick Mathewson
2018-08-21Also reinitialize the pregenerated keys postfork.Nick Mathewson
2018-08-21Refactor crypto_rsa to use pem module.Nick Mathewson
This cleans up a lot of junk from crypto_rsa_openssl, and will save us duplicated code in crypto_rsa_nss (when it exists). (Actually, it already exists, but I am going to use git rebase so that this commit precedes the creation of crypto_rsa_nss.)
2018-08-21Add rudimentary support for PEM-encoding, since NSS doesn't do that.Nick Mathewson
2018-08-21Use a constant for "65537"Nick Mathewson
2018-08-21Rename openssl-bridging functions in crypto_rsaNick Mathewson
These functions exist only to expose RSA keys to other places in Tor that use OpenSSL; let's be specific about their purpose.
2018-08-21Remove a redundant function.Nick Mathewson
2018-08-21Rename functions that encode/decode private keysNick Mathewson
It is not nice to expose a private key's contents without having the function name advertise the fact. Fortunately, we weren't misusing these yet.
2018-08-21Extract openssl RSA functionality into its own file.Nick Mathewson
2018-08-14Adjust windows stubs for new start/finish_daemon() return typesNick Mathewson
2018-08-08Call crypto_postfork on start_daemon() instead.Nick Mathewson
2018-08-08Make finish_daemon() return a boolean to say whether it did anything.Nick Mathewson
2018-08-08When RunAsDaemon is set, crypto_postfork() as neededNick Mathewson
2018-08-02Suppress strict-prototypes warning in crypto_nss_mgt.cNick Mathewson
2018-08-02Fix double-link of crypto_openssl_mgt.cNick Mathewson
2018-08-02Add a cast to make clang happier.Nick Mathewson
2018-07-31Fix issues with crypto_ope compilation now that crypto.h is goneNick Mathewson
2018-07-31Merge branch 'nss_dh_squashed' into nss_dh_squashed_mergedNick Mathewson
2018-07-31Only link crypto_dh_openssl.c onceNick Mathewson
(We do this unconditionally, since we still need it for tortls.c)
2018-07-31Additional tests for NSS DHNick Mathewson
Notably, there's a test to make sure that it round-trips with OpenSSL, if OpenSSL is enabled.
2018-07-31Implement DH in NSS.Nick Mathewson
2018-07-31Refactor the dependency between tortls and crypto_dh.Nick Mathewson
We only ever need this to get us a DH ephemeral key object, so make a function that does just that.
2018-07-31Extract the shared part of crypto_dh_compute_secret.Nick Mathewson
2018-07-31Extract the OpenSSL DH functionality to a new file.Nick Mathewson
2018-07-31Make the rust tests link.Nick Mathewson
2018-07-31Fix "make distcheck."Nick Mathewson
2018-07-31Use NSS for AES_CTR.Nick Mathewson
2018-07-31Use NSS in crypto_rand.cNick Mathewson
This is comparatively straightforward too, except for a couple of twists: * For as long as we're building with two crypto libraries, we want to seed _both_ their RNGs, and use _both_ their RNGs to improve the output of crypto_strongest_rand() * The NSS prng will sometimes refuse to generate huge outputs. When it does, we stretch the output with SHAKE. We only need this for the tests.
2018-07-31Make sure NSS is initialized before running benchmarksNick Mathewson
2018-07-31Use NSS's digest code in Tor.Nick Mathewson
This was a fairly straightforward port, once I realized which layer I should be calling into.
2018-07-31Merge remote-tracking branch 'teor/bug26986'Nick Mathewson
2018-07-30fix wrong word in commentRoger Dingledine
2018-07-31Use Windows-compatible format strings in tor-print-ed-signing-cert.cteor
Fixes bug 26986; bugfix on master.
2018-07-31Add TOR_PRIdSZ to torint.hteor
2018-07-30Remove a now-obsolete comment about deadcode_dummy__Nick Mathewson
2018-07-30Merge branch 'ticket26890'Nick Mathewson
2018-07-30Merge remote-tracking branch 'teor/bug26627_033_merged_master'Nick Mathewson
2018-07-30Update include in tor-print-ed-signing-certNick Mathewson
2018-07-30Merge remote-tracking branch 'rl1987/feature19506_3'Nick Mathewson
2018-07-30Merge remote-tracking branch 'rl1987/ticket21349_4'Nick Mathewson
2018-07-30Merge remote-tracking branch 'teor/bug26924'Nick Mathewson
2018-07-30Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased'Nick Mathewson
2018-07-30Merge remote-tracking branch 'rl1987/bug26892_take2'Nick Mathewson
2018-07-30Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-30Merge branch 'maint-0.3.3' into maint-0.3.4Nick Mathewson
2018-07-30Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-07-26Don't disable an unsupported compiler warningTaylor Yu
Conditionalize the pragma that temporarily disables -Wunused-const-variable. Some versions of gcc don't support it. We need to do this because of an apparent bug in some libzstd headers. Fixes bug 26785; bugfix on 0.3.2.11.