]> git.cryptolib.org Git - avr-crypto-lib.git/blob - omac_noekeon.h
adjusting omac-noekeon nessie test for new nessie mac API
[avr-crypto-lib.git] / omac_noekeon.h
1 #ifndef NOEKEON_OMAC_H_
2 #define NOEKEON_OMAC_H_
3
4 #include "noekeon.h"
5 #include <stdint.h>
6
7 typedef uint8_t omac_noekeon_ctx_t[16];
8
9 void omac_noekeon_init(omac_noekeon_ctx_t* ctx);
10 void omac_noekeon_tweak(uint8_t t, const void* key, omac_noekeon_ctx_t* ctx);
11 void omac_noekeon_next(const void* buffer, const void* key, 
12                        omac_noekeon_ctx_t* ctx);
13 void omac_noekeon_last(const void* buffer, uint8_t length_b, const void* key, 
14                        omac_noekeon_ctx_t* ctx);
15 void omac_noekeon(void* dest, const void* msg, uint16_t msglength_b,
16                   const void* key, uint8_t t);
17
18 #endif /*NOEKEON_OMAC_H_*/