torproject / tor Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug29960 cant fail #908
Merged
torproject-pusher
merged 9 commits into
torproject:master
from
teor2345:bug29960_cant_fail
Apr 12, 2019
Merged
Bug29960 cant fail #908
torproject-pusher
merged 9 commits into
torproject:master
from
teor2345:bug29960_cant_fail
Apr 12, 2019
Conversation
(These functions look pretty unified to me.) Part of 29660.
... and ed25519_public_to_base64(). Also remove all checks for the return values, which were redundant anyway, because the functions never failed. Part of 29960.
…64() And fix the documentation on the function: it does produce trailing "="s as padding. Also remove all checks for the return value, which were redundant anyway, because the function never failed. Part of 29660.
…64() Also remove all checks for the return value, which were redundant anyway, because the function never failed. Part of 29660.
base64_decode() does not require padding. Part of 29660.
Comment-only change. Part of 29660.
Pull Request Test Coverage Report for Build 4710
|
nmathewson
reviewed
Apr 9, 2019
src/lib/crypt_ops/crypto_format.c
Outdated
| if (strlen(input) != ED25519_SIG_BASE64_LEN) | ||
| return -1; | ||
| char buf[ED25519_SIG_BASE64_LEN+3]; | ||
| char buf[ED25519_SIG_BASE64_LEN+1]; | ||
| memcpy(buf, input, ED25519_SIG_BASE64_LEN); |
I think we don't need to use 'buf' here at all any more; we could just use "input" directly.
…e64() Part of 29960.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
No description provided.
The text was updated successfully, but these errors were encountered: