X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=shabea.h;h=28432a2c5c2b26e31f2db2e063d353f57dec5c14;hb=a15d02c94b1ce1fc9861e654e96e0ee369fe08e9;hp=b2d4227de4a822953e36d7895f2464efc5e44dd1;hpb=96ebafd201c9e8441c7677577b24aa402c1defc6;p=avr-crypto-lib.git diff --git a/shabea.h b/shabea.h index b2d4227..28432a2 100644 --- a/shabea.h +++ b/shabea.h @@ -21,8 +21,7 @@ * \author Daniel Otte * \date 2007-06-07 * \brief SHABEA - a SHA Based Encryption Algorithm declarations - * \par License - * GPL + * \license GPLv3 or later * * SHABEAn-r where n is the blocksize and r the number of round used * @@ -31,5 +30,16 @@ #ifndef SHABEA_H_ #define SHABEA_H_ -void shabea256(void * block, void * key, uint16_t keysize, uint8_t enc, uint8_t rounds); +/** \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); + #endif /*SHABEA_H_*/