summaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_curve25519.h
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2020-06-06 10:44:28 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2020-06-06 10:44:28 +0100
commit27315de590da24fe55353332c29a3a4454ee7da2 (patch)
tree87dd59d3530d963e586c44f74da100839c1fdffa /src/lib/crypt_ops/crypto_curve25519.h
parent1d32c3114fa3ebcd4219eba6ad7bb2a57b878511 (diff)
downloadtor-27315de590da24fe55353332c29a3a4454ee7da2.tar.gz
tor-27315de590da24fe55353332c29a3a4454ee7da2.zip
Make curve25519_public_to_base64 output padding optional #7869
Diffstat (limited to 'src/lib/crypt_ops/crypto_curve25519.h')
-rw-r--r--src/lib/crypt_ops/crypto_curve25519.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/crypt_ops/crypto_curve25519.h b/src/lib/crypt_ops/crypto_curve25519.h
index 154a0b94bc..f1e5d1265d 100644
--- a/src/lib/crypt_ops/crypto_curve25519.h
+++ b/src/lib/crypt_ops/crypto_curve25519.h
@@ -9,6 +9,7 @@
#ifndef TOR_CRYPTO_CURVE25519_H
#define TOR_CRYPTO_CURVE25519_H
+#include <stdbool.h>
#include "lib/testsupport/testsupport.h"
#include "lib/cc/torint.h"
#include "lib/crypt_ops/crypto_digest.h"
@@ -77,7 +78,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);
void curve25519_public_to_base64(char *output,
- const curve25519_public_key_t *pkey);
+ const curve25519_public_key_t *pkey,
+ bool pad);
void curve25519_set_impl_params(int use_ed);
void curve25519_init(void);