From 170835f03e35ac53d7930d42590ad525e763999c Mon Sep 17 00:00:00 2001 From: bg Date: Thu, 26 Feb 2009 15:09:47 +0000 Subject: [PATCH] adjusting omac-noekeon nessie test for new nessie mac API --- omac_noekeon.h | 2 +- test_src/main-omac-noekeon-test.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/omac_noekeon.h b/omac_noekeon.h index 6f1e401..c56b3a0 100644 --- a/omac_noekeon.h +++ b/omac_noekeon.h @@ -7,7 +7,7 @@ typedef uint8_t omac_noekeon_ctx_t[16]; void omac_noekeon_init(omac_noekeon_ctx_t* ctx); -void omac_noekeont_tweak(uint8_t t, const void* key, omac_noekeon_ctx_t* ctx); +void omac_noekeon_tweak(uint8_t t, const void* key, omac_noekeon_ctx_t* ctx); void omac_noekeon_next(const void* buffer, const void* key, omac_noekeon_ctx_t* ctx); void omac_noekeon_last(const void* buffer, uint8_t length_b, const void* key, diff --git a/test_src/main-omac-noekeon-test.c b/test_src/main-omac-noekeon-test.c index 377a921..50a40c0 100644 --- a/test_src/main-omac-noekeon-test.c +++ b/test_src/main-omac-noekeon-test.c @@ -72,22 +72,22 @@ void testrun_test_omac_noekeon(void){ uint8_t stat_key[16]; -void omac_noekeon_next_dummy(void* buffer, void* ctx){ +void omac_noekeon_next_dummy(void* ctx, const void* buffer){ omac_noekeon_next(buffer, stat_key, ctx); } -void omac_noekeon_init_dummy(void* key, uint16_t keysize_b, void* ctx){ +void omac_noekeon_init_dummy(void* ctx, const void* key, uint16_t keysize_b){ omac_noekeon_init(ctx); memcpy(stat_key, key, 16); } -void omac_noekeon_last_dummy(void* buffer, uint16_t size_b, void* key, uint16_t keysize_b, void* ctx){ +void omac_noekeon_last_dummy(void* ctx, const void* buffer, uint16_t size_b){ while(size_b>128){ - omac_noekeon_next(buffer, key, ctx); + omac_noekeon_next(buffer, stat_key, ctx); size_b -= 128; buffer = (uint8_t*)buffer +16; } - omac_noekeon_last(buffer, size_b, key, ctx); + omac_noekeon_last(buffer, size_b, stat_key, ctx); } void omac_noekeon_conv_dummy(void* buffer, void* ctx){ -- 2.39.5