X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=shabea.h;h=fdb49168e119741bb6a90777c618ee30dacf0b30;hb=8f855d283a31a468ea014774c4723a8b77b81644;hp=28432a2c5c2b26e31f2db2e063d353f57dec5c14;hpb=0f66a12e93ed43904c30810ac33c79c87befafe7;p=avr-crypto-lib.git diff --git a/shabea.h b/shabea.h index 28432a2..fdb4916 100644 --- a/shabea.h +++ b/shabea.h @@ -1,27 +1,32 @@ /* shabea.h */ /* - This file is part of the Crypto-avr-lib/microcrypt-lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) - - 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 - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. + * This file is part of AnonAccess, an access system which can be used + * to open door or doing other things with an anonymity featured + * account managment. + * Copyright (C) 2006, 2007, 2008 Daniel Otte (daniel.otte@rub.de) + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ /** * \file shabea.h * \author Daniel Otte * \date 2007-06-07 * \brief SHABEA - a SHA Based Encryption Algorithm declarations - * \license GPLv3 or later + * \par License + * GPL * * SHABEAn-r where n is the blocksize and r the number of round used * @@ -30,16 +35,5 @@ #ifndef SHABEA_H_ #define SHABEA_H_ -/** \fn void shabea256(void * block, const void * key, uint16_t keysize_b, uint8_t enc, uint8_t rounds); - * \brief shabea256 encryption/decryption - * - * \param block pointer to a 256 bit (32 byte block) to en/decrypt - * \param key pointer to the key material - * \param keysize_b length of the key in bits - * \param enc controls if encryption (1) or decryption (0) is done - * \param rounds rounds to be done by the cipher (it is not recommended to use less then four rounds) - */ -void shabea256(void * block, const void * key, uint16_t keysize_b, - uint8_t enc, uint8_t rounds); - +void shabea256(void * block, void * key, uint16_t keysize_b, uint8_t enc, uint8_t rounds); #endif /*SHABEA_H_*/