summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c
index a248141287..511cda861d 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -485,11 +485,11 @@ void
test_onion_handshake() {
/* client-side */
crypto_dh_env_t *c_dh = NULL;
- char c_buf[DH_ONIONSKIN_LEN];
+ char c_buf[ONIONSKIN_CHALLENGE_LEN];
char c_keys[40];
/* server-side */
- char s_buf[DH_KEY_LEN];
+ char s_buf[ONIONSKIN_REPLY_LEN];
char s_keys[40];
/* shared */
@@ -499,11 +499,11 @@ test_onion_handshake() {
test_assert(! crypto_pk_generate_key(pk));
/* client handshake 1. */
- memset(c_buf, 0, DH_ONIONSKIN_LEN);
+ memset(c_buf, 0, ONIONSKIN_CHALLENGE_LEN);
test_assert(! onion_skin_create(pk, &c_dh, c_buf));
/* server handshake */
- memset(s_buf, 0, DH_KEY_LEN);
+ memset(s_buf, 0, ONIONSKIN_REPLY_LEN);
memset(s_keys, 0, 40);
test_assert(! onion_skin_server_handshake(c_buf, pk, s_buf, s_keys, 40));