diff options
author | teor <teor@torproject.org> | 2019-04-05 15:06:30 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-05 15:17:19 +1000 |
commit | e3124fef54f90828f7b06c41fd4e39ef7778f2e3 (patch) | |
tree | 505ce8230ab0e09ecc02dc35b0af8c445b502e61 /src/lib/crypt_ops/crypto_curve25519.h | |
parent | 7d513a5d5541d17c4e9622a9af76303042fd380b (diff) | |
download | tor-e3124fef54f90828f7b06c41fd4e39ef7778f2e3.tar.gz tor-e3124fef54f90828f7b06c41fd4e39ef7778f2e3.zip |
crypto_format: Remove the return value from curve25519_public_to_base64()
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.
Diffstat (limited to 'src/lib/crypt_ops/crypto_curve25519.h')
-rw-r--r-- | src/lib/crypt_ops/crypto_curve25519.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_curve25519.h b/src/lib/crypt_ops/crypto_curve25519.h index 061a7a3505..cd23169cd5 100644 --- a/src/lib/crypt_ops/crypto_curve25519.h +++ b/src/lib/crypt_ops/crypto_curve25519.h @@ -76,8 +76,8 @@ STATIC int curve25519_basepoint_impl(uint8_t *output, const uint8_t *secret); int curve25519_public_from_base64(curve25519_public_key_t *pkey, const char *input); -int curve25519_public_to_base64(char *output, - const curve25519_public_key_t *pkey); +void curve25519_public_to_base64(char *output, + const curve25519_public_key_t *pkey); void curve25519_set_impl_params(int use_ed); void curve25519_init(void); |