summaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index ada1749bf5..c5431e0fdc 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -164,9 +164,9 @@ onion_skin_create(crypto_pk_env_t *dest_router_key,
#endif
/* set meeting point, meeting cookie, etc here. Leave zero for now. */
- if (crypto_pk_public_hybrid_encrypt(dest_router_key, challenge,
- DH_KEY_LEN,
- onion_skin_out, PK_PKCS1_OAEP_PADDING, 1)<0)
+ if (crypto_pk_public_hybrid_encrypt(dest_router_key, onion_skin_out,
+ challenge, DH_KEY_LEN,
+ PK_PKCS1_OAEP_PADDING, 1)<0)
goto err;
tor_free(challenge);
@@ -204,9 +204,9 @@ onion_skin_server_handshake(char *onion_skin, /* ONIONSKIN_CHALLENGE_LEN bytes *
k = i==0?private_key:prev_private_key;
if (!k)
break;
- len = crypto_pk_private_hybrid_decrypt(k,
+ len = crypto_pk_private_hybrid_decrypt(k, challenge,
onion_skin, ONIONSKIN_CHALLENGE_LEN,
- challenge, PK_PKCS1_OAEP_PADDING,0);
+ PK_PKCS1_OAEP_PADDING,0);
if (len>0)
break;
}