X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=noekeon%2Fnoekeon.h;h=89edd59f1701448fc251cfc99ee9f4e7655eb5ba;hp=9c046f3004cb374b8d34945109a03ccb365a5a4a;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=924aa320bef6f192feecdb67d209c790bd49ea49 diff --git a/noekeon/noekeon.h b/noekeon/noekeon.h index 9c046f3..89edd59 100644 --- a/noekeon/noekeon.h +++ b/noekeon/noekeon.h @@ -1,7 +1,7 @@ /* noekeon.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ /** * \file noekeon.h * \author Daniel Otte - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \date 2008-04-11 * \license GPLv3 or later * \brief Implementation of the Noekeon block cipher @@ -42,7 +42,7 @@ */ typedef uint8_t noekeon_ctx_t[16]; -/** \fn void noekeon_enc(void* buffer, const void* key) +/** \fn void noekeon_enc(void *buffer, const void *key) * \brief noekeon encrytion funtion * * This function encrypts a block (64 bit = 8 byte) with the noekeon encrytion @@ -53,9 +53,9 @@ 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, const void* key); +void noekeon_enc(void *buffer, const void *key); -/** \fn void noekeon_dec(void* buffer, const void* key) +/** \fn void noekeon_dec(void *buffer, const void *key) * \brief noekeon encrytion funtion * * This function decrypts a block (64 bit = 8 byte) encrypted with the noekeon @@ -67,10 +67,10 @@ void noekeon_enc(void* buffer, const 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, const void* key); +void noekeon_dec(void *buffer, const void *key); -/** \fn void noekeon_init(const void* key, noekeon_ctx_t* ctx) +/** \fn void noekeon_init(const void *key, noekeon_ctx_t *ctx) * \brief noekeon context generation function for indirect mode * * This function generates a context from the supplied key for using @@ -80,6 +80,6 @@ void noekeon_dec(void* buffer, const void* key); * \param ctx pointer to the context to fill with key material * to the context (indirect mode) */ -void noekeon_init(const void* key, noekeon_ctx_t* ctx); +void noekeon_init(const void *key, noekeon_ctx_t *ctx); #endif /*NOEKEON_H_*/