2008-08-27 02:05:47 +00:00
|
|
|
#ifndef NOEKEON_OMAC_H_
|
|
|
|
#define NOEKEON_OMAC_H_
|
|
|
|
|
|
|
|
#include "noekeon.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2008-08-27 03:21:27 +00:00
|
|
|
typedef uint8_t omac_noekeon_ctx_t[16];
|
2008-08-27 02:05:47 +00:00
|
|
|
|
2008-08-27 03:21:27 +00:00
|
|
|
void omac_noekeon_init(omac_noekeon_ctx_t* ctx);
|
|
|
|
void omac_noekeont_tweak(uint8_t t, const void* key, omac_noekeon_ctx_t* ctx);
|
2008-08-27 02:05:47 +00:00
|
|
|
void omac_noekeon_next(const void* buffer, const void* key,
|
2008-08-27 03:21:27 +00:00
|
|
|
omac_noekeon_ctx_t* ctx);
|
2008-08-27 02:05:47 +00:00
|
|
|
void omac_noekeon_last(const void* buffer, uint8_t length_b, const void* key,
|
2008-08-27 03:21:27 +00:00
|
|
|
omac_noekeon_ctx_t* ctx);
|
2008-08-27 02:05:47 +00:00
|
|
|
void omac_noekeon(void* dest, const void* msg, uint16_t msglength_b,
|
|
|
|
const void* key, uint8_t t);
|
|
|
|
|
|
|
|
#endif /*NOEKEON_OMAC_H_*/
|