X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=USAGE.hashfunctions;h=163cd2d4aa1794d0bdd894fbb6d82c27267eb0ac;hp=1f2256e32572574dcfacb0489a426e4136d42ffd;hb=deca11a7e7be5605c387aa2cd577e22925854ff8;hpb=5c68d38237aa51b91a26309c24e8e38c7fbdffbe diff --git a/USAGE.hashfunctions b/USAGE.hashfunctions index 1f2256e..163cd2d 100644 --- a/USAGE.hashfunctions +++ b/USAGE.hashfunctions @@ -28,13 +28,13 @@ email: daniel.otte@rub.de * compression algorithm * finalization function -3. block cipher API +3. hash function API The API is not always consistent due to the fact that we tried to optimize the code for size (flash, heap and stack) and speed (runtime of the different components). Generally the API of the implemented block ciphers consists of: - *_init function, which implements the keyschedule + *_init function, which implements the initialisation of the context *_nextBlock function, which implements the compression algorithm *_lastBlock function, which implements the the padding algorithm *_ctx2hash function, which turns a context into an actual hash value @@ -45,7 +45,7 @@ email: daniel.otte@rub.de parameter means what. 3.1.2 sizes in bits and bytes - Working with cryptographical functions involves working with different + Working with cryptographic functions involves working with different lengths. Some times you want to know it in bits and sometimes in bytes. To reduce frustration and to avoid bugs we suffix a length parameter with either _b or _B depending on the meaning. _b means in bits and _B means in bytes