X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsha1.h;h=2527e09a72f5e5204bef389aca83d1dda956428f;hb=ba7d341ccf72d0e29554802fc399a24ea3aaaa3a;hp=ce8fca324c2a0b3f8e5fc8c28efc79c2c334c506;hpb=90676f283e64e478958fc690a9c2b2472bb0f9e8;p=libucw.git diff --git a/ucw/sha1.h b/ucw/sha1.h index ce8fca32..2527e09a 100644 --- a/ucw/sha1.h +++ b/ucw/sha1.h @@ -30,12 +30,12 @@ void sha1_init(sha1_context *hd); /** Initialize new algorithm run in the @hd co * Push another @inlen bytes of data pointed to by @inbuf onto the * SHA1 hash currently in @hd. You can call this any times you want on * the same hash (and you do not need to reinitialize it by - * sha1_init()). It has the same effect as concatenating all the data + * @sha1_init()). It has the same effect as concatenating all the data * together and passing them at once. */ void sha1_update(sha1_context *hd, const byte *inbuf, uns inlen); /** - * No more sha1_update() calls will be done. This terminates the hash + * No more @sha1_update() calls will be done. This terminates the hash * and returns a pointer to it. * * Note that the pointer points into data in the @hd context. If it ceases @@ -53,7 +53,7 @@ byte *sha1_final(sha1_context *hd); * sha1_context hd; * sha1_init(&hd); * sha1_update(&hd, buffer, length); - * memcpy(outbuf, sha1_final(&hd), 20); + * memcpy(outbuf, sha1_final(&hd), SHA1_SIZE); */ void sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length);