From 8e1d63fa51f9352ee0753817803076dd2a5e70d5 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Wed, 14 Jun 2023 20:59:09 +0100 Subject: [PATCH] iwyu: tf.h --- include/n2n.h | 2 -- include/tf.h | 7 ++----- src/tf.c | 2 ++ src/transform_tf.c | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/n2n.h b/include/n2n.h index 9da119d..21b5ea2 100644 --- a/include/n2n.h +++ b/include/n2n.h @@ -150,8 +150,6 @@ /* ************************************** */ -#include "tf.h" - #ifndef TRACE_ERROR #define TRACE_ERROR 0 #define TRACE_WARNING 1 diff --git a/include/tf.h b/include/tf.h index 5f13f76..d2d0a65 100644 --- a/include/tf.h +++ b/include/tf.h @@ -51,11 +51,8 @@ #define TF_H -#include -#include -#include - -#include "portable_endian.h" +#include // for uint32_t +#include // for size_t #define TF_BLOCK_SIZE 16 diff --git a/src/tf.c b/src/tf.c index 793c527..288ea84 100644 --- a/src/tf.c +++ b/src/tf.c @@ -48,6 +48,8 @@ #include "tf.h" +#include // for le32toh, htole32 +#include // for memcpy const uint8_t RS[4][8] = { { 0x01, 0xA4, 0x55, 0x87, 0x5A, 0x58, 0xDB, 0x9E, }, diff --git a/src/transform_tf.c b/src/transform_tf.c index e6ae404..f92ff92 100644 --- a/src/transform_tf.c +++ b/src/transform_tf.c @@ -20,6 +20,7 @@ #include "n2n.h" // for n2n_trans_op_t, traceEvent, TRACE_ERROR #include "pearson.h" // for pearson_hash_256 #include "random_numbers.h" // for n2n_rand +#include "tf.h" // for TF_BLOCK_SIZE, tf_cbc_decrypt, tf_cbc_en... // size of random value prepended to plaintext defaults to TF_BLOCK_SIZE;