]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - noekeon.h
new OMAC (CMAC) with Noekeon; + some bug fixes for the nessie test-env
[avr-crypto-lib.git] / noekeon.h
index f0eaf528a7c4da9e05e27a49a89da681204a5193..5817d9fcbe3f4daa606d8d387e19150be5afdae3 100644 (file)
--- a/noekeon.h
+++ b/noekeon.h
@@ -44,7 +44,7 @@ typedef uint8_t noekeon_ctx_t[16];
  * \param key    pointer to either the key (128 bit = 16 byte; direct mode) or 
  * to the context (indirect mode)
  */
-void noekeon_enc(void* buffer, void* key);
+void noekeon_enc(void* buffer, const void* key);
 
 /** \fn void noekeon_enc(void* buffer, void* key)
  * \brief noekeon encrytion funtion
@@ -58,7 +58,7 @@ void noekeon_enc(void* buffer, void* key);
  * \param key    pointer to either the key (128 bit = 16 byte; direct mode) or 
  * to the context (indirect mode)
  */
-void noekeon_dec(void* buffer, void* key);
+void noekeon_dec(void* buffer, const void* key);
 
 
 /** \fn void noekeon_init(void* key, noekeon_ctx_t* ctx)
@@ -71,6 +71,6 @@ void noekeon_dec(void* buffer, void* key);
  * \param ctx pointer to the context to fill with key material 
  * to the context (indirect mode)
  */
-void noekeon_init(void* key, noekeon_ctx_t* ctx);
+void noekeon_init(const void* key, noekeon_ctx_t* ctx);
 
 #endif /*NOEKEON_H_*/