- 01 Jul, 2018 2 commits
-
-
Nick Mathewson authored
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
-
Nick Mathewson authored
-
- 21 Jun, 2018 1 commit
-
-
Nick Mathewson authored
-
- 20 Jun, 2018 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 19 Jun, 2018 1 commit
-
-
rl1987 authored
Also, stop supporting empty HKDF input key material
-
- 24 May, 2018 1 commit
-
-
Nick Mathewson authored
-
- 21 May, 2018 1 commit
-
-
Nick Mathewson authored
These tests would report errors, but wouldn't report the offending strings.
-
- 06 Apr, 2018 1 commit
-
-
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
-
- 15 Sep, 2017 1 commit
-
-
Nick Mathewson authored
-
- 13 Sep, 2017 2 commits
-
-
Nick Mathewson authored
Most of these buffers were never actually inspected, but it's still bad style.
-
Nick Mathewson authored
-
- 24 Aug, 2017 3 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
This patch fixes the operator usage in src/test/*.c to use the symbolic operators instead of the normal C comparison operators. This patch was generated using: ./scripts/coccinelle/test-operator-cleanup src/test/*.[ch]
-
- 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.
-
- 28 Jun, 2017 1 commit
-
-
George Kadianakis authored
-
- 27 Jun, 2017 2 commits
-
-
Nick Mathewson authored
-
-
- 07 Apr, 2017 1 commit
-
-
Taylor Yu authored
Test base64_decode() with odd sized decoded lengths, including unpadded encodings and padded encodings with "right-sized" output buffers. Convert calls to base64_decode_nopad() to base64_decode() because base64_decode_nopad() is redundant.
-
- 31 Mar, 2017 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Create a new test_crypto_openssl to test openssl-only crypto.c functionality.
-
- 15 Mar, 2017 1 commit
-
-
Nick Mathewson authored
-
- 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
Previously, the IV and key were stored in the structure, even though they mostly weren't needed. The only purpose they had was to support a seldom-used API where you could pass NULL when creating a cipher in order to get a random key/IV, and then pull that key/IV back out. This saves 32 bytes per AES instance, and makes it easier to support different key lengths.
-
- 09 Sep, 2016 2 commits
-
-
Nick Mathewson authored
The point of diminishing returns has been reached.
-
Nick Mathewson authored
This shaves another 3-4 seconds off the main-path tests for me, which is again worth it, according to XKCD#1204.
-
- 06 Sep, 2016 1 commit
-
-
Nick Mathewson authored
The functions it warns about are: assert, memcmp, strcat, strcpy, sprintf, malloc, free, realloc, strdup, strndup, calloc. Also, fix a few lingering instances of these in the code. Use other conventions to indicate _intended_ use of assert and malloc/realloc/etc.
-
- 23 Aug, 2016 1 commit
-
-
George Kadianakis authored
-
- 20 Jun, 2016 1 commit
-
-
base16_decodes() now returns the number of decoded bytes. It's interface changes from returning a "int" to a "ssize_t". Every callsite now checks the returned value. Fixes #14013 Signed-off-by:
David Goulet <dgoulet@torproject.org>
-
- 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.
-
- 09 Jun, 2016 1 commit
-
-
Andrea Shepard authored
-
- 06 Jun, 2016 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Coverity noticed that we check tor_sscanf's return value everywhere else.
-
- 02 Jun, 2016 1 commit
-
-
Nick Mathewson authored
Fixes the 0.2.9 instance of bug #19213, which prevented mingw64 from working. This case wasn't in any released Tor.
-
- 18 May, 2016 1 commit
-
-
Nick Mathewson authored
-
- 16 May, 2016 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Fix the new crypto tests, which used truncate(3).
-