From 7a61a92870df84c37bacd9d065e0c8df2b938d37 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 1 Jul 2018 11:25:29 -0400 Subject: Combine DH_BYTES and DH_KEY_LEN; put them in a lib/defs header. --- src/test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/test.c') diff --git a/src/test/test.c b/src/test/test.c index e3121293c3..d36c47a07d 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -148,7 +148,8 @@ test_bad_onion_handshake(void *arg) memset(junk_buf, 0, sizeof(junk_buf)); crypto_pk_obsolete_public_hybrid_encrypt(pk, junk_buf2, TAP_ONIONSKIN_CHALLENGE_LEN, - junk_buf, DH_KEY_LEN, PK_PKCS1_OAEP_PADDING, 1); + junk_buf, DH1024_KEY_LEN, + PK_PKCS1_OAEP_PADDING, 1); tt_int_op(-1, OP_EQ, onion_skin_TAP_server_handshake(junk_buf2, pk, NULL, s_buf, s_keys, 40)); -- cgit v1.2.3-54-g00ecf