aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-05 21:31:53 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-05 21:31:53 +0000
commit536a9b6c2841a3981e4f65f640325d5b07350746 (patch)
tree8c296e251feba5126e8ab661b81167a955d272f5
parent5033c366e1474c09e6df4e46448c7cd951e5e5ee (diff)
downloadtor-536a9b6c2841a3981e4f65f640325d5b07350746.tar
tor-536a9b6c2841a3981e4f65f640325d5b07350746.tar.gz
Add a missing offset
svn:r1492
-rw-r--r--src/or/rendservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index dbb77a614..177716f8f 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -355,7 +355,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
}
/* Next N bytes is encrypted with service key */
len = crypto_pk_private_hybrid_decrypt(
- service->private_key,request,request_len-DIGEST_LEN,buf,
+ service->private_key,request+DIGEST_LEN,request_len-DIGEST_LEN,buf,
PK_PKCS1_OAEP_PADDING);
if (len<0) {
log_fn(LOG_WARN, "Couldn't decrypt INTRODUCE2 cell");