diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-02 02:28:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-02 02:28:51 +0000 |
commit | 85c79ffbc7b965355c3b51cc81000d517089e74e (patch) | |
tree | eafeb903a90d64be26fb900f567528caa1916b5b /src/or/onion.c | |
parent | 1433a0b26fcc1e48ac8001c5438e00d140dbf2a9 (diff) | |
download | tor-85c79ffbc7b965355c3b51cc81000d517089e74e.tar.gz tor-85c79ffbc7b965355c3b51cc81000d517089e74e.zip |
canonicalize "src" and "dest" arg order in crypto.c (and others)
svn:r2644
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 10 |
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; } |