diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-05 17:36:30 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-05 17:36:30 +0000 |
commit | 12ede0a2c4aa45fb32ab96cb7bb02496179ae1d5 (patch) | |
tree | 69b96e0ba1a7b661cc78fc7b0c7a23de2c705301 /src/common/crypto.h | |
parent | 41387bea08a34b7bb7fc231a01d8c754f988a5bd (diff) | |
download | tor-12ede0a2c4aa45fb32ab96cb7bb02496179ae1d5.tar.gz tor-12ede0a2c4aa45fb32ab96cb7bb02496179ae1d5.zip |
use the right variable when comparing hashes; maybe fix "Hash of session" bug
svn:r1481
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index df349d7e8d..44ea11f824 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -56,7 +56,7 @@ int crypto_pk_private_decrypt(crypto_pk_env_t *env, const unsigned char *from, i int crypto_pk_private_sign(crypto_pk_env_t *env, const unsigned char *from, int fromlen, unsigned char *to); int crypto_pk_private_sign_digest(crypto_pk_env_t *env, const unsigned char *from, int fromlen, unsigned char *to); int crypto_pk_public_checksig(crypto_pk_env_t *env, const unsigned char *from, int fromlen, unsigned char *to); -int crypto_pk_public_checksig_digest(crypto_pk_env_t *env, const unsigned char *data, int datalen, unsigned char *sig, int siglen); +int crypto_pk_public_checksig_digest(crypto_pk_env_t *env, const unsigned char *data, int datalen, const unsigned char *sig, int siglen); int crypto_pk_public_hybrid_encrypt(crypto_pk_env_t *env, const unsigned char *from, int fromlen, unsigned char *to, int padding); |