aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-09 11:50:25 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-09 11:50:25 +0000
commit9eeaeddbb1aa04248841890e244c4714f165522d (patch)
treebbc12338bf35d7b4890fdaf9076144f05f416adb /src/test/test_crypto.c
parent1e330e1947b750be12b217c944534f9284509751 (diff)
downloadtor-9eeaeddbb1aa04248841890e244c4714f165522d.tar.gz
tor-9eeaeddbb1aa04248841890e244c4714f165522d.zip
Reduce make check-spaces noise
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 0e82223786..616b313b16 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -542,7 +542,8 @@ test_crypto_aes_ctr_testvec(void *arg)
char plaintext[16*4];
base16_decode(key, sizeof(key), key16, strlen(key16));
base16_decode(iv, sizeof(iv), ctr16, strlen(ctr16));
- base16_decode(plaintext, sizeof(plaintext), plaintext16, strlen(plaintext16));
+ base16_decode(plaintext, sizeof(plaintext),
+ plaintext16, strlen(plaintext16));
crypto_cipher_t *c = crypto_cipher_new_with_iv(key, iv);
crypto_cipher_crypt_inplace(c, plaintext, sizeof(plaintext));
@@ -1396,9 +1397,11 @@ test_crypto_digest_names(void *arg)
int i;
for (i = 0; names[i].n; ++i) {
tt_str_op(names[i].n, OP_EQ,crypto_digest_algorithm_get_name(names[i].a));
- tt_int_op(names[i].a, OP_EQ,crypto_digest_algorithm_parse_name(names[i].n));
+ tt_int_op(names[i].a,
+ OP_EQ,crypto_digest_algorithm_parse_name(names[i].n));
}
- tt_int_op(-1, OP_EQ, crypto_digest_algorithm_parse_name("TimeCubeHash-4444"));
+ tt_int_op(-1, OP_EQ,
+ crypto_digest_algorithm_parse_name("TimeCubeHash-4444"));
done:
;
}
@@ -1887,7 +1890,6 @@ test_crypto_hkdf_sha256_testvecs(void *arg)
tor_free(mem_op_hex_tmp);
}
-
static void
test_crypto_curve25519_impl(void *arg)
{