diff options
author | James Almer <jamrial@gmail.com> | 2016-05-11 18:16:56 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-05-11 19:47:35 -0300 |
commit | 7d8e19a5c4d2c7a95907d791ac090a0e5aad7c6a (patch) | |
tree | d7d2b3fe75dbbaead14f99ae8409b67f8b321f14 /libavutil/tea-test.c | |
parent | f693184557e43f12d70733d91bacec6d15e53704 (diff) |
avutil: make crypto testprogs include headers only
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/tea-test.c')
-rw-r--r-- | libavutil/tea-test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavutil/tea-test.c b/libavutil/tea-test.c index 07ec56139a..9bf059b980 100644 --- a/libavutil/tea-test.c +++ b/libavutil/tea-test.c @@ -22,10 +22,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "tea.c" - #include <stdio.h> +#include "common.h" +#include "tea.h" + #define TEA_NUM_TESTS 4 // https://github.com/logandrews/TeaCrypt/blob/master/tea/tea_test.go @@ -58,7 +59,7 @@ static const uint8_t tea_test_ct[TEA_NUM_TESTS][8] = { { 0x12, 0x6C, 0x6B, 0x92, 0xC0, 0x65, 0x3A, 0x3E } }; -static void test_tea(AVTEA *ctx, uint8_t *dst, const uint8_t *src, +static void test_tea(struct AVTEA *ctx, uint8_t *dst, const uint8_t *src, const uint8_t *ref, int len, uint8_t *iv, int dir, const char *test) { @@ -78,7 +79,7 @@ static void test_tea(AVTEA *ctx, uint8_t *dst, const uint8_t *src, int main(void) { - AVTEA *ctx; + struct AVTEA *ctx; uint8_t buf[8], iv[8]; int i; static const uint8_t src[32] = "HelloWorldHelloWorldHelloWorld"; |