diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-01 20:04:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-01 20:04:54 +0000 |
commit | 56b3d67149a96ad6d766be19a014d620b99dc34a (patch) | |
tree | c8558fab465af02f5c739c818a94b8eebcc565a3 /src/common/crypto.h | |
parent | f05937355e6b2eb664ebb969b412c791a415cde9 (diff) | |
download | tor-56b3d67149a96ad6d766be19a014d620b99dc34a.tar.gz tor-56b3d67149a96ad6d766be19a014d620b99dc34a.zip |
Separate "generate-DH-key" from "get-DH-key" without breaking old interface
svn:r1431
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index d256b1cb0b..a09a4deda1 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -86,6 +86,7 @@ typedef struct crypto_dh_env_st { #define CRYPTO_DH_SIZE (1024 / 8) crypto_dh_env_t *crypto_dh_new(); int crypto_dh_get_bytes(crypto_dh_env_t *dh); +int crypto_dh_generate_public(crypto_dh_env_t *dh); int crypto_dh_get_public(crypto_dh_env_t *dh, char *pubkey_out, int pubkey_out_len); int crypto_dh_compute_secret(crypto_dh_env_t *dh, |