Add a missing offset

svn:r1492
This commit is contained in:
Nick Mathewson 2004-04-05 21:31:53 +00:00
parent 5033c366e1
commit 536a9b6c28

View File

@ -355,7 +355,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, int request_len)
} }
/* Next N bytes is encrypted with service key */ /* Next N bytes is encrypted with service key */
len = crypto_pk_private_hybrid_decrypt( 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); PK_PKCS1_OAEP_PADDING);
if (len<0) { if (len<0) {
log_fn(LOG_WARN, "Couldn't decrypt INTRODUCE2 cell"); log_fn(LOG_WARN, "Couldn't decrypt INTRODUCE2 cell");