- 11 Jul, 2018 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
These are now part of crypto_init.c. The openssl-only parts now live in crypto_openssl_mgt.c. I recommend reviewing this patch with -b and --color-moved.
-
- 28 Jun, 2018 1 commit
-
-
Nick Mathewson authored
-
- 21 Jun, 2018 3 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
I am calling the crypto library "crypt_ops", since I want higher-level crypto things to be separated from lower-level ones. This library will hold only the low-level ones, once we have it refactored.
-
Nick Mathewson authored
-
- 20 Jun, 2018 3 commits
-
-
Nick Mathewson authored
Dmalloc hasn't seen a release in over a decade, and there are much better tools to use these days.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 08 May, 2018 1 commit
-
-
Fernando Fernandez Mancera authored
Add two new files (crypto_dh.c, crypto_dh.h) as new module of crypto.[ch]. This new module includes all functions and dependencies related to DH operations. Those have been removed from crypto.[ch]. Follows #24658. Signed-off-by:
Fernando Fernandez Mancera <ffmancera@riseup.net>
-
- 18 Apr, 2018 1 commit
-
-
Isis Lovecruft authored
On second thought, this is a global initialisation function and doesn't conceptually have much to do with getting/using randomnesses.
-
- 06 Apr, 2018 2 commits
-
-
Isis Lovecruft authored
* FIXES part of #24658: https://bugs.torproject.org/24658
-
Isis Lovecruft authored
* ADD new /src/common/crypto_rand.[ch] module. * ADD new /src/common/crypto_util.[ch] module (contains the memwipe() function, since all crypto_* modules need this). * FIXES part of #24658: https://bugs.torproject.org/24658
-
- 16 Feb, 2018 3 commits
-
-
Fernando Fernandez Mancera authored
We moved the crypto_pk_obselete_* functions into crypto_rsa.[ch] because they fit better with the RSA module. Follows #24658. Signed-off-by:
Fernando Fernandez Mancera <ffmancera@riseup.net>
-
Nick Mathewson authored
-
Nick Mathewson authored
This is necessary because apparently v3 rendezvous cpath hops use sha3, which I had forgotten. Bugfix on master; bug not in any released Tor.
-
- 03 Feb, 2018 2 commits
-
-
Fernando Fernandez Mancera authored
Added xof functions and operations into xof+digest module. Follows #24658. Signed-off-by:
Fernando Fernandez Mancera <ffmancera@riseup.net>
-
Fernando Fernandez Mancera authored
Add two new files (crypto_digest.c, crypto_digest.h) as new module of crypto.[ch]. This new module includes all functions and dependencies related to digest and xof operations. Those have been removed from crypto.[ch]. Follows #24658. Signed-off-by:
Fernando Fernandez Mancera <ffmancera@riseup.net>
-
- 26 Jan, 2018 1 commit
-
-
Fernando Fernandez Mancera authored
Add two new files (crypto_rsa.c, crypto_rsa.h) as new module of crypto.[ch]. This new module includes all functions and dependencies related to RSA operations. Those have been removed from crypto.[ch]. All new changes related to RSA operations must be done in these files. Follows #24658 Signed-off-by:
Fernando Fernandez Mancera <ffmancera@riseup.net>
-
- 25 Jan, 2018 1 commit
-
-
Nick Mathewson authored
We'd been using crypto_digest_dup() and crypto_digest_assign() here, but they aren't necessary. Instead we can just use the stack to store the previous state of the SHA_CTX and avoid a malloc/free pair. Closes ticket 24914.
-
- 08 Jan, 2018 1 commit
-
-
Fernando Fernandez Mancera authored
Add two new files (crypto_openssl.c, crypto_openssl.h) as new module of crypto.[ch]. This new module includes all functions and dependencies related to OpenSSL management. Those have been removed from crypto.[ch]. All new changes related to OpenSSL management must be done in these files. Follows #24658 Signed-off-by:
Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
-
- 08 Dec, 2017 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
This commit was made mechanically by this perl script: \#!/usr/bin/perl -w -i -p next if /^#define FREE_AND_NULL/; s/\bFREE_AND_NULL\((\w+),/FREE_AND_NULL\(${1}_t, ${1}_free_,/; s/\bFREE_AND_NULL_UNMATCHED\(/FREE_AND_NULL\(/;
-
- 17 Nov, 2017 1 commit
-
-
Nick Mathewson authored
-
- 19 Sep, 2017 1 commit
-
-
David Goulet authored
Use this value instead of hardcoded values of 32 everywhere. This also addresses the use of REND_DESC_ID_V2_LEN_BASE32 in hs_lookup_last_hid_serv_request() for the HSDir encoded identity digest length which is accurate but semantically wrong. Fixes #23305 . Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 15 Sep, 2017 1 commit
-
-
Nick Mathewson authored
-
- 24 Jul, 2017 1 commit
-
-
Nick Mathewson authored
We need to keep these around for TAP and old-style hidden services, but they're obsolete, and we shouldn't encourage anyone to use them. So I've added "obsolete" to their names, and a comment explaining what the problem is. Closes ticket 23026.
-
- 07 Jul, 2017 2 commits
-
-
-
- Move some crypto structures so that they are visible by tests. - Introduce a func to count number of hops in cpath which will be used by the tests. - Mark a function as mockable.
-
- 31 Mar, 2017 1 commit
-
-
Nick Mathewson authored
This makes it so main.c, and the rest of src/or, no longer need to include any openssl headers.
-
- 15 Mar, 2017 1 commit
-
-
Nick Mathewson authored
-
- 30 Jan, 2017 1 commit
-
-
Nick Mathewson authored
-
- 11 Jan, 2017 1 commit
-
-
That key size is taken from proposal 224 thus specified in the protocol. Closes #20569 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 14 Dec, 2016 2 commits
-
-
Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
-
- 16 Sep, 2016 2 commits
-
-
Nick Mathewson authored
(This will be used by prop224)
-
Nick Mathewson authored
Now that crypto_cipher_t only contains a pointer, it no longer has any reason for an independent existence.
-
- 09 Sep, 2016 1 commit
-
-
Nick Mathewson authored
We have a mock for our RSA key generation function, so we now wire it to pk_generate(). This covers all the cases that were not using pk_generate() before -- all ~93 of them.
-
- 28 Jul, 2016 1 commit
-
-
Nick Mathewson authored
In nearly all cases, this is a matter of making sure that we include orconfig.h before we include any standard c headers.
-
- 11 Jun, 2016 1 commit
-
-
Nick Mathewson authored
This is a big-ish patch, but it's very straightforward. Under this clang warning, we're not actually allowed to have a global variable without a previous extern declaration for it. The cases where we violated this rule fall into three roughly equal groups: * Stuff that should have been static. * Stuff that was global but where the extern was local to some other C file. * Stuff that was only global when built for the unit tests, that needed a conditional extern in the headers. The first two were IMO genuine problems; the last is a wart of how we build tests.
-