]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - omac_noekeon.h
new OMAC (CMAC) with Noekeon; + some bug fixes for the nessie test-env
[avr-crypto-lib.git] / omac_noekeon.h
diff --git a/omac_noekeon.h b/omac_noekeon.h
new file mode 100644 (file)
index 0000000..a5c73d2
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef NOEKEON_OMAC_H_
+#define NOEKEON_OMAC_H_
+
+#include "noekeon.h"
+#include <stdint.h>
+
+typedef uint8_t noekeon_omac_ctx_t[16];
+
+void omac_noekeon_init(noekeon_omac_ctx_t* ctx);
+void omac_noekeont_tweak(uint8_t t, const void* key, noekeon_omac_ctx_t* ctx);
+void omac_noekeon_next(const void* buffer, const void* key, 
+                       noekeon_omac_ctx_t* ctx);
+void omac_noekeon_last(const void* buffer, uint8_t length_b, const void* key, 
+                       noekeon_omac_ctx_t* ctx);
+void omac_noekeon(void* dest, const void* msg, uint16_t msglength_b,
+                  const void* key, uint8_t t);
+
+#endif /*NOEKEON_OMAC_H_*/